Home All Groups Group Topic Archive Search About

VB.Net 2003 SetUp Project

Author
17 Jan 2006 12:11 AM
Dennis
I have added a setup project to my solution to generate the setup files.  I
find I can add Textboxes, checkboxes, etc. to this setup solution but how do
I use these in the setup project to make decisions such as adding a sample
database file or not to the users machine dependent on if he checks the box
to add the sample?

Would appreciate any help.

--
Dennis in Houston

Author
17 Jan 2006 8:40 AM
Peter Macej
1. Add a predefined checkbox dialog to your install process by using
Custom UI (right click setup project - View - User Interface,
right-click Start - Add dialog). User will check if he want's to install
the file. See
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsintro7/html/vxconcheckboxesuserinterfacedialogbox.asp

2. Set Checkbox1Property to e.g. INSTALL_MY_FILE.

3. Then add your file in File System section as other files but set its
Condition property to INSTALL_MY_FILE=1. That's all. The file will be
only installed if user checks the option.

--
Peter Macej
Helixoft - http://www.vbdocman.com
VBdocman - Automatic generator of technical documentation for VB, VB
..NET and ASP .NET code
Author
18 Jan 2006 12:44 AM
Dennis
Thanks.  It was the =1 that I was missing.  I suppose <>0 would also work.
--
Dennis in Houston


Show quoteHide quote
"Peter Macej" wrote:

> 1. Add a predefined checkbox dialog to your install process by using
> Custom UI (right click setup project - View - User Interface,
> right-click Start - Add dialog). User will check if he want's to install
> the file. See
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsintro7/html/vxconcheckboxesuserinterfacedialogbox.asp
>
> 2. Set Checkbox1Property to e.g. INSTALL_MY_FILE.
>
> 3. Then add your file in File System section as other files but set its
> Condition property to INSTALL_MY_FILE=1. That's all. The file will be
> only installed if user checks the option.
>
> --
> Peter Macej
> Helixoft - http://www.vbdocman.com
> VBdocman - Automatic generator of technical documentation for VB, VB
> ..NET and ASP .NET code
>