Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 18th July 2011, 09:32   #1
isawen
Junior Member
 
Join Date: Jan 2010
Posts: 39
using ReserveFile for exe files => they are not valid Win32 any more

Hi guys,

I'm facing a pretty strange case.
I have used the ReserveFile command to place an exe into the plugins directory, but after I extract it my tool could not be executed any more as windows says "is not a valid Win32 application".

code:

...
ReserveFile "${TOOL_EXE_DIR}\${TOOL_EXE_NAME}"
...
Function .onInit
InitPluginsDir
!insertmacro INSTALLOPTIONS_EXTRACT_AS "${TOOL_EXE_DIR}\${TOOL_EXE_NAME}" "${TOOL_EXE_NAME}"
FunctionEnd

.

What is happening with my exe? I see on the compilation that INSTALLOPTIONS_EXTRACT_AS is trying to write the RTL into the file. How can I extract the exe without changing it? (maybe another command?)


Thanks,
Isawen

isawen is offline   Reply With Quote
 
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump