Summary
When attempting to use Properties in the General Information view of INSTALLDIR, the Properties are not resolved and are placed on the target machine as [PROPERTYNAME]. The reason for this is that the INSTALLDIR path is provided in a manner similar to an MSI Property, this is only done for display purposes for easier readability. The INSTALLDIR field is not resolved as a ?Formatted? data type and arbitrary property references [ProgramFilesFolder][ProductName] will not work. It uses the Directory table to resolve the path provided. To set a directory (in this case INSTALLDIR) to use a Windows Installer Property please use the following steps:Synopsis
When attempting to use Properties in the General Information view of INSTALLDIR, the Properties are not resolved and are placed on the target machine as [PROPERTYNAME].
The reason for this is that the INSTALLDIR path is provided in a manner similar to an MSI Property, this is only done for display purposes for easier readability. The INSTALLDIR field is not resolved as a ?Formatted? data type and arbitrary property references [ProgramFilesFolder][ProductName] will not work. It uses the Directory table to resolve the path provided.
To set a directory (in this case INSTALLDIR) to use a Windows Installer Property please use the following steps:
Discussion
Follow these steps to set a directory to the value stored in a property. This will not propagate changes to subdirectories, see the Additional Information section of this article to set a directory and all subdirectories as well.
- Create a new directory in the Files and Folders view.
- Right-click the directory and select Properties. Take note of the Directory Identifier that is displayed.
- Launch the Custom Action Wizard. For more information on this, see the References section of this article.
- On the Action Type dialog, set the Type to "Set a directory."
- On the Action Parameters dialog, set the Source to the Directory Identifier created in step 2. Then set the Target to the property containing the desired path with the following syntax:
[PROPERTY]The square brackets,
[...], indicate that the value of the property will be resolved. - On the Insert into Sequence dialog, set the Install Execute Sequence attribute to After CostFinalize. Set the Install Execute Condition to Not Installed.
Related KB Articles
Q105723Q105861
Q105840
Additional Information
The method described in this article will not propagate to any subfolders of the directory being set. To workaround this, the steps can either be repeated for each directory, or the method described in the Knowledge Base article Q105723 can be used.
For more information on custom actions, see the Help Library topic Using the Custom Action Wizard.
Windows Installer properties can be set on the command line according to the Help Library topic MsiExec.exe Command Line Parameters.
Related Articles
Set a Directory Table Entry at Run Time 4Number of Views How Do I Set a Virtual Directory as Permanent? 6Number of Views Setting Install Directory for Silent Install through Response File 16Number of Views Populating A List Box Dynamically At Run Time 8Number of Views How to Dynamically Populate a List Box at Runtime. 8Number 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