It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
Hi,

Is there a way to make InnoSetup require a key during installation, but the key is not just one specific one? I mean, I used to be able to use Clickteam Install creator pro, which had a function like that, you just had a base key, and it could generate ones based off that, but any of the generated ones worked.

So can I do something like that in Inno Setup?

Thanks,

sv
No posts in this topic were marked as the solution yet. If you can help, add your reply
You could try this: http://www.mjfreelancing.com/index.php?option=com_content&view=article&id=11&Itemid=13
avatar
A_Future_Pilot: snip
Hi dude,

I tried that one, but I found it only used a single serial key, and it also had two, a private and a public key - I wanted one that just uses one key, but it can be anything that uses the base number.

Thanks anyway though..
Post edited June 27, 2012 by sloganvirst
There is a CheckSerial function, which accepts the serial key string as a parameter. You can create any algorithm you want to verify it and set the boolean result accordingly.
avatar
Gowor: There is a CheckSerial function, which accepts the serial key string as a parameter. You can create any algorithm you want to verify it and set the boolean result accordingly.
I am honored by your blue text! :D

Seriously though, I don't know much about the coding system so would you be able to use some more blue text and give me an example?

Thanks anyway..
Post edited June 27, 2012 by sloganvirst
Basically you define the CheckSerial function in [Code] section of the script. Then you need to check if the entered serial is correct - you need to find your own secure algorihtm for that - Giving you one would be pointless for security :-) This way you can generate multiple keys that will fit the algorithm and pass your check.
And depending on that check you set Result to True or False - Inno Setup wizard will accept or reject entered serial depending on that.

There are many code examples at stackoverflow.com if you want to get a general hang of the coding system. Also Inno Setup has very good documentation online.
avatar
Gowor: snip
Thanks dude! The example you linked has given me a starting point to build my code off at least, and I should be able to make what I want eventually - after a few goes at least. :-)

Btw, not problem if not, but would there be a way to make it check if the serial code is derived from a smaller alphanumeric set of digits? So that way if you have 3 install programs with different small numbers, you won't generate the same key? (if that makes sense)
I never needed a way to generate serial codes (no-DRM after all :-) ), so I don't know much about it.

Check this article. Code examples are in Delphi, so it should be easy to implement them in IS :-)
avatar
Gowor: I never needed a way to generate serial codes (no-DRM after all :-) ), so I don't know much about it.

Check this article. Code examples are in Delphi, so it should be easy to implement them in IS :-)
Ah right, so maybe this is the wrong forum to be asking? :D Although what I am using them for isn't exactly commercial use.

So is Delphi similar to InnoScript them?
Out of curiosity, what are you attempting to prevent with this?

If the continuation of the installation is based on the true/false value of a function, it would be trivial to bypass (redefine the function to always return true, extract the files another way etc.).
avatar
xyem: Out of curiosity, what are you attempting to prevent with this?

If the continuation of the installation is based on the true/false value of a function, it would be trivial to bypass (redefine the function to always return true, extract the files another way etc.).
SANTA! :-D Lol,

Basically nothing really , I just had the idea that since atm I am backing up a large quantity of my games and to make it easier I was putting them in an install and putting all the installers either on discs or on a portable HDD.

I know I am weird, by I just thought it would be cool to have a activation code, a WORKING activation code I mean, for each of the archives. If I was doing it commercially I would definately consider investing in a pro one, but since I am not I just thought someone on here might have done it before.