How to migrate user preferences from a previous release (netX Studio CDT Portable)

Q

How to migrate user preferences from a previous release (netX Studio CDT Portable)?

A

There are two possible scenarios for migrating netX Studio CDT preferences:

1. Migrating preferences from an installed netX Studio CDT instance into a portable netX Studio CDT instance

Requirements

Both netX Studio CDT instances need to have been started at least once in order for all relevant folder structures to exist.

Script

To automate this task you can use the following PowerShell script portable-preference-migration.ps1

Steps:

  1. Navigate to "C:\Users\[USER]\AppData\Local\Hilscher GmbH\netX Studio CDT\preferences"
  2. A list of preference backup folders can be found. Each is named with the date and time of it's creation
  3. Open the most recent folder and copy the ".plugins" folder found within.
  4. Navigate to your portable netX Studio CDT instance folder.
  5. Navigate to "[portable instance folder]\AppData\preferences"
  6. A similar list of preference backup folders can be found
  7. Open the most recent folder, paste and overwrite the ".plugins" folder by selecting "Replace the files in the destination" in the popup dialog
  8. Your preferences are now migrated to the netX Studio CDT portable instance

2. Migrating preferences between two portable netX Studio CDT instances

Requirements

Both netX Studio CDT instances need to have been started at least once in order for all relevant folder structures to exist.

Script

To automate this task you can use the following PowerShell script portable-preference-migration.ps1

Steps:

  1. Navigate to the source netX Studio CDT instance folder
  2. Navigate to "[portable instance folder]\AppData\preferences"
  3. A list of preference backup folders can be found. Each is named with the date and time of it's creation
  4. Open the most recent folder and copy the ".plugins" folder found within.
  5. Navigate to the destination netX Studio CDT instance folder
  6. Navigate to "[portable instance folder]\AppData\preferences"
  7. A similar list of preference backup folders can be found
  8. Open the most recent folder, paste and overwrite the ".plugins" folder by selecting "Replace the files in the destination" in the popup dialog
  9. Your preferences are now migrated to the destination netX Studio CDT instance