View Full Version : Setting automatically %ProductVer% SessionVariable
kymaita
03-15-2007, 03:51 PM
Can SetupFactory read the FileVersion of my file to avoid me update manually the SessionVariables Product version row?
%ProductVer%
I always forget to do it.
thks
Brett
03-16-2007, 08:49 AM
No, there is no way for it to automatically pick up the product's version for the installer. However, if you build your installs from an automated build tool such as Final Builder or Visual Build, you can write the version out to an INI file and pass it to Setup Factory as a build constant. See the Command Line Options section of the Help file for more details.
I also forget this, can't say how many times I had to recreate & reupload setups.
Finally I did sort of what Brett suggested, created a small .vbs file that reads the version of my main .exe, works like this
execute the command
filever /a /d app.exe > ver.txt
read the version from ver.txt
delete ver.txt
update an .ini file with the new version
launch SF with this .ini as a param
requires filever.exe which is a small free command line tool from Microsoft, google if you don't have it already
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.