Riprep.exe Adds Duplicate Paths to the Registry

Article translations Article translations
Article ID: 258862 - View products that this article applies to.
This article was previously published under Q258862
This article has been archived. It is offered "as is" and will no longer be updated.
IMPORTANT: This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:
256986 Description of the Microsoft Windows Registry
Expand all | Collapse all

Symptoms

When you use Riprep.exe to create an image of a Windows 2000 Professional installation and the OemPnpdriversPath key is specified in the Sysprep.inf file, the entries placed in this registry key
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows: DevicePath
are duplicated when placed in the registry. For example, an OemPnpDriversPath key that has the value
OemPnpDriversPath = drivers\nic;drivers\video
results in the following values being entered into the OemPnpdriversPath registry key:
SystemRoot\inf;\SystemDrive\drivers\nic;SystemDrive\drivers\video;SystemDrive\drivers\nic;SystemDrive\drivers\video

Cause

This behavior occurs because Riprep.exe incorrectly enters the values supplied by the OemPnpDriversPath key into the registry.

Resolution

WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

Having these duplicate values in the registry can make the setup process take a few moments longer depending on the number of paths that were specified using the OemPnpDriversPath key. The duplicate values do not seem to adversely affect Setup in any other way. However, because the paths specified are used throughout the life of the computer when new hardware is installed, you may want to change these values.

To change the duplicate values, follow these steps:
  1. Start Regedt32.exe, and then load the software hive from the following RiPrep Image directory (type TEST for the key name):
    RemoteInstall\Setup\language\Images\dir_name\i386\Mirror1\UserData\WINNT\system32\config
  2. Edit the TEST\Microsoft\Windows\CurrentVersion\Devicepath key to remove the extra device paths after the default SystemRoot\inf entry.

    Note: All entries must begin with SystemDrive and must be separated by a semicolon (;). For example:
    SystemDrive\drivers\nic;SystemDrive\drivers\video
  3. Save the registry hive by unloading it from Regedt32.exe.

Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

Properties

Article ID: 258862 - Last Review: October 26, 2013 - Revision: 4.0
Applies to
  • Microsoft Windows 2000 Professional Edition
Keywords: 
kbnosurvey kbarchive kbfix kbprb kbsetup W2000SETUP KB258862

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com