Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Setup / May 2008

Tip: Looking for answers? Try searching our database.

Custom setup project

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Uzi - 13 May 2008 16:27 GMT
Hi

Can I use the Visual studio setup project to create an installer which
has a 'custom' installation?
I have 2 components in my solution: server and client and I want to
offer my users different installation options: "full" and "custom"
where they decide which of the components to install. is this possible
without adding a custom 'installer' class and overriding the 'install'
function?

Thanks,

Uzi
Phil Wilson - 13 May 2008 22:04 GMT
Installer classes have nothing to do with this because they're called after
everything has been installed. It's too late to alter what's been installed.
The idea that you can do this seems to come from the belief that the Install
method installs everything, and you change behavior by overriding it.
However installs don't work this way.

It's almost possible by adding the custom dialog with checkboxes and using
the properties associated with the checkboxes as conditions on the files
installed, but it's a one-way trip because you can't modify anything
afterwards.

This is usually done (and here I should say "in fully functional setup
tools") by having files grouped into features that the user chooses with a
standard dialog (like installing VS 2005). If you change your mind later you
can do a modify and alter what's installed, adding or removing features, but
Visual Studio setups don't support any of this.

Signature

Phil Wilson
Definitive Guide to Windows Installer
http://www.apress.com/book/view/1590592972

> Hi
>
[quoted text clipped - 9 lines]
>
> Uzi

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.