Using serial number from Customer Information page (vs.net)

  • Thread starter Thread starter Mark Harris
  • Start date Start date
M

Mark Harris

I have an installer which uses a Customer Information page in it, is there
an easy way to pass the
serial number entered to a custom action?

If not, where would i find the serial number in the registry?

I'm using C# for the custom action
 
Hi,
Use the CustomActionData property of the custom action DLL.
For a sample: http://www.c-sharpcorner.com/Code/2002/Nov/CustomUI.asp

I have an installer which uses a Customer Information page in it, is there
an easy way to pass the
serial number entered to a custom action?

If not, where would i find the serial number in the registry?

I'm using C# for the custom action
 
Thanks for the reply, i use this for passing data over from 4 other
fields, but the serial number on the Customer Information Dialog doesnt
provide such a variable that i can find. All it provides is a
SerialNumberTemplate, which sets the format for inserting data.

As part of the serial number is the clients identification number, and
their license identification number i need to be able to access the serial
number to verify it with our license servers. The registry entry goes into:
HKLM\SOFTWARE\Microsoft\CurrentVersion\Installer\UserData\S-1-5-21-2283821203-2209084181-2774\InstallProperties\ProductID

I'm not sure yet if that key stays the same for the current installer, but
it would be nice to just pass the info across to the installation
function...
 
Ok, try PIDKEY. Internally, the serial number filed name is PIDKEY.

HTH.

Thanks for the reply, i use this for passing data over from 4 other
fields, but the serial number on the Customer Information Dialog doesnt
provide such a variable that i can find. All it provides is a
SerialNumberTemplate, which sets the format for inserting data.

As part of the serial number is the clients identification number, and
their license identification number i need to be able to access the serial
number to verify it with our license servers. The registry entry goes into:
HKLM\SOFTWARE\Microsoft\CurrentVersion\Installer\UserData\S-1-5-21-228382120
3-2209084181-2774\InstallProperties\ProductID

I'm not sure yet if that key stays the same for the current installer, but
it would be nice to just pass the info across to the installation
function...
 
Back
Top