- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Custom action to install based on ProductVersion Property
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Custom action to install based on ProductVersion Property
I want the install directory to be the [INSTALLDIR]-[ProductVersion]
I'm using a custom action to do this but when I type the above in the Property Value Field it just tries to install to the [ProductVersion].
I guess this might be a bug or maybe I'm miss using this but since InstallShield is the worst supported product known to technology I have no way to know... I don't expect any reply since this is the worst forum as well.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
The Windows Installer table which stores the INSTALLDIR value is unable to read formatted strings - for this reason we can not use Properties in the value of INSTALLDIR.
We can however work around this Microsoft limitation by using a custom action in your project:
Go to custom actions view >> Custom actions >>right click and add “New Set Property”
On the right hand pane configure the action with the below settings:
Property Name: INSTALLDIR
Property Value: [ProgramFilesFolder][ProductVersion]\AnotherFolder
(you can change the above value as per your requirement)
Schedule this action after LaunchConditions in the Install UI Sequence.
To address your concerns regarding the quality of Installshield support please private message me with your Support Contract Maintenance Number. I will review the support cases you have raised with the support team to understand whats happened.