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

The research steps are as follows:

  1. Start with a computer that does not have the application installed, run a difference tool or install a monitoring program to detect what files and registry keys are associated with the installation of the application.
  2. Run the application and determine whether any other keys are added or modified the first time an application is run.
  3. Determine where all of the settings are stored and how they are changed with each change in settings. Most applications use the registry, some applications use initialization files (.ini), and others use proprietary data file formats to store configuration settings or preferences.
Design

After the research is completed, you should design how the script will work and what you expect it to do. Consider the following:

Writing

With the language guide in hand, or using this help system, begin writing the script. Consider the following:

As you write the script, consider the following about these language functions:

Apply Functions

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

Debugging

Consider the following:

Testing

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