Product Version from VisualBuild

Got a problem you cannot solve? Try here.
Post Reply
jhndnn
Posts: 10
Joined: Mon Jun 15, 2009 4:13 pm

Product Version from VisualBuild

Post by jhndnn »

I need to launch the InstallAware build from inside a VisualBuild project. Launching the build is working fine but I'm not sure how to go about setting the Product Version for the InstallAware build. The VisualBuild project generates a version string ( in the Major.Minor.Revision form ) - I assume I need to set this to a compiler variable in the InstallAware build step. Is there a built-in variable that InstallAware will look for to use as the Product Version? If not, how do I go about transferring the compiler variable to the Product Version?
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post by MichaelNesmith »

For the full list of pre-defined variables and pre-defined compiler variables, search the text I have bolded in this post in the help index :)
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
jhndnn
Posts: 10
Joined: Mon Jun 15, 2009 4:13 pm

Post by jhndnn »

Thanks. Just in case anyone else is trying to do this, I ended up passing a compiler-variable on the command line

Code: Select all

miabuild.exe installer.mpr /b=0 /r BUILDVERSION=%BUILDVERSION%
and then ( taken from this post ) inserted the following as the first line of the msi

Code: Select all

Set Variable VERSION to #BUILDVERSION#
and that appears to work.
jhndnn
Posts: 10
Joined: Mon Jun 15, 2009 4:13 pm

Post by jhndnn »

I guess I spoke too soon. Using the above technique I was able to set the VERSION variable and display it in a dialog box using $VERSION$. Unfortunately, the version does not show up in the Version column of the Add/Remove control panel - that entry is blank after installation. Is there something else I need to do to make the version show up there as well?

Attempting put the version in the Product name ( something like 'My Product $Version$' ) works in the dialogs but shows up without the replacement ( literally 'My Product $Version$' ) in Add/Remove programs. So it looks like the msi script is not run soon enough for the installer to use the correct string.

Any ideas?
glenharvy
Posts: 167
Joined: Fri Sep 14, 2007 3:53 am

Re: Product Version from VisualBuild

Post by glenharvy »

Did you ever figure this out?
Post Reply