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

Messages and questions from developers working on mRemoteNG.

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

Postby Reginald » Tue Nov 22, 2011 8:03 pm

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 - http://code.google.com/p/unsis/issues/detail?id=16

Easily fixed with SysInternals Sigcheck - http://technet.microsoft.com/en-us/sysinternals/bb897441

In BUILD.CMD, replace...
Code: Select all
echo Getting product version...
%MAKENSIS% "%~dp0\Installer\GetVersion.nsi"
"%~dp0\Release\GetVersion.exe"
call "%~dp0\Release\Version.cmd"
...with...
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 (
   SET PRODUCT_VERSION_SHORT=%%i.%%j
   
   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.

Peace.
Regg
Reginald
 
Posts: 8
Joined: Tue Oct 18, 2011 5:44 am

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

Sponsor
 

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

Postby rmcardle » Sun Dec 04, 2011 8:50 pm

Thanks for the info. This looks like a much better way of doing this.
User avatar
rmcardle
Site Admin
 
Posts: 459
Joined: Thu Jan 07, 2010 3:40 pm


Return to Developers

Who is online

Users browsing this forum: No registered users and 1 guest

cron