09.12.2012 Views

InstallShield 2012 Express Edition User Guide - Knowledge Base ...

InstallShield 2012 Express Edition User Guide - Knowledge Base ...

InstallShield 2012 Express Edition User Guide - Knowledge Base ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 18: Additional Installation Options<br />

Implementing Serial Number Validation at Run Time<br />

• When you use a public property in a launch condition that you added to your project through the<br />

Requirements view, <strong>InstallShield</strong> adds the public property to the SecureCustomProperties<br />

property.<br />

• For dialogs that contain a control that is set through a property, <strong>InstallShield</strong> adds that property to<br />

the SecureCustomProperties property.<br />

This enables the custom public properties to be set in the <strong>User</strong> Interface sequence and then passed to the<br />

Execute sequence.<br />

Implementing Serial Number Validation at Run<br />

Time<br />

As part of your installation, you can require end users to enter a valid serial number. You can do this<br />

through a custom action .dll file and the Customer Information run-time dialog.<br />

Task To implement serial number validation for your product:<br />

1. In the View List under Customize the Setup Appearance, click Dialogs.<br />

2. In the Dialogs explorer, click Customer Information.<br />

3. Set the value of the Show Serial Number field to Yes.<br />

4. In the Serial Number Template field, specify the format for your product’s serial number. For<br />

example, type the following:<br />

??????-####-??????????<br />

Note the following guidelines for this field:<br />

• Type a question mark (?) to represent each alphanumeric character.<br />

• Type a number sign (#) to represent each number.<br />

• Type a dash (-) between each group of characters. The dash indicates a break in the serial<br />

number, where one group of characters ends and another begins.<br />

5. In the Serial Number Validation DLL field, enter the location of the .dll file that you use for<br />

serial number validation. Alternately, click the browse (...) button to locate the .dll file.<br />

Tip: Sample code for a serial number validation .dll file is available in the <strong>InstallShield</strong> Program Files<br />

Folder\Samples\WindowsInstaller\ValidateSerialNumber directory. For more information, see Using a<br />

Custom Action for Serial Number Validation.<br />

6. In the Validate Function field, enter the name of the .dll file function that performs the validation.<br />

7. Set the Success Return Value field to a number other than 0.<br />

8. In the Retry Limit field, specify the number of times that you want to allow an end user to attempt<br />

to enter the serial number.<br />

364 ISE-1800-UG01 <strong>InstallShield</strong> <strong>2012</strong> <strong>Express</strong> <strong>Edition</strong> <strong>User</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!