Custom Configuration for Repackaging Scans

By default, during the repackaging process, the Repackage Application Wizard scans the drive where the Windows operating system is installed. This scan includes all directories, files, and registry settings that are changed by the installation. However, Installation Expert cannot detect which changes are directly related to the installation. While the installation program runs, the system might update certain temporary files (.log or .tmp) and certain registry keys that are unrelated to the application installation. It is recommended that you do not include these updates as part of your installation script.

You can configure SMS Installer to scan additional drives and also to ignore certain directories, files, and registry keys. For example, to prevent temporary file updates from appearing on your target computers when they actually occurred on the reference computer, you can specify that SMS Installer ignore certain log or temporary files. You can also remove from the script any registry keys that might be changed but are not part of the installation. For example, the installation might change a Dynamic Host Configuration Protocol (DHCP) release and renew with a new TCP/IP address or recently used documents in the HKEY_CURRENT_USER subtree. It is recommended that you do not include changes unrelated to the installation in the installation scripts.

You can decide which directories SMS Installer scans. Remember that the fewer directories that are scanned, the faster repackaging occurs. However, if you are not sure which directories the setup program writes to, scan them all.

To configure the Repackage Installation Wizard to add or remove files and directories from the scan list, click Change in the Directory/Subtree box in the Repackage Installation Wizard. Then, navigate to the Files/Directories tab in the Repackage Advanced Settings dialog box.

  • To add a directory, select the directory that you want SMS Installer to scan in the Directory box, and then click Add.

  • To delete a directory, select the directory that you do not want SMS Installer to scan in the Directory box, and then click Delete.

  • To select a file that you want SMS Installer to ignore, click Add in the File Name box, and then complete the dialog box.

  • To remove a file from the list of files that you want SMS Installer to ignore, select the file in the File Name box, and then click Delete.

To configure SMS Installer to ignore registry keys in the repackaging process, navigate to the Registry Keys tab in the Repackage Advanced Settings dialog box.

  • To add a subtree to the list of subtrees that you want SMS Installer to ignore, locate and select the registry subtree, and then click Add Tree.

  • To remove a subtree from the list of subtrees that you want SMS Installer to ignore, select the subtree, and then click Delete.

  • To add a registry key that you want SMS Installer to ignore, locate and select the registry subtree that contains the key, select the key in the box where it appears, and then click Add Value.

  • To remove a registry key from the list of registry keys that you want SMS Installer to ignore, select the value, and then click Delete.

For More Information

Did you find this information useful? Please send your suggestions and comments about the documentation to smsdocs@microsoft.com.