[CMake] NSIS builder creating invalid exe

Bill Hoffman bill.hoffman at kitware.com
Fri Jan 9 17:22:29 EST 2015


On 1/9/2015 12:43 PM, Gonzalo Garramuño wrote:
> I updated my CMakeLists.txt to create an NSIS installer under a Nmake
> Makefile.
> The packaging works without errors when run with 'nmake package'.
>
> However, the resulting exe file when run, returns:
> Bad file number.
>
> The problem happens on both builds for win32 and win64.
> The NSIS installer is 3.0a1 and cmake v3.0.1.
Try running it from explorer and not the command line.  It might be 
asking to raise permissions since it is an installer.

-Bill



More information about the CMake mailing list