Link Dialog Checkboxes
Updated: 21 May 2010 | 3 comments
Hi
I have created a Select Feature Dialog with 2 Checkboxes
Server Install
Server Upgrade
And would like to link each of these to run a different executable that is included
in the install at the end of the install depending on which check box the user
chooses.
Any help would be appreciated
thks
Discussion Filed Under:
Comments
Do you mean you customized the existing Select Feature dialog, or did you create a new one from scratch? Be careful and test all cases (install,modify,uninstall,upgrade). Why are you using checkboxes? Can the user install both a server install AND a server upgrade at the same time? Maybe a RadioButtonGroup would be better suited.
To answer your question, just add a couple of Execute Program From Installed Files actions in the Execute Deferred tab of MSI Script. Place the actions just before InstallFinalize. Wrap each in a condition like this:
If &FEATURE_NAME1 = 3
..Execute Program From Installed Files (ServerApp.exe)
End
If &FEATURE_NAME2 = 3
..Execute Program From Installed Files (ServerUpgrade.exe)
End
Hi
Thanks for the Response
they will be able to choose one or the other
Server Install
Server Upgrade
If I use a Checkbox
What would I have to set the properties and conditions to if I wanted them
to link to the Execute deferred in the MSI script
thks
Neville
No, if you use a checkbox they'll be able to select both features at the same time unless you have logic tied to each checkbox that flips the state of the other one, and this is silly when you have a RadioButtonGroup at your disposal. A RBG is used to make exclusive selections from an exposed list. As for your question, I answered it in my last paragraph of my previous post.
Would you like to reply?
Login or Register to post your comment.