Community Forums
Page 1 of 2 12 LastLast
Results 1 to 5 of 10

Thread: Controlling Suite Wizard Flow

  1. #1
    Join Date
    Oct 2011
    Posts
    12

    Controlling Suite Wizard Flow

    Hi

    I'm looking to make decisions in the flow of the installation wizard based on items selected in the InstallationFeatures screen. For example, if I have 2 features, for each that get selected I want to be able to display an addiotnal wizard screen for the gathering of settings (so that they can be gathered prior to actually installing, as a form of headless install).

    Is this possible?

    Many thanks

    Paul

  2. #2
    MichaelU's Avatar
    MichaelU is offline InstallShield Software Engineer
    Join Date
    Jan 2004
    Location
    Schaumburg, IL
    Posts
    4,683
    I would start with the suggestions on this thread. Unfortunately I'm not quite sure how to hook up alternate next pages based on the value of a property, so today you might have to use the button approach.
    Michael Urman - Staff Software Engineer - Flexera Software: InstallShield Team

  3. #3
    Join Date
    Oct 2011
    Posts
    12
    The button aproach would probably work if it was an "OR" scenario but mine is "AND/OR" and I can't see how this would work for that.

    If the selected feature is queryable through a property, I figured I could just set the visibility of the form to True / False based on the feature "selected" value. My problem is that I have no idea how to query if a feature has been selected, or if is possible.

    psudo code for the visibility property would resemble something like:

    <releventfeature>.selected

    thanks

    paul
    Last edited by PaulEden; 10-17-2011 at 10:58 AM.

  4. #4
    MichaelU's Avatar
    MichaelU is offline InstallShield Software Engineer
    Join Date
    Jan 2004
    Location
    Schaumburg, IL
    Posts
    4,683
    Oh right, great thought on the Visibility part. Proof I'm still learning how to use Suite projects correctly.

    Just like you can use an Enabled setting of:
    {Binding FEATURE[feature name].actionState==}

    to disable a checkbox when a feature is selected for installation, you could use a Visibilty setting of:
    {Binding FEATURE[feature name].actionState==install}

    on a dialog scheduled after the feature selection tree. This would only show up if the feature was selected for install. If you instead need to show this during maintenance, you could check FEATURE[feature name].installState instead for, say, != 0.
    Michael Urman - Staff Software Engineer - Flexera Software: InstallShield Team

  5. #5
    Join Date
    Jul 2011
    Posts
    86

    Re: controlling suite wizard flow

    Paul,

    Yes, it is very much possible.

    If you go to Behavior and Logic > InstallScript and once the empty script shows up, look for two dropdowns at the top of the screen. Select Before Move Data in First dropdown and select OnFirstUIBefore event. InstallShield should automatically place bunch of code in the script. This is the default code that runs when you run the installer. Notice how they have labels and different dialogs, and goto labels.

    As far as adding your own screens to installer is concerned you have a few options, if you want to accept some text parameters or accept inputs through radio buttons or checkboxes you can use the built-in functions like AskText(), AskOptions() and AskYesNo() etc. InstallShield will automatically put in dialogs with appropriate labels and textboxes/radio/checkboxes as you want. You can either set global variables in your script or set your own custom MSI properties using MsiSetProperty().

    If you want to design your own dialog, that's also possible using Dialog UI Editor. The idea is pretty much the same except you will have to write some InstallScript code so that the dialog is initialized properly. There are several samples that show this.

    Lastly, you want to use selected features as conditions to display your screens. You can use FeatureIsItemSelected() method to check if the feature is selected and if it is, show the additional screens you want.

    Let me know if you need more help.
    SK

    SK
    - SK

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •