|
|
|
|
#1 |
|
Junior Member
Join Date: Jun 2008
Posts: 7
|
Bug in FileWrite?
This script work well on ANSI version of NSIS and failed on Unicode version:
PHP Code:
ANSI: !define Version "3.4.0.96" Unicode: !def |
|
|
|
|
|
#2 | |
|
Junior Member
Join Date: Oct 2011
Posts: 3
|
GetVersion.exe is not a valid Win32 application.
Hello,
I compiled following Code with Unicode NSIS 2.46.3: code: I get a GetVersion.exe, but if I try to start it from the Windows Explorer, I get the message Quote:
I know the post I use Windows 7 64 bit, and other more complex Setup-Skript get compiled well with Unicode NSIS. |
|
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Oct 2011
Posts: 3
|
Hello again!
While I tried to implement the solution with File "program.exe", I noticed the command !define /product_version in the NSIS User Manual. Solutions like with GetDLLVersion or GetDLLVersionLocal are for getting the version from a file on the building machine as a compiler constant during compile time, I think. With the command !define /product_version it's quite easier. So I write a little NSIS header GetVersionLocal.nsh with the macros GetFileVersionLocal and GetProductVersionLocal. Now I can get a constant with the version number without makeing a dummy setup. code: For a description see the header file. |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|