How do I display a message based on a System Search?
Use the property that was created for the System Search in an If Statement in your .MSI Script. The property will resolve to true if it is populated and false if it is empty. Use the following syntax:
If <PROPERTYUSEDINSYSTEMSEARCH> then
If this messagebox should be displayed from a dialog, follow the steps below:
- Go to All Custom Actions script from the Installation Script drop down at the top of MSI Script.
- Select Call VB Script from Embedded Code.
- Give it a Custom Action Name that is meaningful to the message.
- Enter msgbox, "Your message goes here in quotes".
- On the location tab of this action, ensure that "No Sequence is selected.
- Go to the dialog that you would like to launch the message from.
- Double-click on the Next button and go to the Events tab.
- Click Add and populate the event as follows:
Argument: Name given to message action in step 3.
Conditon: NOT <PROPERTYUSEDINSYSTEMSEARCH>
This will check the property and launch the message box if the property resolves to false or is empty.
Imported Document Id