Old 29th October 2015, 07:38   #1
alaa2003
Junior Member
 
Join Date: Oct 2015
Posts: 5
Angry 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

https://www.sendspace.com/file/1nlrys
alaa2003 is offline   Reply With Quote
Old 29th October 2015, 08:14   #2
Yathosho
Forum King
 
Yathosho's Avatar
 
Join Date: Jan 2002
Location: AT-DE
Posts: 3,366
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.
Yathosho is offline   Reply With Quote
Old 29th October 2015, 08:23   #3
stass
Senior Member
 
Join Date: Nov 2012
Posts: 166
Excerpted from the installer script, [NSIS] .nsi - it's not the original script !
stass is offline   Reply With Quote
Old 29th October 2015, 08:25   #4
alaa2003
Junior Member
 
Join Date: Oct 2015
Posts: 5
Thank you for quick answer
the link included both .exe and unpacked folder too used 7zip
i re uploaded files to another host
http://www53.zippyshare.com/v/5jUlH63j/file.html
alaa2003 is offline   Reply With Quote
Old 29th October 2015, 13:17   #5
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,449
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.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 3rd November 2015, 11:41   #6
alaa2003
Junior Member
 
Join Date: Oct 2015
Posts: 5
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 )
^
http://prntscr.com/8yj0q6

please note i tried the "script.bin" which included in Decompile program as example
what is the wrong step i make ?
alaa2003 is offline   Reply With Quote
Old 9th November 2015, 09:46   #7
alaa2003
Junior Member
 
Join Date: Oct 2015
Posts: 5
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
http://prntscr.com/90qhne

python installed is 3.4.3 + windows 8.1 x64
alaa2003 is offline   Reply With Quote
Old 10th November 2015, 08:36   #8
alaa2003
Junior Member
 
Join Date: Oct 2015
Posts: 5
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
http://prntscr.com/913x57

script: http://www30.zippyshare.com/v/sF6Roz9X/file.html
alaa2003 is offline   Reply With Quote
Reply
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