Old 11th April 2006, 15:51   #1
Nick bailey
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.
  Reply With Quote
Old 11th April 2006, 17:11   #2
goldy1064
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.
goldy1064 is offline   Reply With Quote
Old 11th April 2006, 17:11   #3
Afrow UK
Moderator
 
Afrow UK's Avatar
 
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
Afrow UK is offline   Reply With Quote
Old 11th April 2006, 20:09   #4
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
Quote:
Anything is possible. You just need to find a way to do it with the tools available. Just give it a good thinking.
That's right Stu! You opened the door!
Please test the attached example. Try to run the installer more than three times.
Attached Files
File Type: zip test.zip (28.3 KB, 1050 views)

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
Red Wine is offline   Reply With Quote
Old 11th April 2006, 22:20   #5
eyeinthesky43
Junior Member
 
Join Date: May 2005
Posts: 28
Quote:
Originally posted by Red Wine
That's right Stu! You opened the door!
Please test the attached example. Try to run the installer more than three times.
Your test works correctly and you can't run it after the third time, however if you re-extract the files from the zip you can run it again....
eyeinthesky43 is offline   Reply With Quote
Old 11th April 2006, 22:44   #6
Red Wine
Forum King
 
Red Wine's Avatar
 
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.
Attached Files
File Type: zip test.02.zip (28.6 KB, 1011 views)

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
Red Wine is offline   Reply With Quote
Old 12th April 2006, 00:15   #7
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,339
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
Anders is offline   Reply With Quote
Old 12th April 2006, 13:55   #8
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
I think the point is a research based on this:
Quote:
Anything is possible. You just need to find a way to do it with the tools available. Just give it a good thinking.
Besides the fact that there is not uncracked software on the market, (even if they implement expensive protection schemes), the control of the usage on more than one machines, could be done only by a kind of an activation scheme. Any other protection is stuck on the local machine. The installer is not the "end user's software", is just the container, so the reasonable solution should be a kind of "user name-serial number" protection. Though, stick in "find a way to do it with the tools available", just carry out an experiment. An installer who counts the run times and expires after n times. No doubt that every user on this forum could easily break that scheme. Moreover, who really needs something like this? I think as a subject matter, has a point. With the tools available this is what I can do. In fact all the job is dependent on decrypt dll. And here comes where I end up. Download it and try it if you like. Probably, I'll post the code on wiki for reference.
regards

P.S. even a system snapshot before/after is enough to break it.
Attached Files
File Type: zip test.03.zip (28.6 KB, 947 views)

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
Red Wine is offline   Reply With Quote
Old 13th April 2006, 21:39   #9
Red Wine
Forum King
 
Red Wine's Avatar
 
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
Red Wine is offline   Reply With Quote
Old 13th April 2006, 22:34   #10
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,339
what about users without write access to $windir and HKLM ?

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 13th April 2006, 22:40   #11
Red Wine
Forum King
 
Red Wine's Avatar
 
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
Red Wine is offline   Reply With Quote
Old 14th April 2006, 01:50   #12
sissy
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.
sissy is offline   Reply With Quote
Old 14th April 2006, 15:46   #13
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
Quote:
redwine nice work there, its not something i would use but its good to see away of doing stuff and certainly gives ideas.

thanks.
Thank you too! :-)

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
Red Wine is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump