You need to have Innosetup preprocessor installed. It is available as a
stand-alone download or via the innosetup quickstart pack (in downloads
page). It basically allows you to #DEFINE variables, exactly in the same way
Frank shown you (#define MyAppVersion "<<m.lcExeVersion>>"). What Frank
didn't mention was he has the preprocessor installed. A regular installation
of InnoSetup compiler (just the compiler only) will error at that line.

> -----Original Message-----
> From: [email protected] [mailto:profoxtech-
> [email protected]] On Behalf Of MB Software Solutions, LLC
> Sent: Friday, November 26, 2010 10:07 PM
> To: [email protected]
> Subject: [NF] Inno Setup question
> 
> I have the following properties in my scripts:
> 
> AppVerName=LTP 2.0.294
> VersionInfoVersion=2.0.294
> VersionInfoTextVersion=2.0.294
> VersionInfoProductVersion=2.0.294
> AppVersion=2.0.294
> 
> 
> Is there a way for me to set a variable to the version and then just have
to
> set it once?  If I did, I could code my Inno Script like this:
> 
> MyVersion = 2.0.204
> AppVerName=LTP <<MyVersion>>
> VersionInfoVersion=<<MyVersion>>
> VersionInfoTextVersion=<<MyVersion>>
> VersionInfoProductVersion=<<MyVersion>>
> AppVersion=<<MyVersion>>
> 
> 
> I've thought about putting a projecthook in place (AfterBuild event) where
it
> sets all these values.  Anyone doing that?
> 
> --
> Mike Babcock, MCP
> MB Software Solutions, LLC
> President, Chief Software Architect
> http://mbsoftwaresolutions.com
> http://fabmate.com
> http://twitter.com/mbabcock16
> 
[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to