问题
Im having trouble coming up with a way to secure an installer for an app ive made. I dont need anything too intense, just something to 'lock' the installer I guess.
Thanks.
Due to the first comment, when I say secure I mean using a password or key to prevent unauthorized use.
回答1:
It is possible to unpack the files contained in a .msi without running the installer by using 3rd party tools. If you want to prevent this you would have to decrypt the files with a custom action.
It is probably better to put any kind of serial validation in the app itself so people can not copy a working install...
回答2:
There are two approaches for this:
- Serial number validation during install. Most setup tools offer support for it and it's pretty easy to configure.
- Application trial/registration. This is a more complex feature and only a couple of setup tools support it.
Each approach has it's own implementation and advantages, so you should first decide what you want. After that, you can try to implement it in your installer. You can then ask for more specific questions when encountering problems.
Here is a list of setup tools which can get you started: http://en.wikipedia.org/wiki/List_of_installation_software
来源:https://stackoverflow.com/questions/9352693/securing-an-msi-to-prevent-unauthorized-use