cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
mtissington
Level 3

Auto change version # in VS 2008

How can I get my install project that is loaded as part of my solution in VS 2008 to automatically set the version number to that of the exe everytime I build ?
Labels (1)
0 Kudos
(4) Replies
JoderCoder
Level 8

Via Automation Interface you should be able to manipulate ProductVersion property. Check out http://helpnet.acresso.com/robo/projects/helplibdevstudio9/IHelpAutoISWiProject.htm
0 Kudos
Christopher_Pai
Level 16

Actually since your using Visual Studio integration, the ISPROJ file ( msbuild document ) supports a property called $(InstallShieldProductVersion) that will take care of all this for you without having to write custom plumbing for calling the automation interface or passing a -y argument to the standalone build.

Personally, I use TFS TeamBuild so I define the properties $(Major) $(Minor) $(Build) and $(Revision) and pass them into a custom BuildNumberOverride task and AssemblyInfo task aswell as mapping it into the ISPROJ as described above. This works very nicely.
0 Kudos
mtissington
Level 3

Can you be a little more specific please (I'm not using TFS)
0 Kudos