ビデオヘルプ

Install path recovery Post Install

作成: 04 Sep 2012 • 更新: 05 Sep 2012 | コメント数: 2
この問題は解決されました。 ソリューションを参照してください。

Hello

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,

Marc

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.

タグでディスカッションを検索:

コメント コメント数: 2最新のコメントを表示

AngelD の写真
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
ソリューション