Setting up system checks for prerequisites in BMG is pretty straight forward. The only option I chose was the MSI Product Check:
You can either get your product code from the msi file that you're including or from your computer's installed applications. They should return the same product code either way. The "Property for Result" is just a variable name that you'll use to check against on the "Install Conditions" tab.
After looking at the help file (which was another painful and buggy experience), these were the return codes I was supposed to check against:
However, even with my prerequisite installed, my "setup.exe" kept wanting to install my prerequisite. I had to intentionally make my setup package fail so that I could snoop into the installation log. What I found was that the return code that I needed to check against wasn't in the help file, the value I was supposed to check against was "5":
After adding the above condition, my prerequisite checks worked correctly, but my installation failed due to an exit code issue. On the "Exit Codes" tab, I had to insert a success for exit code "0" in order for my setup package to determine that my prerequisite installed correctly:
No comments:
Post a Comment