Summary
How to check prerequisite conditions and include them with your installer using InstallAnywhereSynopsis
This article provides information on a few ways you can check prerequisite conditions during run time, as well as how to bundle and execute the prerequisite with your InstallAnywhere installer.Discussion
When using InstallAnywhere, there are several ways to check conditions for a prerequisite that your installation or application needs. You can then bundle or download the prerequisite to install it as needed.Windows Registry:
You can check the value or existence of a Windows registry entry by using the "Get Windows Registry Entry" action. The registry key value and existence are stored into their own user-defined InstallAnywhere variable. You can then utilize a "Compare InstallAnywhere Variable" rule to condition your actions accordingly.
File or Folder Existence:
To add a condition to an action to check if a file or folder exists, you can utilize the "Check File/Folder Attributes" rule, which will allow you to verify the existence of a file or folder path.
User is Running a Particular OS:
To add a condition to an action to check what OS the user is running on, you can utilize the "Check Platform" rule and/or the "Check System Architecture" rule.
Installing Prerequisite
You can use an "Execute Command" action or an "Execute Script/Batch File" action to run the installer for the prerequisite. If you plan on bundling the prerequisite with your installation, you will need to add the required file before the Execute Command or Script/Batch File action to allow it to work. You can avoid installing the required file to the target system by setting the Destination Path to DO NOT INSTALL, which allows the file to be used as a resource during install but won't actually get installed. Alternatively, if you do not want to bundle the prerequisite with your installer, you can use a "Download File Action" to download the prerequisite file from a URL. If you instead want to abort the installation, you can use the the AbortInstallAction custom code provided on our website here.
Additional Information
General ActionsCustomizing a Check File/Folder Attributes Rule
Customizing a Check Platform Rule
Rules Reference
Creating Custom Platform Expressions
Was this helpful?
Related Articles
Windows Installer Property PATCH - Working With Conditions in a Basic MSI Specific to a Patch Install 6Number of Views CVE-2021-44228: Log4j Vulnerability Impact on InstallAnywhere 14Number of Views CVE-2026-4869: Potential Privilege Escalation in InstallShield 2025 R2 running Setup Prerequisites from an insecure directory 15Number of Views Setup Prerequisites Fail After Successful Installation 9Number of Views Restore Correct Java Swing UI Scaling When Using InstallAnywhere LaunchAnywhere Executables 3Number of Views
Revenera Assistant
Online
Hi, I am Reva - Ask me anything.
Updates
No new updates
Chat
Home
Updates
/**/
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add additional feedback (optional)
0/240
English
English
Language changed successfully
Something went wrong
Email sent successfully
Something went wrong
Case create successfully
Are you sure you want to cancel
the case creation?
Please select a product to submit the case.
Please select a product version to submit the case.
0/255
Upload Attachment
File Upload
Maximum file
size allowed is 3 MB.
File type
not supported.
Supported file types:
Documents (.txt, .doc, .docx, .pdf), Images (.jpg, .png),
Comma Separated Files
(.csv) Speadsheets (.xlsx, .xls)
Are you sure you want to cancel the case creation?
Case closed successfully
File Upload
Maximum file size allowed is 3 MB.
File type not supported.
Supported file types:
Documents (.txt, .doc, .docx, .pdf), Images (.jpg, .png),
Comma Separated Files
(.csv) Speadsheets (.xlsx, .xls)
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. | |
File Upload
Maximum file
size allowed is 3 MB.
File type
not supported.
Supported file types:
Documents (.txt, .doc, .docx, .pdf), Images (.jpg, .png),
Comma Separated Files
(.csv) Speadsheets (.xlsx, .xls)
Revenera Assistant
© 2026 Flexera Software. All Rights Reserved.
Case id: 00001065
Activity: Status change: 2 hours ago