jimpark / unsis

Automatically exported from code.google.com/p/unsis
Other
59 stars 15 forks source link

Is not a valid win32 application created with v2.46.3-Unicode #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1) Create simplest installer with makensis.exe v2.46.3-Unicode
2) Run installer and see message that installer isn't valid win32 app.

What is the expected output? 
Installer runs.

What do you see instead?
Messagebox stating "... is not a valid Win32 application."

What version of the product are you using?
v2.46.3-Unicdoe

On what operating system?
Win7 Enterprise, 64bit OS

--Breaks with following .nsi:

Name "myTest"
OutFile "myTest.exe"

Section TheFirst
    File "inlcudeMe.txt"
SectionEnd

-------------------

Original issue reported on code.google.com by ElderShe...@gmail.com on 18 Nov 2011 at 11:52

GoogleCodeExporter commented 9 years ago
I have the same problem trying the hello world example. The exe is built, but 
when trying to run it, it is reported "not a valid Win32 application" (but in 
swedish).
The same goes for v2.46.2, but v2.46.1 works!
I use Win7 Ultimate 64bit Swedish.
Best regards,
Sven

Original comment by s...@emtell.com on 24 Nov 2011 at 2:59

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
It appears that this error happens when the final size of the installer is 
smaller than the size of the stub (like lzma_solid). The following installer 
failed and gave the "not a valid win32 application". The stub was 50176 bytes 
to begin with and the final installer was 48531 bytes, which is smaller than 
the stub.

Using lzma (compress whole) compression.

EXE header size:               47616 / 50176 bytes
Install code:                          (18456 bytes)
Install data:                          (11268 bytes)
Compressed data:                 911 / 29724 bytes
CRC (0x12A8D60B):                  4 / 4 bytes

Total size:                    48531 / 79904 bytes (60.7%)

Original comment by ElderShe...@gmail.com on 13 Dec 2011 at 5:46

GoogleCodeExporter commented 9 years ago
This may be a problem with using MS VC++ 2010. I will test this with VC++ 2008 
and see if the problem goes away.

Original comment by j...@scratchpaper.com on 24 Feb 2012 at 7:20

GoogleCodeExporter commented 9 years ago
The fix is released in 2.46.4.

Original comment by j...@scratchpaper.com on 24 Feb 2012 at 9:41