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

 
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
GeneralWritting installation setup on multiple DVDmemberwaquasalig23-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 
Right click on your setup project select properties
 
You will get following fig1 as in article
 
now change Package files to In Cabinet File(s)
 
it will enable CAB Size Option
 
in custom give the size you need like for 1GB it will be 1048576 KB
 
Using Convertor[^]
 
so it will create files like SetupTitle1.Cab , SetupTitle2.Cab
,SetupTitle3.Cab and so on ..
 
now burn your cd using that cab file in sequence ..
 
when you start installation it will ask for not finding the next cabinet file at that time change the media and hit try again
 
* Note : this is not professional way as in professional setup we get such a nice prompt to change a media ,i will try for that and if i get it i will let you know
GeneralRe: Writting installation setup on multiple DVD Pinmemberwaquasalig26-Oct-08 23:06 
Hi,
It's nice to see your reply.
I have done whatever you suggested me.
After putting converted value in CABsize and build it.
I have nothing got like SetupTitle1.Cab , SetupTitle2.Cab
,SetupTitle3.Cab and so on .
 
Can you make it clear?
 
Thanx
GeneralRe: Writting installation setup on multiple DVD PinmemberPatel Vinay27-Oct-08 7:08 
have you get cab files ?
 
if yes than please post the names of them
 
you may not get it as SetupTitle1.Cab , SetupTitle2.Cab
,SetupTitle3.Cab
 
but you may get it as *1.cab,*2.cab ...
 
let me know what you get as cab files
GeneralRe: Writting installation setup on multiple DVD Pinmemberwaquasalig26-Oct-08 23:19 
hi,
sorry, I am getting .CAB ZIP file.After Extracting it i got more than 30 file naming like _08544BAF79024E86B75ADB615173BD56,_0AB7EE2741BC4DB99652D9A5329D6E74 and so on . Then what need to do next?
GeneralRe: Writting installation setup on multiple DVD PinmemberPatel Vinay27-Oct-08 7:09 
dont extract it , we need to write the cab file as it is to the dvd !!
 
but important is sequence
 
send me list of cab files !
GeneralRe: Writting installation setup on multiple DVD Pinmemberwaquasalig28-Oct-08 19:05 
Hi
Sorry for Late reply. Yesterday I was busy in Diwali fest.
I have following CAB file
Pix1.CAB , Pix2.CAB , Pix3.CAB , Pix4.CAB , Pix5.CAB , Pix6.CAB , Pix7.CAB and
setup.exe , pix.msi, some database support file and windows installer folder.
 
Do i need to write setup.exe , pix.msi, some database support file and windows installer folder.
in 1st DVD with CAB file?
 
Thanx
AnswerRe: Writting installation setup on multiple DVD PinmemberPatel Vinay28-Oct-08 19:10 
hi
 
now write all file in file (expect Pix1.CAB , Pix2.CAB , Pix3.CAB , Pix4.CAB , Pix5.CAB , Pix6.CAB , Pix7.CAB ) in dvd1 and if still you found space than
 
put cab file in squence to dvd
 
Pix1.CAB , Pix2.CAB , Pix3.CAB , Pix4.CAB , Pix5.CAB , Pix6.CAB , Pix7.CAB
 
and try to create image file using nero first and use magicdisk software to perform setup from that images you created using nero
 
if it is successful than burn that dvd images to DVD
 
Thank you !!

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

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