I'm creating an installer which requires the Office Primary Interop Assemblies (PIA). I've added the .msi file from Microsoft to the Prerequisites, but I only want to install the program if the assemblies aren't already installed on the client machine already (they could have been installed with one of the Office editions).
How can I test for the presense of the PIA assemblies in the GAC?
I've tried the following but none of these work:
Criteria = "File Version"
File To Find = "[WindowsFolder]assembly\Microsoft.Office.Interop.Excel.dll"
Search Depth = 2
(doesn't seem to find the file)
Criteria = "File Version"
File To Find = "[WindowsFolder]assembly\GAC\Microsoft.Office.Interop.Excel\11.0.0.0__71e9bce111e9429c\Microsoft.Office.Interop.Excel.dll"
(doesn't seem to find the file)
Criteria = "Registry value exists"
Registry Value = "HKCL\Installer\Assemblies\Global\Microsoft.Office.Interop.Excel,Version="11.0.0.0000",Culture="neutral",PublicKeyToken="71e9bce111e9429c",FileVersion="11.0.5530.0""
(get the error Please select a registry value containing a string!)
FOLLOW US
Get the latest news in Application Packaging