cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
ShaneKirkbride
Level 2

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.

Labels (1)
0 Kudos
(1) Reply
shunt
Revenera Moderator Revenera Moderator
Revenera Moderator

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.

0 Kudos