![]() |
#1 |
Guest
Posts: n/a
|
Software license protection with NSIS?
How can I use NSIS to enforce some form of copy or license protection for the software being installed?
Is it possible? (eg, limit the number of installations, or some such thing.) Any ideas, suggestions, etc would be greatly appreciated. Thank you. |
![]() |
![]() |
#2 |
Senior Member
Join Date: Jun 2005
Posts: 211
|
If you had some sort of licensing database that the installer could connect to via internet, then you could only allow n number of installations before it becomes invalidated. If the installer can't connect to the internet, display a warning and then exit the installer.
|
![]() |
![]() |
![]() |
#3 |
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
Anything is possible. You just need to find a way to do it with the tools available. Just give it a good thinking.
You could store the number of installations in a temporary file in an unrelated folder, or perhaps better would be to store it in a database online under an IP address or something. -Stu |
![]() |
![]() |
![]() |
#4 | |
Forum King
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
|
Quote:
Please test the attached example. Try to run the installer more than three times. Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS |
|
![]() |
![]() |
![]() |
#5 | |
Junior Member
Join Date: May 2005
Posts: 28
|
Quote:
|
|
![]() |
![]() |
![]() |
#6 |
Forum King
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
|
It is most likely that it has bugs. This is a first step on that request, possible could not get deeper and that's the reason I am not providing the code yet.
However, here is a new version, now runs only 3 times, download it and test it. Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS |
![]() |
![]() |
![]() |
#7 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,505
|
Stuffing something in sys32 is not exactly protection, everything you do on the local system can (and will) get broken (something on a server can get cracked aswell so thats not the point)
IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
#8 | |
Forum King
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
|
I think the point is a research based on this:
Quote:
regards P.S. even a system snapshot before/after is enough to break it. Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS |
|
![]() |
![]() |
![]() |
#9 |
Forum King
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
|
Just in case someone is really interested the code ia at wiki.
Find it here :-) Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS |
![]() |
![]() |
![]() |
#10 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,505
|
what about users without write access to $windir and HKLM ?
IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
#11 |
Forum King
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
|
you need admin rights to install this software, have you ever seen that before? :-)
Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS |
![]() |
![]() |
![]() |
#12 |
Junior Member
Join Date: Mar 2006
Posts: 15
|
redwine nice work there, its not something i would use but its good to see away of doing stuff and certainly gives ideas.
thanks. |
![]() |
![]() |
![]() |
#13 | |
Forum King
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
|
Quote:
Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS |
|
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|