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
- Create a text file with the following contents:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"Shell"="Explorer.exe"
- Save the file. Name it Shell.reg (without a .txt extension).
- Create a file named Cmdlines.txt that includes the following lines:
[Commands]
"regedit /s c:\sysprep\i386\$oem$\shell.reg"
To Fix Images Created with Sysprep.exe
- Locate the Sysprep\I386 folder in the Sysprep image, and then create a $OEM$ subfolder in this folder.
- Copy the Shell.reg and Cmdlines.txt files into the Sysprep\I386\$OEM$ folder.
- In your Sysprep.inf file, add a key named InstallFilesPath to the [Unattended] section. This key should have the following value:
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
- On the Remote Installation server that contains the Riprep image, create a Sysprep\I386\$OEM$ folder in the following folder:
RemoteInstall\Setup\Language\Images\Riprep_dir_name\I386\Mirror1\UserData
- Copy the the Shell.reg and Cmdlines.txt files into the new $OEM$ folder.
- 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:
[Unattended]
OemPreinstall = "Yes"
InstallFilesPath = "C:\sysprep\i386"
- 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:
- Create a batch file named Fix.cmd on a network share to which the Everyone group has Read access.
- Copy the Shell.reg file to this network share.
- In the batch file, place the following command:
regedit /s sharename\shell.reg
- 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.
- 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