Accessing the Serial Number During and After Installation

InstallShield 2014 Express Edition

The Windows Installer property that stores end user’s entry for a serial number is called ISX_SERIALNUM. If you select Yes for the Show Serial Number setting for the Customer Information dialog, the serial number field is included on this dialog, and Windows Installer sets the property to the serial number that the end user enters at run time.

During Installation

During installation, you can access the value of ISX_SERIALNUM by using code such as in this VBScript sample:

' Get the value of Serial Number

Dim sSerialNo

sSerialNo= Session.Property("ISX_SERIALNUM")

 

' Show it.

MsgBox sSerialNo

Important: If you want to be able to access the value of ISX_SERIALNUM after the installation, your installation must store the ISX_SERIALNUM value on the target system somewhere. For example, in the Registry view, you could create a registry key that adds a value that uses [ISX_SERIALNUM].

After Installation

Following installation, you can access the serial number if your installation wrote the value of the ISX_SERIALNUM property to the target system. For example, if your installation wrote the value to the registry, you can write code that checks the registry for the serial number.