Working with Checkbox, RadioButton Dialog in Setup Project:


To create normal Setup project refer this link:

http://www.dotnetspider.com/resources/27673-Creating-Setup-Deplyment-Project.aspx


If we have more than one projects where we need to install based on circumstances then these dialogboxes we can use.

In the situation where we have to install only one out of the all projects then we can make use of radiobutton dialogbox
If we want to install more than one project depends on situations we can go for Checkbox dialogbox.

Here am explaining checkbox dialogbox in the same way we can do radiobutton dialogbox also.

Here am considering I have 3 projects which I added primary outputs to my SetupProject File System.
My applications were say App1, App2, and App3.

RightClick on your Setup Project
àView
à User Interface

Here you will find a tree view like structure
RightClick on Start a dialog box will open from there select AddDialog.

It will take you to a window where you can find the dailogboxes from these dialogs select CheckBoxes (A) and press ok

A dialog box will add to your start menu. Rightclick on that dialog box and goto Properties.
By default we will have 4 checkboxes to this dialogbox. For each checkbox we will have CheckboxLabel, CheckboxProperty, CheckboxValue, CheckboxVisible these 4 properties.

CheckboxLabel: the text, which we give here, will appear at the time of installation.
I have three applications so I can set the properties like this

Checkbox1Label: Application – I
CheckboxProperty: CHECKBOXA1 (This property we can to use in custom actions and anywhere in setup project so it should be unique)
Checkbox1Value: Checked/Unchecked
Checkbox1Visible: Visible/Invisible


(Here we have only 3 applications so we can make invisible the 4th checkbox).

Now
add conditions to the primary outputs in file system
RightClick on primary output and goto properties there

for 1st App --> CHECKBOXA1=1
2nd App-->CHECKBOXA2=1
3rd App-->CHECKBOXA3=1

means when we check those checkboxes then only this condition will become true, it wont install if condition result is false.

Build your setup project and install
it will install the checkbox checked applications only.

Like this way you can use Radiobutton dialogbox also.


Thanks
--Naren


Comments

Guest Author: kartheeswaran04 Jun 2012

Thanks for your Demonstration...
I need to hide the next button in Setup wizard,When all the Check Boxes return False.is it Possible?...

Guest Author: kartheeswaran04 Jun 2012

Thanks for your Demonstration...
I need to hide the next button in Setup wizard,When all the Check Boxes return False...
is it Possible?...

Guest Author: siddhartha05 Nov 2012

good... really awesome example.
i got help from this article..:)



  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:
    Email: