PDA

View Full Version : How to pass UpgradeCode to bootstrapper


ljensen
09-29-2008, 11:13 AM
I have a MSIF v2.1.1002.0 project that has an associated boostrapper defined in Build Settings, Custom Bootstrapper. In the MSIF Build Settings, Custom Bootstrapper I click on Edit; what do I enter for "Additional command line options:"? I've tried:

-var:UpgradeCode="$(var.UpgradeCode)"
-var:UpgradeCode="$(UpgradeCode)"

To name a just a few! But I never seem to be able to access the UpgradeCode in my bootstrapper mainscript.lua. What am I doing wrong?!

Thanks.

jassing
09-29-2008, 02:22 PM
I have a MSIF v2.1.1002.0 project that has an associated boostrapper defined in Build Settings, Custom Bootstrapper. In the MSIF Build Settings, Custom Bootstrapper I click on Edit; what do I enter for "Additional command line options:"? I've tried:

-var:UpgradeCode="$(var.UpgradeCode)"
-var:UpgradeCode="$(UpgradeCode)"

To name a just a few! But I never seem to be able to access the UpgradeCode in my bootstrapper mainscript.lua. What am I doing wrong?!

Thanks.

are you asking about the command line when running the bootstrapper? or when building... I mean; you want the upgradecode at build time?

ljensen
09-29-2008, 06:06 PM
I'd like it to be passed from the MSIF project to the bootstrapper during build time, just like ProductCode, PackageCode, etc.

I initiate the build from the MSIF project, so I'm assuming it is handling the command line to the bootstrap maker.

jassing
09-29-2008, 10:28 PM
Hmm. "at build time" confuses me...

ljensen
09-30-2008, 11:49 AM
By 'build time' I mean when I click 'Build Installer' in the MSIF program. It compiles the MSI file, then calls the bootstrapper (because I have a Custom Bootstrapper defined in the MSIF project) to generate the *.exe file.