What is the best way to deploy a VB.NET application? *

Question

Generally when I use ClickOnce when I build a VB.NET program but it has a few downsides. I've never really used anything else, so I'm not sure what my options are.

Downsides to ClickOnce:

  • Consists of multiple files - Seems easier to distribute one file than manageing a bunch of file and the downloader to download those files.
  • You have to build it again for CD installations (for when the end user dosn't have internet)
  • Program does not end up in Program Files - It ends up hidden away in some application catch folder, making it much harder to shortcut to.

Pros to ClickOnce:

  • It works. Magically. And it's built into VisualStudio 2008 express.
  • Makes it easy to upgrade the application.

Does Windows Installer do these things as well? I know it dosen't have any of the ClickOnce cons, but It would be nice to know if it also has the ClickOnce pros.

Update: I ended up using Wix 2 (Wix 3 was available but at the time I did the project, no one had a competent tutorial). It was nice because it supported the three things I (eventually) needed. An optional start-up-with-windows shortcut, a start-up-when-the-installer-is-done option, and three paragraphs of text that my boss thinks will keep uses from clicking the wrong option.

Answer

Have you seen WiX yet?

http://wix.sourceforge.net/

It builds windows installers using an XML file and has additional libraries to use if you want to fancify your installers and the like. I'll admit the learning curve for me was medium-high in getting things started, but afterwards I was able to build a second installer without any hassles.

It will handle updates and other items if you so desire, and you can apply folder permissions and the like to the installers. It also gives you greater control on where exactly you want to install files and is compatible with all the standardized Windows folder conventions, so you can specify "PROGRAM_DATA" or something to that effect and the installer knows to put it in C:\Documents and Settings\All Users\Application Data or C:\ProgramData depending on if you're running XP or Vista.

The rumor is that Office 2007 and Visual Studio 2008 used WiX to create their installer, but I haven't been able to verify that anywhere. I do believe is is developed by some Microsoft folks on the inside.

< br > via < a class="StackLink" href=" http://stackoverflow.com/questions/3544/" >What is the best way to deploy a VB.NET application?< /a>
Share on Google Plus

About Cinema Guy

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment