PDA

View Full Version : "Version Info manipulations on compile-time" - Question


Huette
31st January 2006, 10:29
I've read this very nice article : http://nsis.sourceforge.net/Version_Info_manipulations_on_compile-time

It helped me to add the version-informations automatically from an exe-source-file to my setup-exe-file.

But i've got one little problem: there are informations in my source-exe, that i don't want to have in my setup-exe (eg the "OriginalFilename"). And it's important for my automation, that i take that exe-source, without manual modifications.

It would be nice, if i could exlusively save the fileversion info (like 1.0.0.1) of my source-exe to the setup-exe and ignore other infos.

I read a little about the Resource Hacker's extract-operation and it seems, that i can only save the whole version-infos (of one language) to a .res-file.

Any ideas?

MouseFly
31st January 2006, 16:32
http://nsis.sourceforge.net/Invoking_NSIS_run-time_commands_on_compile-time

Hope this helps

Huette
1st February 2006, 06:30
Thanks, but getting the version-number is not the problem. I already use that script.

The problem is to add that number to the versioninfo-tabsheet of my outfile. It has to be done by Resource Hacker's extract- and addoverwrite-operation. Or are there any other solutions?

Afrow UK
1st February 2006, 09:11
See Examples\VersionInfo.nsi

-Stu

Huette
1st February 2006, 11:13
Wow, that's very easy. The next time i won't forget the help-files, before searching wiki/forum :rolleyes: .