Installshield 2012 - Conditional statement - Showing a text string only if a specific folder exists
Got a quick question here. Trying to rewrite an Installshield 2012 installation package, and I've hit a dead end.
Here's the situation: At the end of the dialogs, the wizard will show a summary of all the options the customer has chosen, and I have a bunch of text strings that should or shouldn't show up, depending on the options that were chosen.
A few of those strings should only be shown if a specific folder (being the INSTALLDIR) is present on the customer'S computer.
How would I go about creating the control's condition for that ?
Please log in to answer
Posted by: deliveryboy 5 years ago
This can be achieved as follows:
Create a System Search that looks for the folder, configure this to store the value in a property.
Do not define the property in the property table as your condition on the control is decided by whether the property gets set at runtime or not.
In the dialog view -> set the Visible property to false.
In the dialog view -> behaviour -> conditions -> Add a Show action and set the condition to be the name of the property from earlier.
If the folder exists the control is displayed otherwise is hidden.
Posted by: anonymous_9363 5 years ago
I've never done it but perhaps you could use the 'Installed State' of the component containing the creation of the INSTALLDIR component. See here for details.