This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: reading the username textbox in customer info dialog
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
May 17, 2012
02:12 PM
reading the username textbox in customer info dialog
I am trying to read the username textbox within the customer information dialog. I need this along with the serial number to authenticate the install. Can anyone help me out with this?
(1) Reply
May 17, 2012
04:54 PM
InstallShield Express only supports the serial number validate function with the following parameters :
ValidateSN(HWND hwnd, LPSTR szSrcDir, LPSTR szSupport, LPSTR szSerialNum, LPSTR szDbase)
It does not take the User Name setting that you can specify on the Customer Information dialog nor a MSI handle.
So you may want to consider creating your own MSI DLL custom action to validate a serial number, and scheduling it after the Customer Information dialog in the Custom Actions view. Note that the User Name setting is stored in the USERNAME Windows Installer property, and the Serial Number setting is stored in the ISX_SERIALNUM property. Once your custom action validates a serial nubmer, it would need to set the result to a custom Windows Installer property. You still need to write a serial number DLL (ValidateSN function) for the Custom Information dialog so that it would return a value based on the value of the property that stores the validation result.
InstallShield sequences the serial number DLL file custom action after any user-defined custom actions. Thus, if you add your own custom action and schedule it after the Customer Information dialog, the installation launches this custom action before the serial number DLL file custom action.
Hope that helps.
ValidateSN(HWND hwnd, LPSTR szSrcDir, LPSTR szSupport, LPSTR szSerialNum, LPSTR szDbase)
It does not take the User Name setting that you can specify on the Customer Information dialog nor a MSI handle.
So you may want to consider creating your own MSI DLL custom action to validate a serial number, and scheduling it after the Customer Information dialog in the Custom Actions view. Note that the User Name setting is stored in the USERNAME Windows Installer property, and the Serial Number setting is stored in the ISX_SERIALNUM property. Once your custom action validates a serial nubmer, it would need to set the result to a custom Windows Installer property. You still need to write a serial number DLL (ValidateSN function) for the Custom Information dialog so that it would return a value based on the value of the property that stores the validation result.
InstallShield sequences the serial number DLL file custom action after any user-defined custom actions. Thus, if you add your own custom action and schedule it after the Customer Information dialog, the installation launches this custom action before the serial number DLL file custom action.
Hope that helps.