Previous Topic: Guidelines for Writing ScriptsNext Topic: Guidelines for Scripts to Migrate Settings Only


Guidelines for Scripts to Migrate Application Settings

The process for writing scripts to migrate application settings includes the following major phases:

Research

Follow these steps:

  1. Start with a computer that does not have any application installed.
  2. Run a difference tool.
  3. (Optional) Install a monitoring program to detect the files and registry keys are associated with the application installation.
  4. Run the application.
  5. Determine whether any other keys are added or modified the first time the application is run.
  6. Determine where all the settings are stored and how they are changed with each change in settings.
Design

After the research is complete, design how the script works. Consider the following factors:

Writing

Consider the following conditions about the language functions:

Apply Functions

When you apply keys and values to any initialization files, specify that short names be used.

Debugging

Consider the following points:

Testing

Run the script in all expected environments such as within DNA files and across the network.