/build/static/layout/Breadcrumb_cap_w.png

Installshield 2012 - Conditional statement - Showing a text string only if a specific folder exists

Hi all,

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 ?

Thanks!

0 Comments   [ + ] Show comments

Answers (2)

Posted by: deliveryboy 9 years ago
Orange Senior Belt
0
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 9 years ago
Red Belt
0
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.

Comments:
  • I've tried that and for some reason it didn't work.
    Oh well, since it took forever for my IT Ninja account to be approved, I found another way. Not the most orthodox way of doing so, but I basically cloned my main summary dialog twice, edited the text strings and everything, and in the previous dialog, created some NewDialog events to send the user to a specific summary dialog, depending on what component was chosen.
    Again, not the most orthodox way, but it works hehe - AlexPilon90 9 years ago

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ