I am trying to use the application version that I pass in using --setvars and set to the project.version of the build script. The variable is known when creating the installer, because the filename contains the version I passed in with --setvars for the outdir. The issue is that when I go to run the installer on the user machine, the variable is unknown for some reason. Is there an explicit method for persisting this version information so that upon installation, I can reuse this variable?
But when I run it on the user system, I get the following error from the bitrock_installer.log:
Any help would be appreciated.
asked 14 Jun '12, 15:10
Variables defined at build-time are not available at run-time. The usual solution for this is to define a hidden parameter:
But in your case, as you are just using the variable to configure a project setting, you could just configure it directly:
answered 14 Jun '12, 16:45