PDA

View Full Version : Setting the installer/web update Version Info from a file



NewsArchive
08-22-2006, 07:02 AM
I have a multi-dll and exe project and I have a version.ini file where I set
my version info. Then when compiled my apps read the version ini and set
the version resource to the info in the ini. So I can change one file then
batch compile and all my apps have the same version info.

I would like for Setup Builder to read the version info from one of my files
and change the version resource file version, the web deployment product
version and the compiler variable productver all to match.

I have tried a few things using Get File Information(Product Version
(Resource)) of file "C:\Projects\CRM\Bin\GDM.Exe" but I am not sure how to
access the variables.

Thanks

Eddie

NewsArchive
08-22-2006, 10:15 AM
Eddie,

You cannot use "Get File Information" because this function is only
available at runtime, no at compile time. What you could try is the
following:

You have this c:\version.ini file:

[$MY_VERSION$]
Value=5.0.0.0

Then in your script, do the following to read the version value into your
[PRODUCTVER] compiler variable:

#const $MY_VERSION$ = Get Value from INI file: c:\version.ini
#set compiler variable [PRODUCTVER] = "$MY_VERSION$"

Does this help?

Friedrich

--
Friedrich Linder
CEO, Lindersoft
www.lindersoft.com
+1.954.252.3910

"point. click. ship" - that's SetupBuilder 5

NewsArchive
08-23-2006, 03:55 AM
Friedrich,

That works for setting the PRODUCTVER compiler variable but I still need to
set the version resource for the setup exe and the web update product
version. Is there any access to set/change them from the script?


Thanks

Eddie

NewsArchive
08-23-2006, 04:01 AM
Eddie,

You can use the [PRODUCTVER] compiler variable in the Version Resource ->
File Version field and the iDeploy Web Update -> Product Version field.

We are doing the same with our SetupBuilder installations. We read the
version value from a version.ini file and use it in the above fields.

Does this help?

Friedrich

--
Friedrich Linder
CEO, Lindersoft
www.lindersoft.com
+1.954.252.3910

"point. click. ship" - that's SetupBuilder 5

NewsArchive
08-23-2006, 07:59 AM
Friedrich,


Thanks, I have it now. I was trying to do it in the script editor.


Eddie