Importing REGEDIT .reg scripts
Previous Top Next


The easiest way to create registry scripts is to use the Windows program "Regedit.exe" or "Regedt32.exe". These programs should be installed on all Windows system.

Procedure:

1. Run Regedit and locate the registry subtree you wish to virtualize.

2. Export the registry tree
For Windows 2000/XP:
. Right click on the registry key and choose Export

clip0110

Save the registry tree to a file on your hard-drive. For example "test.reg"
*Note: The file format for test.reg should be one of the following:
· Registration File (*.reg) (Only available on Windows 2000 & XP)
· Win9x/NT 4 Registration File (*.reg)

For Windows 9X : Use the Registry -> Export Registry File menu option

clip0112


3. Load Thinstall and select Virtual Files -> Import REGEDIT .reg script

clip0111

4. Select the "test.reg" file.

· Thinstall will convert the "test.reg" to Thinstall's format ".threg"
· Thinstall automatically creates a new text file called "test.threg" in the same directory as test.reg.
· Thinstall will add "test.threg" to your list of files. This causes these keys to be virtualized for your application when it runs.


Note: You may need to edit the .threg file that is created.

When do I need to edit?

You should edit the .threg if any registry keys look like they refer to path locations that will be different when your software is running. For example, the following adobe acrobat reader key contains the following key:

"HKEY_LOCAL_MACHINE\SOFTWARE\Adobe\Acrobat Reader\5.0\InstallPath"
{
value "" 01 "C:\Program Files\Adobe\Acrobat 5.0\Reader"
}


If you plan to install or virtualize files used by Acrobat at a different path location, then you may wish to change this key. For example, to redirect the InstallPath to same directory as the EXE - you can do the following:

"HKEY_LOCAL_MACHINE\SOFTWARE\Adobe\Acrobat Reader\5.0\InstallPath"
{
value "" 01 "%InstallPath%"
}


When the program loads, %InstallPath% will expand to the location of your EXE. For more information about other macros you can use click here.