Skip to content
⌘ NSIS Forum Archive

Why NSIS can't compile the same .nsi script?

3 posts

surface123#

Why NSIS can't compile the same .nsi script?

I want to replace a portable program launcher. I have to extract the .exe Launcher with 7-Zip 9.34 alpha, which has better support for NSIS, than older versions.
I unpacked the $PLUGINSDIR and .nsi script using extract here command with 7-zip. I did it with a lot of portable programs. But recompiling script gives same error: "WriteRegStr expects 4 parameters, got 8." How to fix this issue, or maybe bug?
aerDNA#
It's because that isn't the actual script that was used to compile, it's a reconstruction, reverse engineering by 7zip. There are likely to be problems with compiling it. I wasn't aware of this functionality in alpha, I didn't test but it actually looks pretty good compared to some other attempts, close to a humanly written script.
aerDNA#
"WriteRegStr expects 4 parameters, got 8." sounds like there are quotes missing somewhere. You can try and fix it but there can easily be other problems.