Edit Registry script item may write to different registry locations (833416)



The information in this article applies to:

  • Microsoft Systems Management Server 2.0
  • Microsoft Systems Management Server Installer 2.0

SYMPTOMS

When you use the Microsoft Systems Management Server (SMS) Installer to create a custom program, the program may write to different registry locations, depending on how you run the program. For example, if you compile and run the SMS Installer script as an executable (.exe) file, the program writes data to the following registry location:

HKEY_LOCAL_MACHINE\Software\Classes

If you use the Windows Installer Step-up utility to convert the .exe file to the Windows Installer (.msi) file format, the Windows Installer file writes data to the following location:

HKEY_CURRENT_USER\Software\Classes

This behavior occurs because you use the Edit Registry script item in the SMS Installer script to write data to the HKEY_CLASSES_ROOT key.

STATUS

This behavior is by design.

WORKAROUND

By default, Windows Installer programs perform a per-user installation. To perform an installation for all users, use the allusers command-line option. To run your SMS Installer-compiled program for all users, and to write data to the HKEY_CLASSES_ROOT key, use the following command line:

msiexec /i app.msi ALLUSERS=2

Note In this command, app.msi is the name of your custom SMS Installer program.

For more information about HKEY_CLASSES_ROOT, visit the following Microsoft Web site:

Modification Type:MinorLast Reviewed:6/13/2005
Keywords:kbsmsUtil kbusage kbsetup kbinterop kbSoftwareDist kbprb kbnofix kbBug KB833416 kbAudITPRO