|
|
#1 |
|
Junior Member
Join Date: Oct 2015
Posts: 5
|
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 |
|
|
|
|
|
#2 |
|
Forum King
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. |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Nov 2012
Posts: 166
|
Excerpted from the installer script, [NSIS] .nsi - it's not the original script !
|
|
|
|
|
|
#4 |
|
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 |
|
|
|
|
|
#5 |
|
Moderator
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 |
|
|
|
|
|
#6 |
|
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 ? |
|
|
|
|
|
#7 |
|
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 |
|
|
|
|
|
#8 |
|
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 |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|