Extract file Version info at compile time

Got a problem you cannot solve? Try here.
Post Reply
IanM
Posts: 42
Joined: Tue Mar 08, 2005 1:23 pm

Extract file Version info at compile time

Post by IanM »

I would like to be able to extract the version number from my key application file at compile time and use this to align the install program Version number that appears on dialogs etc.

Any suggestions?
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post by MichaelNesmith »

You can try the automation interface to programmatically emit a setup project and build it...
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
IanM
Posts: 42
Joined: Tue Mar 08, 2005 1:23 pm

Post by IanM »

MichaelNesmith wrote:You can try the automation interface to programmatically emit a setup project and build it...
Thanks Michael,

I was just being lazy and it is probably not worth the time it would take for me to code this up vs. manually changing the version numbers in each project.

However looking at the Automation DLL miaInitiliaseProject function made me wonder if miaBuild could be enhanced in the future by allowing any/all of the project settings such as Version number , manufacturer etc to be piped via an ini or XML file.

Ian
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post by MichaelNesmith »

Sure, I'll log this in as a feature request for you! Thanks for the suggestion.
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
tofutim
Posts: 176
Joined: Thu Mar 01, 2012 1:16 pm

Re: Extract file Version info at compile time

Post by tofutim »

Any chance this was ever addressed?
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Extract file Version info at compile time

Post by FrancescoT »

If you are reffering to the possibility to use an ini or XML file with IA Automation ... unfortunately, this is not possible.

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