Summary
How to apply a condition onto a custom action so it only runs during a silent install
Synopsis
This article will explain how to place a condition onto a custom action so that it will only run if the installer is launched silently.
The condition described uses an MSI property and is therefore only valid for BASIC MSI installations.
Discussion
It is important to note that silent installations skip the UI Sequence, therefore placement of your custom action must be in the Execute Sequence of your installer.
Expand the Exec Sequence tree to locate the condition field - it is here that we can place the condition on your custom action which should be : UILevel=2
The UILevel property is set by the Installer depending on the level of the User Interface and contains a number of different values which are shown below:
| Numeric value | User interface level |
| 2 | Completely silent installation. |
| 3 | Simple progress and error handling. |
| 4 | Authored UI, wizard dialogs suppressed. |
| 5 | Authored UI with wizards, progress, errors. |
Additional Information
Information on how to create silent installations can be found in the command line switches for the Microsoft Windows Installer Tool here:
https://learn.microsoft.com/en-us/windows/win32/msi/standard-installer-command-line-options
Further information regarding the UILevel property can be found here:
http://msdn.microsoft.com/en-us/library/aa372096(v=vs.85).aspx
Related Articles
Splash Screen and Icon for InstallScript project. 3Number of Views Setup.exe Uses the Default Icon Instead of the .ico File That Is Configured in the Project 4Number of Views The Suite Project Dialog Image and Icon Resources Will Disappear Automatically when We Leave the Setup Idle. 6Number of Views Perform Silent Install for a Basic MSI 9Number of Views How to Write Custom Messages in the DEBUG log using lc_log? 472Number 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. | |
Case id: 00001065
Activity: Status change: 2 hours ago