0
votes

I've created a bootstrapper application for my WIX installer. One of the installers that I am bundling needs to have an install condition based on the version of a file that is allready installed. I don't have access to the source of the installer in question, so I can't put the condition in that installer.

I have found in the documentation how to create a file version based condition inside of an MSI. ()

My question is how do I use a similar condition directly in an bootstrapper project.

2

2 Answers

2
votes

Use FileSearch from WixUtilExtension to get the version of the file into a Burn variable. You can use the Burn variable in a package's InstallCondition.

2
votes

as stated by Bob Arnson, you can get a version in bootstrap project like this

<util:FileSearch  
        Id="CheckVer"
        Path="[CommonFilesFolder]\xyz\xyz\abc.dll"
        Variable="FILEVERSION" 
        Result="version" />

FILEVERSION will contain the version of the dll or exe. as described in the documentation FileSearch Element