Summary:
InstallShield BMSI: Compare the Serial number with user input using VBScript custom action
Steps to configure the custom action:
1. Create Basic MSI Project.
2. Create Feature and Component then add files to the installer.
3. Goto Behavior and Logic click Custom action and sequence.
4. Right click on the custom action and New Vbscript stored in custom action.
5. Click on the script tab and add the following script,
Dim srSerialNum
Dim srMsg
Dim srValidSerialNumber
Dim nSize
Dim nLength
Dim nValid
' retrieve serial number from property
nSize = 32
srValidSerialNumber="456-CHECK-78910"
srSerialNum = Session.Property("ISX_SERIALNUM")
if srSerialNum = srValidSerialNumber then
Session.Property("VALID_SERIAL_NUMBER")="1"
nValid = Session.Property("VALID_SERIAL_NUMBER")
MsgBox " The Serial Number is correct.",48
else
Session.Property("VALID_SERIAL_NUMBER")="0"
nValid = Session.Property("VALID_SERIAL_NUMBER")
MsgBox "The Serial Number is incorrect. Please try again.", 48
End If
6. Click on Customer Information in Dialogs view, Click on next button and add Vbscript action.
7. Build and run the project.
Related Articles
Retrieve and Set Properties in a VBScript Custom Action 21Number of Views Create a Serial Number Validation custom action DLL Using Delphi 3Number of Views Setting an MSI Property from VBScript Custom Action 5Number of Views Relationship between a virtual machine inventory device record and its host inventory device record is lost when there is … 10Number of Views Setting or Getting the Value of a Property Via a VBScript Custom Action 4Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Revenera Assistant
Case id: 00001065
Activity: Status change: 2 hours ago