Archive: Password protection?


Password protection?
Can I easly password protect my installer?

Like, user is prompted for password right after installer start... or perhaps a bit later?

And without password it is impossible to install program (so that indeed password is used to open rest of the archive)


You can use my PassDialog plugin for the password.
For silent installers (IsSilent) you'd have to check for the password on the command line.
There are functions for reading command line options in the NSIS useful script headers.

-Stu


Thanks, that is interesting, but it looks like
"weak-security" - that is, the data is not encrypted,
only the installer program will not extract it.

So any hacker can just change the installer, or take out the un-encrypted compressed data and unpack it on his own right?

I ment how to use real encryption provided by compression algoritms, something like RAR password or zip7 password.


http://forums.winamp.com/showthread....ght=encryption

-Stu


Well so there is no real solutiion?
IMHO it would be good to have such encryption as native part of NSIS...


There's no such thing as a real solution really. Like said in that topic, you could change some bit values around in one the the enumerations for the LZMA compressor and decompressor so that no other programs can be used to decompress the data and then recompile NSIS.

-Stu


You can create a password protected Winzip or RAR executable which contains your NSIS installer. If the correct password is entered, the executable will decompress properly and kick off your installer.