Skip to content
⌘ NSIS Forum Archive

unpack and recompile gives error

8 posts

alaa2003#

unpack and recompile gives error

Hello
i noticed in case we unpack nsis package installer we will got its files + nsi script
in case trying to recompile again it gives error even without Modification !!
Example:
i uploaded .exe package + i unpacked it
if try to recompile again will got errors
how to fix these errors in the uploaded 😳

Yathosho#
If this is a serious help request, read Can I decompile an existing installer?

The download was reported as harmful by Chrome, so everybody downloading the file be careful.
alaa2003#
Thank you for quick answer
the link included both .exe and unpacked folder too used 7zip
i re uploaded files to another host
Anders#
And did you download this decompiler from our webpage? No? We never promised that you could decompile anything.

At best the decompiled script you got from a 3rd-party could be a starting point if you need to rewrite your script in case you lost the original source.
alaa2003#
thx Anders for your answer which is very iseful
i studied this subject well and made bellow :
1- using "exe extractor" i could get "script.bin" file
2- downloaded last version of thirdparty decopiler "nsiDecomp#3.7z"
3- on windows 8.1 i installed python for windows from official site "Python34"
4- i copied script.bin into extracted folder nsiDecomp#3
5- from CMD as administrator i executed command " nsiDecomp.py script.bin"
but got error
C:\Python34>python.exe nsiDecomp.py
File "nsiDecomp.py", line 107
return(Long(~value) & 0x80000000L )
^


please note i tried the "script.bin" which included in Decompile program as example
what is the wrong step i make ?
alaa2003#
ok , after study cmd scripts i could understand a lot of things
i manually copied extracted script.bin to path example\Sample2
and empty all data inside file example\Sample2\!Decompiled\script.bin.nsi
then executed cmd nsiDecomp.cmd
but found there is wrong code appear of nsiDecomp.py it self
even if tried with your attached samples !

error print screen


python installed is 3.4.3 + windows 8.1 x64
alaa2003#
update:
i downgraded to the mentioned python version and applied decompile again
it works great with given samples
but with script i attach it gives error and stop
how can solve


script: http://www30.zippyshare.com/v/sF6Roz9X/file.html