[prev in list] [next in list] [prev in thread] [next in thread] 

List:       nsis-bugs
Subject:    [NSIS-Bugs] [ nsis-Bugs-2166205 ] uninst.exe "Not a valid Win32
From:       "SourceForge.net" <noreply () sourceforge ! net>
Date:       2008-10-25 20:06:36
Message-ID: E1KtpPA-0007Su-7t () 665xhf1 ! ch3 ! sourceforge ! com
[Download RAW message or body]

Bugs item #2166205, was opened at 2008-10-14 15:55
Message generated for change (Comment added) made by anders_k
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=373085&aid=2166205&group_id=22049

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: General
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Gelu Kelu (gelukelu)
Assigned to: Nobody/Anonymous (nobody)
Summary: uninst.exe "Not a valid Win32 application"

Initial Comment:
NSIS version: 2.40

To replicate the problem:
1. Create a regular (MUI) NSIS script (I used NIS Edit Wizard with just one .exe \
file) 2. Add "CRCCheck off" and compile it; say the output file is "Setup.exe"
3. Add a message table (attached) using Resource Hacker: "ResHacker.exe" -add \
"Setup.exe", "Setup.exe", "Message_Table.res" , MESSAGETABLE,, 4. Setup.exe now \
should have a new resource when view using Resource Hacker (string "{000-000-000}") \
5. Run Setup.exe to install the application 6. The uninstall program (Program \
Files\My application\uninst.exe) is now corrupted. The icon is not visible anymore. \
If you open it with Resource Hacker you will find a Message Table was added. Some \
resources can be viewed, some not (Resource Hacker states: "This file has \
non-standard resource layout... it has probably been compressed with an EXE \
compressor"). The uninstaller runs and does its job on Windows XP, but in Vista you \
get the "Not a valid Win32 application" error and the program halts.

Thank you,
Gelu Kelu

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

Comment By: Anders (anders_k)
Date: 2008-10-25 22:06

Message:
!packhdr works fine for me:

!define reshacker "$%ProgramFiles%\Tools\Resource Hacker\ResHacker.exe"
!packhdr "exehead.tmp" '"${reshacker}" -add "exehead.tmp", "exehead.tmp",
"$%temp%\Message_Table.res" , MESSAGETABLE,,'


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

Comment By: Gelu Kelu (gelukelu)
Date: 2008-10-16 10:15

Message:
I wasn't able to call !packhdr at all. Not even with an "echo OK" bat file
that doesn't alter the .exe header; makensis.exe just crashes on the next
statement after !packhdr.

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

Comment By: Nobody/Anonymous (nobody)
Date: 2008-10-15 22:58

Message:
and if you call resource hacker from !packhdr?

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=373085&aid=2166205&group_id=22049

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
NSIS-Bugs mailing list
NSIS-Bugs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nsis-bugs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic