Click here to Skip to main content
Click here to Skip to main content

How to add prerequisites in visual studio .net 2005 setup

By , 7 Apr 2007
 

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.

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

other project type > Setup and deployment > Setup Project or Web setup project

as per your application of project

now this newly added project will be added in your solution explorer tree select that

Setup project right click on it and add project out put and all necessary merge modules as

you have used in your project

now main thing adding perquisites to deployment

Right click on your setup project select properties

You will get following fig1

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

Select second option button that

"Download prerequisite from same location as my application "

This will add all prerequisites with your setup and notice that bydefault setting is

download from specified location so dont forget to change it


License

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

About the Author

Patel Vinay
Web Developer
India India
Member
No Biography provided

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
GeneralInstalling content of folder in specified locationmemberwaquasalig5 Nov '08 - 2:47 
hi
I have some content in MPEG folder on my DVD after burning it. Now i want that after installing DVD package on client machine. the content of MPEG folder will copy in specified folder like(xyz\MPEG\content) on client machine.
 
How i will do this?
 
thanx
AnswerRe: Installing content of folder in specified locationmemberPatel Vinay5 Nov '08 - 3:53 
Hi
 
If you want to put your contant other than installation folder than
 
you need to add the folder and set the default location to some existing path from drop down like commonfilefolder (i.e C:\Program Files\Common Files\)
 
or fontfolder
 
now in that drop down you can specify path like c:\   or c:\programm files
 
or c:\temp
 
but be sure that that folder should exist on system
(always create = true works for child nodes not parent and the one you added is parent node   )
 
now in that create another folder set always create = true
 
add all your video files there , build set up and you done !!
 
the summary as below
 
- File System On Target Machine
   |
   |_ Application Folder
   |
   |_ User's Desktop
   |
   |_ User's Programs Menu  
   |
   |_ Create New Folder Here* ! ( Set Default Location )
            |
            |_ Create Inner Folder Here** !! ---> Add Video File in this folder
                    
* Always Create = True Not work for that node
* Default location should already Exist on system
** Set Always Create = True always
GeneralRe: Installing content of folder in specified locationmemberwaquasalig6 Nov '08 - 0:19 
hi
MPGE is not part of package .It is written on disk with setup file.
there are some subfolder and files in MPGE folder. Now i have to copy content of MPGE folder on client machine where MPGE folder is already exit..
 
thanx

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

Permalink | Advertise | Privacy | Mobile
Web02 | 2.6.130523.1 | Last Updated 7 Apr 2007
Article Copyright 2007 by Patel Vinay
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid