Migrating CR7Rules.dpmdb and CR7Prefs.dpmdb from version 7.0.x to version 7.1.

0 Likes

Problem:

How to update version 7.X CodeReview Rules and Preferences database to version 7.1

Resolution:

If you have a previous version of DevPartner Studio Version 7.0.x, you need to migrate your custom rules and user preferences database files to the DevPartner Studio 7.1. This ensures that your changes are not lost during the upgrade. DevPartner provides two utilities that automate this migration process:

Cr7updaterules.exe: Migrates existing rules into the 7.1 rules database

Cr7updateprefs.exe: Migrates existing user settings into the 7.1 preferences database

Note: These utilities do not migrate code review rules or preferences from DevPartner CodeReview (version 6.x.

Prior to the Migration

1. Copy the existing CR7Rules.dpmdb and CR7Prefs.dpmdb files to another location for safe-keeping before you uninstall DevPartner.

By default, the files are located at \Program

Files\Compuware\DevPartner Studio\CodeReview7. These backup copies will be used in the migration steps below.

2. Uninstall the previous version of DevPartner Studio (7.0.x).

3. Install DevPartner Studio 7.1.

4. Copy the new CR7Rules.dpmdb and CR7Prefs.dpmdb files to a location other than the one used in step 1.

Proceed to "Migrating the Rules Database" and/or "Migrating the Preferences Database" to perform the desired migration for .NET.

Migrating the Rules Database:

1. Start a DOS session from the console window.

2. At the DOS prompt, change to the directory where you installed DevPartner.

By default, DevPartner is installed at \Program Files\Compuware\DevPartner Studio\CodeReview7. This directory also includes the migration utility.

3. From that directory, enter the command: cr7updaterules

This command generates a Usage message. For example: Usage: c47updaterules [Path to the 7.0 version of the rules database]

For example: cr7updaterules C:\MyOldRulesDb\CR7Rules.dpmdb

The command string you use must point to the location of the rules database file being migrated.

4. Enter the appropriate command. For example: cr7updaterules 'C:\Program Files\Compuware\DevPartner

Studio\CodeReview7\Backup\CR7Rules.dpmdb'

The command should be entered as a single line.

Migrating the Preferences Database:

1. Start a DOS session from the console window.

2. At the DOS prompt, change to the directory where you installed Dev-

Partner.

This is where the migration utility is also located. By default: \Program Files\Compuware\DevPartner Studio\CodeReview7.

3. From that directory, enter the command: cr7updateprefs ?.

This command generates a Usage message. For example:

Usage: c47updateprefs [Path to the 7.0 version of the preferences database]

For example: cr7updateprefs C:\MyOldPrefsDb\CR7Prefs.dpmdb

Note that the command string you use must point to the location of the preferences database file being migrated.

4. Enter the appropriate command. For example:

cr7updateprefs 'C:\MyOldPrefsDb\CR7Prefs.dpmdb'

Old KB# 11832
Comment List
Anonymous
Related Discussions
Recommended