Problem
The installer allowed installation into non-empty directories when the intent was to block that, but it also needed to permit installation when the target folder did not exist. This article describes the symptoms and the rule combination that prevents installation into non-empty folders while still allowing installation to proceed when the folder is absent.
Use a Show Message Dialog action immediately after the Choose Install Folder panel and apply two Check File/Folder Attributes rules to the dialog.
#1: Add a Show Message Dialog: Add a Show Message Dialog Action Immediately After the Choose Install Folder Panel
Configure
- Title: Warning
- Label: Warning
- Message: Please Select an Empty Folder
- Button 0 Action: Return to Previous Panel
#2: Create Rule1: Add a Check File/Folder Attributes Rule to the Show Message Dialog
Configure
- File/Folder Path:
$USER_INSTALL_DIR$ - Perform Only if File/Folder: Already exists
- File/Folder Type: Folder
#3: Create Rule2: Add Another Check File/Folder Attributes Rule to the Same Show Message Dialog
Configure
- File/Folder Path:
$USER_INSTALL_DIR$ - Perform Only if File/Folder: Already exists
- File/Folder Type: Folder
- Enable: Check if Empty
#4: Configure Rule Expression
In the Show Message Dialog Rule Expression field, combine the rules as follows:
CFFA537 && !CFFA476
For example: (Folder Exists Rule && !Folder Empty Rule)
After applying the two-rule combination and adding a message dialog, the installer blocks installation into existing non-empty folders and allows installation when the chosen folder does not exist. The user receives a clear message when they must choose an empty or new folder. Thank you for your time and responsiveness in following these steps.
Related Articles
Installer Fails When JDK is Installed on D: Due to Writable JRE Folder Security Check 7Number of Views Installing 32bit lmadmin to "Program Files (x86)" folder on 64bit Windows prevents starting it as a service 4Number of Views Install an Empty Folder via the Direct Editor 7Number of Views Basic MSI Project: Uninstall Does Not Remove the Device Driver Folder 10Number of Views 2025 R1 Update: Handling /tmp/FLEXnet Folder to Prevent Deletion by OS (Mac and Linux) 9Number 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