
Professional Visual Studio 2005 (2006) [eng]
.pdf









Deployment: ClickOnce
and Other Methods
One area of software development that is often overlooked is how to deploy the application. Building an installer is a simple process and can transform your application from being an amateur utility to a professional tool. This chapter looks at how you can build a Windows installer for any type of .NET application. Visual Studio 2005 also includes support for a ClickOnce deployment, which can be used to build applications that can be dynamically updated. To round off this discussion, this chapter also examines other techniques you can use to deploy your application.
Installers
The traditional way to deploy applications is to use an installer, which can typically be used to install and, in most cases, uninstall an application. Visual Studio 2005 comes with a rich user interface for building an installer for any type of .NET application. That said, there are a number of tricks to building installers for services and mobile applications. Building an installer for a mobile application is covered in Chapter 44.
Building an Installer
To build an installer with Visual Studio 2005 you need to add an additional project to the application that you want to deploy. Figure 47-1 shows the available setup and deployment project types. The Setup project should be used for Windows forms or service applications, while the Web Setup project should be used for ASP.NET web sites or web services. If you want to build an installer that will be integrated into a larger installer, you may want to build a merge module. Alternatively, a CAB project can be used to create an alternative package that can be deployed via a web browser. The Setup Wizard steps you through the process of creating the correct project for the type of application you’re deploying.