-
File Version
Hello Friedrich,
Is it possible to set the File version (in Version Resource) at compile
time? And - if yes - can the value be stored in a textfile? In my setup
projects this is the only thing I have to change all the time so have this
automated would be great!
Thanks,
Hanspeter Stutz
ARCO Software AG
-
Re: File Version
Hello Hanspeter,
> Is it possible to set the File version (in Version Resource) at compile
> time? And - if yes - can the value be stored in a textfile? In my setup
> projects this is the only thing I have to change all the time so have this
> automated would be great!
No, it's not possible to set the version resource of existing application
files (exe, dll, etc.) at installer compile time. There is no reliable way
to do this.
Friedrich
--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910
"point. click. ship" - that's SetupBuilder 6.7
Create Windows Vista ready installations in minutes
-- Official Comodo Code Signing and SSL Certificate Partner
-
Re: File Version
Hi Friedrich,
uups I didn't make myself clear. I want to set the fileversion in the
setup.exe that will be generated in SB.
sorry for the confusion
Hanspeter
-
Re: File Version
Hi Hanspeter,
> uups I didn't make myself clear. I want to set the fileversion in the
> setup.exe that will be generated in SB.
Aha! Of course, you can set the setup.exe Version Resource at compile time.
You can even use compiler variables here. And yes, you can read the version
value from a test file, store it in a compiler variable and set the version
resource.
See General Information -> Version Resource
Does this help?
Friedrich
--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910
"point. click. ship" - that's SetupBuilder 6.7
Create Windows Vista ready installations in minutes
-- Official Comodo Code Signing and SSL Certificate Partner
-
1 Attachment(s)
Re: File Version
Hi Hanspeter,
I have attached a demo script. It reads the version from an ver.ini file to
set the installer file version resource.
HTH,
--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910
"point. click. ship" - that's SetupBuilder 6.7
Create Windows Vista ready installations in minutes
-- Official Comodo Code Signing and SSL Certificate Partner
-
Re: File Version
That works very nice. I tried in the meantime with "Handle text file
Operation" and getline with an ordinary textfile - that didn't work.
However, your solution works for me.
Thank you
Hanspeter
-
Re: File Version
BTW, you can try something like this (call the tool at installer compile
time)
http://www.elphin.com/products/stampver.html
But make sure that you still have a valid application after you did this.
Friedrich
-
Re: File Version
Note: never (*NEVER*) use a stampver tool on the installer itself!
Friedrich
--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910
"point. click. ship" - that's SetupBuilder 6.7
Create Windows Vista ready installations in minutes
-- Official Comodo Code Signing and SSL Certificate Partner
-
1 Attachment(s)
Re: File Version
Hi Friedrich,
Is it possible to get the file version directly from info of the exe
instead of using an INI?
Sim
-
Re: File Version
Hi Sim,
> Is it possible to get the file version directly from info of the exe
> instead of using an INI?
Yes, no problem. Use the "#get file information..." directive instead.
Friedrich
--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910
"point. click. ship" - that's SetupBuilder 6.7
Create Windows Vista ready installations in minutes
-- Official Comodo Code Signing and SSL Certificate Partner