Video Screencast Help
Symantec to Separate Into Two Focused, Industry-Leading Technology Companies. Learn more.

Install path recovery Post Install

Created: 04 Sep 2012 • Updated: 05 Sep 2012 | 2 comments
This issue has been solved. See solution.


I am working on an internal tool for our SQA team to get a text output of our installed MSI packages (This will also be used by TS for trouble shooting).

I have a series of MSIs that are already installed. I thought of using the Component GUID to figure out where files are installed The user chooses where he installs the application. I am looking for a way to find the installed files (INSTALLPATH) regardless of where they are installed to return the binary version of the files. This needs to be done after the MSI is installed.

Is there a way using the info from the MSI to figure out where files were installed. (The MSI's are already in the field so they cannot be modified)

Thanks for the help,


PS: I thought of publishing the path from the MSI during install, the problem with this is that some packages are already deployed at customer sites.

Comments 2 CommentsJump to latest comment

AngelD's picture
The below vbscript would give you the keypath (ex. file path) of the component by the specified ComponentId for the specific ProductCode
Dim sProductCode, sComponentId
sProductCode = "{2D0F2155-D7D3-42CE-903F-684ADD77FF89}"
sComponentId = "{7D3697FC-DB90-46D8-9ED4-5D54B4901F62}"
WScript.Echo MsiGetComponentPath(sProductCode, sComponentId)
Function MsiGetComponentPath(ByVal ProductCode, ByVal ComponentId)
Dim Installer, ComponentPath
Set Installer = CreateObject("WindowsInstaller.Installer")
MsiGetComponentPath = Installer.ComponentPath(ProductCode, ComponentId)
End Function