Registering the Software in the computer with the unique Serial Number

Started by accessray, February 05, 2008, 04:55:12 AM

Previous topic - Next topic

accessray


Randem

I haven't used this function but from the language used in the help documentation it would seem that you set UserInfoPage=yes in the [Setup] section and create a CheckSerial function in the [Code] section to check the parameter {userinfoserial} and do any type of checking that you want in the code then return True or False to determine if you should continue the step in the script.
 
function CheckSerial(Serial: String): Boolean;
 
If Setup finds the CheckSerial event function in the Pascal script, a serial number field will automatically appear on the User Info wizard page (which must be enabled using UserInfoPage=yes in your [Setup] section!). Return True to accept the serial number and False to reject it. When using serial numbers, it's important to keep in mind that since no encryption is used and the source code to Inno Setup is freely available, it would not be too difficult for an experienced individual to remove the serial number protection from an installation. Use this only as a convienience to the end user and double check the entered serial number (stored in the {userinfoserial} constant) in your application.

accessray

How can i get the serial number field in the user information page during installation?
As this is the first time i am builing a setup, i need help.

accessray

How can i include the CheckSerial event function  
in my script so that i get the serial number field during installing


accessray


Randem

Here is some information on internal usage of serial numbers in Inno Setup.
 
[Setup]: UserInfoPage
 
Valid values:
 yes or no  
 
Default value:
 no  
 
Description:
 
If this is set to yes, Setup will show a User Information wizard page which asks for the user's name, organization and possibly a serial number. The values the user enters are stored in the {userinfoname}, {userinfoorg} and {userinfoserial} constants. You can use these constants in [Registry] or [INI] entries to save their values for later use.
 
For the serial number field to appear, a CheckSerial event function must be present.
 
The DefaultUserInfoName, DefaultUserInfoOrg and DefaultUserInfoSerial directives determine the default name, organization and serial number shown. If UsePreviousUserInfo is yes (the default) and Setup finds that a previous version of the same application is already installed, it will use the name, organization and serial number entered previously instead.
 
On silent installs, the default user name, organization, and serial number values will be assumed. Setup will not check whether the user name is blank (since the user has no way of correcting it), however it will still check the serial number.

Randem

The Inno Key Generator is only for after installation. If you want a serial number during installation which I strongly recommend NOT to use for they are static and can not be unique per user.
 
If you want to have a unique serial number on installation you would need to run a serial number app during the installation and the installation would check for a good return value from the app or a value in the registry or file to continue.

accessray

Thanks, i want to deploy on XP only.
Now i have another query, that is, How should i incorporate these keys generated from Inno Key Generator in my Inno Script, so that my installer asks for registration key while installing

Randem

NT Versions include Win NT, 2000, XP and Vista.
 
If you want a serial number scheme that works for all windows you will most likely have to pay for it.

accessray

I would like to have a solution which can work on Non NT version of windows, as my application is not server based.
Please Help

Randem

Go to the InnoSctipt page and download the Inno Key Generator to incorporate that into your app.
 
This will give you a unique registration key for any user. Note: The key generator will not work on non NT versions of windows.

accessray

I have developed a software,  
I want to sell it with the registration key or the serial number, so that every user is authorised to use the software.
 
If somebody installs this software on his machine, the installer should verify the serial number or the registration key provided to him, which is unique to everyone.
 
Now i want to know how can i generate such registration key, so that my software can not be pirated.

Randem

What exactly do you want to do? Are you attempting to handle user registration? There is no reason you need a serial number to install on a computer.
 
A better explanation is needed.

accessray

I am new user of Inno Script and Inno Setup,  
Can anyone please help me to understand, how can i register my software on my computer with an unique serial number.
Can i use, #define issi_generateserial preprocessor. if yes then how can i use it?