Find install source in Windows registry for program
Posted: Mon Jan 10, 2005 8:52 am
BB
Regular
Joined: Jun 23, 2004
Posts: 340
In windows 2000 and XP, I needed to find the original installation source for a program. in this case, the program was Microsoft Office. Office 2000 had been installed from a server on the network and I needed to know which one.
The source list key has a value called "LastUsedSource". It contains the drive/folder name from which the program was originally installed.
\\ourserver\source\Off2000sr1\
Script to enumerate of installed programs and sources
Posted: Thu Dec 29, 2005 11:39 am
BB
Regular
Joined: Jun 23, 2004
Posts: 340
Here is a sample script to enumerate the registry key and subkey strings to show the install source for all installed files. Run it using cscript on the command line to avoid clicking the wscript message box repeatedly.
I saved this code into a file called regenum1.vbs. Then I type
For Each subkey In arrSubKeys
Wscript.Echo " "
Wscript.Echo subkey
objReg.EnumValues HKEY_LOCAL_MACHINE, _
strKeyPath & "\" & subkey, arrValueNames, arrValueTypes
if isarray(arrValueNames) Then
ValueNamesCount= UBound(arrValueNames)
For I=0 To ValueNamesCount
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest (c) 2006 by Group29 Productions.
You can syndicate Group29 Productions news with an RSS Feeder using the file backend.php