Tip

Registry's troubles hunting source files solved

Please let us know how useful you find this tip by rating it below. Do you have a useful Windows tip, timesaver or workaround to share? Submit it to our tip contest and you could win a prize!


Windows 2000,

Requires Free Membership to View

XP and 2003 use a Registry setting to determine where to obtain installation files, and where Service Packs were installed from. The former is used for installations from CD, and the latter is used for when the system needs to automatically obtain updated files from the service pack, so the user doesn't have to provide the files manually.

There are many scenarios where you may need to manually edit where Windows expects to find its installation files. One of the most common is when Windows is deployed using files on a network share, which is then later taken offline. If you try to replace system files via the System File Checker (SFC) utility (i.e., SFC /SCANNOW), Windows will search in vain for the installation path and fail.

Other problems can occur if Windows was installed via a custom-built CD with a directory structure that's different from the manufactured CD. If you install with one and then try to add components with the other, Windows may not be able to find everything if you use SFC.

Windows keeps its installation source locations in the Registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup. (Note that in Windows 2000, the Registry path may use "Windows NT" instead of "Windows.")

Look for the following values to edit as needed:

  • Installation Sources (REG_MULTI_SZ): This lists all of the possible locations for Windows to check for installation files, each on its own line. If you want to add new locations to check for installation files, provide them here. Network paths are allowed. (If you're using Windows 2000, you must use RegEd32.exe to modify this value.)

  • SourcePath (REG_SZ): The default location where Windows checks for an installation CD. This is by default a path to the first CD-ROM drive (i.e., E:\), and can be changed to point to a new path or a directory share if needed.

  • ServicePackSourcePath (REG_SZ): The default location where the last Service Pack was installed from. This is generally set automatically when a Service Pack is applied.

  • ServicePackCachePath (REG_SZ): The location where Service Pack files are cached and held so they can be copied out as needed -- for instance, if new hardware drivers or system components are installed. This is generally set automatically. Windows 2000 may not use this; look for ServicePackSourcePath instead.)


Serdar Yegulalp is the editor of the Windows 2000 Power Users Newsletter. Check out his Windows 2000 blog for his latest advice and musings on the world of Windows network administrators -- please share your thoughts as well!

This was first published in February 2005

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.