Program Installation Problems on Sysprep or Riprep Installed Systems

ID: Q248257


The information in this article applies to:
  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows 2000 Professional
  • Microsoft Windows 2000 Server


SYMPTOMS

You may experience problems installing programs that use the Shell value in the following registry location to obtain Explorer.exe settings:

HKEY_LOCAL_MACHINE\Software\Microsoft\WindowsNT\CurrentVersion\Winlogon\Shell
A program's installation routine may or may not generate error messages, but all have the same resulting problem: the program does not place icons in the Start Menu\Programs folder. This behavior occurs only if Sysprep.exe or Riprep.exe was used to create the master image.


CAUSE

The following registry entry contains a comma at the end of the value:

HKEY_LOCAL_MACHINE\Software\Microsoft\WindowsNT\CurrentVersion\Winlogon\Shell:REG_SZ:C:\Winnt\Explorer.exe,
The trailing comma causes this problem.


RESOLUTION

A supported fix that corrects this problem is now available from Microsoft, but it has not been fully regression tested and should be applied only to systems experiencing this specific problem. If you are not severely affected by this specific problem, Microsoft recommends that you wait for the next Windows 2000 service pack that contains this fix.

To resolve this problem immediately, contact Microsoft Product Support Services to obtain the fix. For a complete list of Microsoft Product Support Services phone numbers and information on support costs, please go to the following address on the World Wide Web:

http://www.microsoft.com/support/supportnet/overview/overview.asp


WORKAROUND

To Fix Images Created with Either Sysprep or Riprep

  1. Create a text file with the following contents:


  2. Windows Registry Editor Version 5.00

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
    "Shell"="Explorer.exe"
  3. Save the file. Name it Shell.reg (without a .txt extension).


  4. Create a file named Cmdlines.txt that includes the following lines:


  5. [Commands]
    "regedit /s c:\sysprep\i386\$oem$\shell.reg"

To Fix Images Created with Sysprep.exe

  1. Locate the Sysprep\I386 folder in the Sysprep image, and then create a $OEM$ subfolder in this folder.


  2. Copy the Shell.reg and Cmdlines.txt files into the Sysprep\I386\$OEM$ folder.


  3. In your Sysprep.inf file, add a key named InstallFilesPath to the [Unattended] section. This key should have the following value:


  4. InstallFilesPath = "C:\sysprep\i386"
When the mini-wizard runs, the registry key is changed back to its original correct value.

To Fix Images Created with Riprep.exe

  1. On the Remote Installation server that contains the Riprep image, create a Sysprep\I386\$OEM$ folder in the following folder:


  2. RemoteInstall\Setup\Language\Images\Riprep_dir_name\I386\Mirror1\UserData
  3. Copy the the Shell.reg and Cmdlines.txt files into the new $OEM$ folder.


  4. Modify the RemoteInstall\Setup\Language\Images\Riprep_dir_name\I386\Templates\Riprep.sif file (and any other template files for this Riprep image that you may have created) to add the OemPreinstall and InstallFilesPath values so that they appear as follows:


  5. [Unattended]
    OemPreinstall = "Yes"
    InstallFilesPath = "C:\sysprep\i386"
  6. Close and save the file.


When the Riprep mini-wizard runs, the registry key is changed back to its original correct value.

NOTE: You must use these steps for each Riprep or Sysprep image you have created. If you have already deployed systems and you are using Active Directory, you can use the following method to fix the those systems:
  1. Create a batch file named Fix.cmd on a network share to which the Everyone group has Read access.


  2. Copy the Shell.reg file to this network share.


  3. In the batch file, place the following command:


  4. regedit /s sharename\shell.reg
  5. Edit or create a new Group Policy object (GPO) that will apply to the systems that need to be updated with this .reg file. For information about creating or editing GPOs, please consult the Microsoft Windows 2000 Resource Kit documentation.


  6. Edit the GPO under Computer Configuration\Windows Settings\Scripts\Startup. Add the Fix.cmd file.


If you are not using Active Directory, you must apply this script to the clients by using other methods, such as logon scripts.


STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.

Additional query words:

Keywords : kbenv kbsetup kbtool
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbbug


Last Reviewed: December 29, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.