Click here to Skip to main content
15,885,704 members
Articles / Programming Languages / Visual Basic
Article

How to add prerequisites in visual studio .net 2005 setup

Rate me:
Please Sign up or sign in to vote.
1.06/5 (19 votes)
7 Apr 2007CPOL1 min read 130.9K   14   42
It is explanation about how to add prerequisite for .net setup like .net framework , crystal report component and many more

Introduction

Before A few days I got a solution how to build customize setup in visual studio.net 2005 and 2003 that I am posting here for all my friends.

<o:p>

Adding Setup project to main project

Every one is knowing that when we create project or application in .net finally in deployment there are certain dependences that needs to be added in setup of that project or application

Now all knows how to add new setup project let me explain that also

Select File > Add > New Project

Then you will get one selection dialog box from that select

<o:p>other project type > Setup and deployment > Setup Project or Web setup project

<o:p>as per your application of project

<o:p>now this newly added project will be added in your solution explorer tree select that

<o:p>Setup project right click on it and add project out put and all necessary merge modules as

<o:p>you have used in your project

<o:p>now main thing adding perquisites to deployment

<o:p>Right click on your setup project select properties

<o:p>You will get following fig1

<o:p> Screenshot - fig1.jpg

Select Prerequisites as shown in fig and you will ger second fig as shown below

Screenshot - fig2.jpg

Select prerequisite that you need to Select all then and one more thing

<o:p>

Select second option button that

"Download prerequisite from same location as my application "<o:p>

<o:p>This will add all prerequisites with your setup and notice that bydefault setting is

<o:p>download from specified location so dont forget to change it

<o:p>


License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
GeneralRe: Writting installation setup on multiple DVD Pin
waquasalig26-Oct-08 23:06
waquasalig26-Oct-08 23:06 
GeneralRe: Writting installation setup on multiple DVD Pin
Patel Vinay27-Oct-08 7:08
Patel Vinay27-Oct-08 7:08 
GeneralRe: Writting installation setup on multiple DVD Pin
waquasalig26-Oct-08 23:19
waquasalig26-Oct-08 23:19 
GeneralRe: Writting installation setup on multiple DVD Pin
Patel Vinay27-Oct-08 7:09
Patel Vinay27-Oct-08 7:09 
GeneralRe: Writting installation setup on multiple DVD Pin
waquasalig28-Oct-08 19:05
waquasalig28-Oct-08 19:05 
AnswerRe: Writting installation setup on multiple DVD Pin
Patel Vinay28-Oct-08 19:10
Patel Vinay28-Oct-08 19:10 
Questionhow to set registry Pin
waquasalig22-Oct-08 18:37
waquasalig22-Oct-08 18:37 
AnswerRe: how to set registry Pin
Patel Vinay24-Oct-08 7:43
Patel Vinay24-Oct-08 7:43 
Now its upto you where you want to make entries

if you want to make entries in startup than u can make entries in

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run

for this

just export one of the key form that location and import it back to registry editor in visual studion so it will create all nesesory folders

you may have

HKCU\Software\Microsoft\Windows\CurrentVersion\Run

Launches a program automatically when a particular user logs in. This key is used when you always want to launch a program when a particular user is using a system.

HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce

Launches a program the next time the user logs in and removes its value entry from the registry. This key is typically used by installation programs.

HKLM\Software\Microsoft\Windows\CurrentVersion\Run

Launches a program automatically at system startup. This key is used when you always want to launch a program on a particular system.

HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnce

Launches a program the next time the system starts and removes its value entry from the registry. This key is typically used by installation programs.

HKLM\Software\Microsoft\Windows\CurrentVersion\RunServices

Launches a service (a standard NT service or a background process) automatically at startup. An example of a service is a Web server such as Microsoft Internet Information Server.

HKLM\Software\Microsoft\Windows\CurrentVersion\RunServicesOnce

Launches a service (a standard NT service or a background process) the next time the system is started, then removes its value entry from the registry.

so take appropriate with regards to your application
GeneralNot showing folder after installation Pin
waquasalig21-Oct-08 19:15
waquasalig21-Oct-08 19:15 
AnswerRe: Not showing folder after installation Pin
Patel Vinay22-Oct-08 13:34
Patel Vinay22-Oct-08 13:34 
GeneralRe: Not showing folder after installation Pin
waquasalig22-Oct-08 18:19
waquasalig22-Oct-08 18:19 
QuestionHow to install third party prerequisites along with setup and deployment of vb.net application Pin
ramakoteswarrao.p17-Apr-08 3:27
ramakoteswarrao.p17-Apr-08 3:27 
AnswerRe: How to install third party prerequisites along with setup and deployment of vb.net application Pin
Patel Vinay17-Apr-08 4:46
Patel Vinay17-Apr-08 4:46 
AnswerRe: How to install third party prerequisites along with setup and deployment of vb.net application Pin
Patel Vinay17-Apr-08 4:52
Patel Vinay17-Apr-08 4:52 
Generalchoose install prerequisite or not Pin
zawmn8319-Mar-08 2:15
zawmn8319-Mar-08 2:15 
GeneralRe: choose install prerequisite or not Pin
Patel Vinay17-Apr-08 4:44
Patel Vinay17-Apr-08 4:44 
GeneralRe: choose install prerequisite or not Pin
Patel Vinay17-Apr-08 4:47
Patel Vinay17-Apr-08 4:47 
Questionvb.net setup project in 2003 Pin
Kirtibangalore11-Apr-07 19:40
Kirtibangalore11-Apr-07 19:40 
AnswerRe: vb.net setup project in 2003 Pin
Patel Vinay28-May-07 16:59
Patel Vinay28-May-07 16:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.