View Full Version : Multiple setup types -> Multiple Finish Dialogs
NewsArchive
02-14-2008, 02:43 AM
My setup program gives the user two setup selections.
When the isntallation finished I need to give them two different finish
dialogs with unique "Run Program" selections based on which setup type they
selected.
Can anyone give me specific script instructions on how to do this ?
Thank you,
Mike
NewsArchive
02-14-2008, 02:44 AM
Mike,
You have quite a few options to handle this. I don't know if you start the
programs manually at the end of the installation or if you are using the Run
Program (Finish Dialog) tab to define your run actions. You can send me
your project and I'll add it for you.
One option is to use the If... Statement to get two different Finish dialogs
based on the selected setup type. For example:
[ Final User Interface ]
! Final wizard dialog definition(s)
If %_SB_SETUPTYPEID% Equals "Typical" Then
Define Wizard Dialog "#1" (Finish)
End
If %_SB_SETUPTYPEID% Equals "Minimal" Then
Define Wizard Dialog "#2" (Finish)
End
! The Wizard Loop displays the dialog screens that the user sees in the
installation
Loop Wizard (Abort Dialog Active)
End
Friedrich
NewsArchive
02-14-2008, 03:00 AM
I would like to share the solution here in the public, so others can learn
from it.
Mike has a cool installation project with two different setup type options:
- Single Computer Installation
This setup type installs a Structural Engineering Library program named
ec6.exe.
- Network License Manager
This setup type installs a ENERCALC Network License Manager program named
ENERCALC_NetworkLicenseManager.exe
Based on the selected setup type, the Finish dialog should offer one of the
following "Run the program" checkboxes:
- Launch the Structural Engineering Library ?
- Launch the ENERCALC Network License Manager ?
The attached script snippet screenshot shows the solution.
Line 96 - 100:
Based on the selected setup type, the checkbox text is defined.
Line 104:
Define a %RUN_OPTION% variable that receives the status of the "Run the
program" checkbox (0 = unmarked, 1 = marked)
Line 114 - 117:
If the "Network License Manager" setup type is selected (Line 114) and the
"Launch the ENERCALC Network License Manager ?" checkbox is marked (Line
115) then execute ENERCALC_NetworkLicenseManager.exe (Line 116).
Line 118 - 122:
If the "Structural Engineering Library" setup type is selected (Line 118)
and the "Launch the Structural Engineering Library ?" checkbox is marked
(Line 119) then execute ec6.exe (Line 120).
Note: we only need one Finish dialog to handle this.
--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910
"point. click. ship" - that's SetupBuilder 6.7
Create Windows Vista ready installations in minutes
-- Official Comodo Code Signing and SSL Certificate Partner
NewsArchive
02-14-2008, 03:16 AM
The attached screenshots show the Finish Dialog settings.
Friedrich
NewsArchive
02-15-2008, 02:20 AM
Thank you Friedrich,
I am really fortunate to have you solve this for me!
Mike
NewsArchive
02-15-2008, 02:20 AM
You are welcome, Mike :)
Friedrich
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.