Help with setup program

H

harry_noble1902

Hello I have a "solution" that has 7 VB.Net projects in it. Some of
the VB.Net projects are dll librarys but 3 are applications (so there
are 7-3=4 dlls) I want to install with a setup program/application.

I have created a Setup application as part of my "solution" using the
wizard.

One of the windows in my Setup application has a check box that says
"Install Application 1". Another checkbox says "Install Application
2". The last one says "Install Application 3".

All the applications share the 4 dlls.

The standard functionality installs all 3 applications. I would like
to modify it so that an application is only installed if the checkbox
is ticked. In all cases the 4 dlls should be installed.

I don't know where to begin (I have been using VB.Net for about 3
months). At the moment the autogenerated setup application code
installs all 3 applications and all 4 dlls using default behaviour. I
do not want to setup applications

Help really appreciated.

Thank you

Harry
 
M

Michael D O'Shea

Hello I have a "solution" that has 7 VB.Net projects in it. Some of
the VB.Net projects are dll librarys but 3 are applications (so there
are 7-3=4 dlls) I want to install with a setup program/application.

I have created a Setup application as part of my "solution" using the
wizard.

One of the windows in my Setup application has a check box that says
"Install Application 1". Another checkbox says "Install Application
2". The last one says "Install Application 3".

All the applications share the 4 dlls.

The standard functionality installs all 3 applications. I would like
to modify it so that an application is only installed if the checkbox
is ticked. In all cases the 4 dlls should be installed.

I don't know where to begin (I have been using VB.Net for about 3
months). At the moment the autogenerated setup application code
installs all 3 applications and all 4 dlls using default behaviour. I
do not want to setup applications

Help really appreciated.

Thank you

Harry


Hello.

Navigate to your setup application, click on the "Primary output from
yourProject", and in the "Condition" property enter 1=1 for the
Projects you want the installer to install, or 1=0 for the Projects
you do not want installed. Rebuild the setup application and execute.
The Projects with "Condition" value 1=1 will be installed, the
Projects with "Condition" value 1=0 will not be. This part of my
answer details how you can use the "Condition" property to selectively
install one or more Projects that make up your VS Solution.

Once you have satisfied yourself you understand this functionality,
substitute 1=1 or 1=0 with one of your checkbox property names. For
example, if you have added the stock installer dialog titled
"Checkboxes (C)" to your setup application, you will have a stock form
containing 4 checkboxes by default (named CHECKBOXC1, CHECKBOXC2,
CHECKBOXC3, and CHECKBOXC4). Substitute the "Condition" property value
"1=0" for the value "CHECKBOXC1" on the primary output for your
Project; during installation if the checkbox is checked, the Project
will be installed, if not, it won't be. This meets your requirements.

Regards
Mike


TESSELLA (e-mail address removed)
__/__/__/ Tessella Support Services plc
__/__/__/ 3 Vineyard Chambers, ABINGDON, OX14 3PX, England
__/__/__/ Tel: (44)(0)1235-555511 Fax: (44)(0)1235-553301
www.tessella.com Registered in England No. 1466429
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top