Page 1 of 1

GetVersion.nsi & NSIS-v2.46.3-Unicode == invalid win32 app

PostPosted: Tue Nov 22, 2011 8:03 pm
by Reginald
I just spent the last hour composing a thoughtful post to have my browser lose it!!! :x

The highlights:

Bug already reported on NSIS-Unicode forum -

Easily fixed with SysInternals Sigcheck -

In BUILD.CMD, replace...
Code: Select all
echo Getting product version...
%MAKENSIS% "%~dp0\Installer\GetVersion.nsi"
call "%~dp0\Release\Version.cmd"
Code: Select all
echo Getting product version...
SET VersionNshFile="%~dp0\Release\Version.nsh"
FOR /F "usebackq delims=. tokens=1-4" %%i IN (`""%~dp0\Installer\sigcheck.exe" -q -n "%~dp0\mRemoteV1\bin\Release\mRemoteNG.exe""`) DO (
   ECHO !define PRODUCT_VERSION "%%i.%%j.%%k.%%l" > %VersionNshFile%
   ECHO !define PRODUCT_VERSION_SHORT "%%i.%%j" >> %VersionNshFile%
   ECHO !define PRODUCT_VERSION_MAJOR "%%i" >> %VersionNshFile%
   ECHO !define PRODUCT_VERSION_MINOR "%%j" >> %VersionNshFile%

Glad to see someone is maintaining this program. Been playing with code since QBasic and Watcom ANSI C, but couldn't stand to do it for a living. Maybe I can help now and then.


Re: GetVersion.nsi & NSIS-v2.46.3-Unicode == invalid win32 a

PostPosted: Sun Dec 04, 2011 8:50 pm
by rmcardle
Thanks for the info. This looks like a much better way of doing this.