Channg "Product Version" at compile Time..

Got a problem you cannot solve? Try here.
Post Reply
ecarbone
Posts: 8
Joined: Thu Oct 07, 2010 9:14 pm

Channg "Product Version" at compile Time..

Post by ecarbone »

Hi;

I'm using a .bat file miabuild.exe in order to dynamically compile a project, I'm using some "compiler variables" that give me some control about how the project gets compiled and they are working fine.

What I want to do now it's to change the "Product Version" at compile time, I thought that defining a compiler variable, let's say "MY_VER" and passing the value thru my .BAT (miabuild PATH_TO_PROJECT\Project.mpr MY_VER=1.5) I'll be able to catch that on code and do something like "SET VARIABLE VERSION TO MY_VER" o perhaps "SET VARIABLE VERSION TO #MY_VER#" neither of the options worked and the version of the file keeps the value that's defined on the GUI (Project Settings -> Product Version).

Does any knows if I can change Product versin thru miabuild???

Regards,

Enrique
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: Channg "Product Version" at compile Time..

Post by giaviv »

Dear ecarbone,

In order to dynamically set the product version at compile time try and set the VERSION variable to #BUILDVERSION# in the MSI code.

You can refer to this thread for more information:
http://installaware.com/forum/viewtopic.php?f=2&t=4676

Best,
Aviv Giladi
InstallAware Support
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
ecarbone
Posts: 8
Joined: Thu Oct 07, 2010 9:14 pm

Re: Channg "Product Version" at compile Time..

Post by ecarbone »

Thanks for the answer...I'll give a try.

Regards,

Enrique
mikKummerfeld
Posts: 252
Joined: Sat Dec 03, 2011 3:07 am
Location: Konstanz, Germany
Contact:

Re: Channg "Product Version" at compile Time..

Post by mikKummerfeld »

Does not work.

#BUILDVERSION# and $BUILDVERSION$ is always empty (testet with Messagebox)
Kind regards

Heiko Kummerfeld
MIK GmbH

Setup developer for .NET BI Software (12 products)
Head of quality assurance
technical consultant
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Channg "Product Version" at compile Time..

Post by FrancescoT »

Dear User,

Please refer to the link below;
http://www.installaware.com/forum/viewt ... f=2&t=8927

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Post Reply