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
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

 

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

You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
GeneralMy vote of 1 Pinmemberafaz28-Jun-11 18:19 
x
Generali didn't get the prerequesits Pinmember07aneesh9-May-10 23:38 
Hi i got the following error.Pls help.
 
Error 1 The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\dotNetFX20\aspnet.msp' in item '.NET Framework 3.5 SP1' can not be located on disk. See Help for more information.
 
ok Thanks
Aneesh A.S
GeneralMy vote of 1 PinmemberUKCodeMonkey15-Jul-09 0:25 
Nothing more than what's already in the MSDN!
QuestionHi! Can you help me with prerequisites from my website? Pinmembercre8810-Jul-09 4:04 
I want my application setup to download prerequisites from my website.
I use this URL http://www.mywebsite.com/support/ where I put that folders DotNetFX and WindowsInstaller3_1.
The problem is that when I try to install my application it goes for prerequisites on Microsoft site not on my website.
Can you help me please?
Thanks! Smile | :)
AnswerRe: Hi! Can you help me with prerequisites from my website? PinmemberPatel Vinay10-Jul-09 4:37 
Questioncan u explain for framework 3.5 please? PinmemberNarendra Reddy Vajrala29-Apr-09 8:59 
Hi,
Please explain how to add framework in 3.5.
 
i tried but to my project y prerequiries button was in disabled mode.
AnswerRe: can u explain for framework 3.5 please? PinmemberPatel Vinay24-May-09 5:03 
GeneralRe: can u explain for framework 3.5 please? PinmemberNarendra Reddy Vajrala26-May-09 17:30 
Generaluninstallation problem Pinmemberwaquasalig13-Nov-08 5:05 
Hi
i have installed software but when trying to uninstall it fron add/remove then it is not removing those folders in which i add some files manually..I want to delete thes folder also after uninstallation.how can i do it using package
 
thanx
AnswerRe: uninstallation problem PinmemberPatel Vinay14-Nov-08 7:56 
General'Not enough storage is available to complete this operation. Pinmemberwaquasalig7-Nov-08 2:39 
Hi
I am trying to build another package.
when i am adding .mpg file of 1.3gb in application folder. during compile time getting error
'Not enough storage is available to complete this operation..
 
one more thing
as you told me make folder and set default path for specific folder location on client machine.
thing is little change now.
in my 2nd package some folder created using custom folder and adding some file there.
I hv specified the defaultlocation for this folder content as you told
actually client machine folder path is depend on my first package installation
i hv puted hard code default location in 2nd package installer.
 
suppose during 1st package instaalation client installes it in d:\ using browse then
my 2nd installer can not copy the content of folder in d:folderspecified because hard code default location.
how i will set dynamic path location in 2nd package folder that match with 1st package installation location.
so what to do ??/
 
thanx
AnswerRe: 'Not enough storage is available to complete this operation. PinmemberPatel Vinay7-Nov-08 8:04 
GeneralRe: 'Not enough storage is available to complete this operation. Pinmemberwaquasalig8-Nov-08 0:13 
GeneralRe: 'Not enough storage is available to complete this operation. PinmemberPatel Vinay8-Nov-08 11:38 
GeneralRe: 'Not enough storage is available to complete this operation. Pinmemberwaquasalig9-Nov-08 18:08 
GeneralRe: 'Not enough storage is available to complete this operation. Pinmemberwaquasalig10-Nov-08 3:24 
GeneralRe: 'Not enough storage is available to complete this operation. Pinmemberwaquasalig11-Nov-08 1:49 
AnswerRe: 'Not enough storage is available to complete this operation. PinmemberPatel Vinay14-Nov-08 8:03 
GeneralInstalling content of folder in specified location Pinmemberwaquasalig5-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 location PinmemberPatel Vinay5-Nov-08 3:53 
GeneralRe: Installing content of folder in specified location Pinmemberwaquasalig6-Nov-08 0:19 
GeneralWritting installation setup on multiple DVD Pinmemberwaquasalig23-Oct-08 20:39 
Hi
 
I have created an installer. This size is around 10 GB.
Now I have to write this on DVD that will take more than one DVD.
I want that during installation after finishing one DVD it will ask for another one.
 
SO,what need to do?
HOPING FOR REPLY.
 
Thanks
AnswerRe: Writting installation setup on multiple DVD PinmemberPatel Vinay24-Oct-08 9:52 
GeneralRe: Writting installation setup on multiple DVD Pinmemberwaquasalig26-Oct-08 23:06 
GeneralRe: Writting installation setup on multiple DVD PinmemberPatel Vinay27-Oct-08 7:08 
GeneralRe: Writting installation setup on multiple DVD Pinmemberwaquasalig26-Oct-08 23:19 
GeneralRe: Writting installation setup on multiple DVD PinmemberPatel Vinay27-Oct-08 7:09 
GeneralRe: Writting installation setup on multiple DVD Pinmemberwaquasalig28-Oct-08 19:05 
AnswerRe: Writting installation setup on multiple DVD PinmemberPatel Vinay28-Oct-08 19:10 
Questionhow to set registry Pinmemberwaquasalig22-Oct-08 18:37 
Hi
I have made an installer.Now i want to add registry.I got registry editor in Setup and deployment project where HKEY_CLASSES_ROOT , HKEY_CURRENT_USER , HKEY_LOCAL_MACHINE given. I don't know how to set registry.
Can you help me?
 
thanx
AnswerRe: how to set registry PinmemberPatel Vinay24-Oct-08 7:43 
GeneralNot showing folder after installation Pinmemberwaquasalig21-Oct-08 19:15 
Hi
I have created setup project.I have added some folder
in Application folder. the problem is that when the folder is empty it is not showing after setup installation but when i am putting any
file in folder is showing the folder with file.
 
so how i will do it?
 
thanx
AnswerRe: Not showing folder after installation PinmemberVinay_visnagar22-Oct-08 13:34 
GeneralRe: Not showing folder after installation Pinmemberwaquasalig22-Oct-08 18:19 
QuestionHow to install third party prerequisites along with setup and deployment of vb.net application Pinmemberramakoteswarrao.p17-Apr-08 3:27 
Hi
 
How to install the third party prerequisites along with msi setup created using setup and deployment in vb.net.
 
Thanks in advance.
AnswerRe: How to install third party prerequisites along with setup and deployment of vb.net application PinmemberVinay_visnagar17-Apr-08 4:46 
AnswerRe: How to install third party prerequisites along with setup and deployment of vb.net application PinmemberVinay_visnagar17-Apr-08 4:52 
Generalchoose install prerequisite or not Pinmemberzawmn8319-Mar-08 2:15 
I want to make the user to choose install or not sql express on setup process.
how can I do this?
GeneralRe: choose install prerequisite or not PinmemberVinay_visnagar17-Apr-08 4:44 
GeneralRe: choose install prerequisite or not PinmemberVinay_visnagar17-Apr-08 4:47 
Questionvb.net setup project in 2003 PinmemberKirtibangalore11-Apr-07 19:40 
can anybody tell me how to add or validate .net framework and sql database file to setup project during creating a setup of an application. I want to create tables automatically during setup and also want to install .net framework during setup on any of other machine. please anybody help me. Thanks
 
kirti
AnswerRe: vb.net setup project in 2003 PinmemberVinay_visnagar28-May-07 16:59 
thanks for your patient here is answer
 
when you add setup project to ur main project
 
go to that
 
now reach to launch condition editor in setup project
 
now you will found .NET Framework , select it
 
now see the properties
 
in which there is installurl set it to dotnetfx.exe
 
and after bulding ur setup put framework in same folder where ur setup is now in machine u r going to setup the s/w if .net framework is missing it will invock automatically
 

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