Creating an Installer

function OpenWin(url, w, h) { if(!w) w = 400; if(!h) h = 300; window.open(url, "_new", "width=" + w + ",height=" + h + ",menubar=no,toobar=no,scrollbars=yes", true); } function Print() { window.focus(); if(window.print) { window.print(); window.setTimeout('window.close();',5000); } }
Team-Fly    

Special Edition Using Microsoft® Visual Basic® .NET
By Brian Siler, Jeff Spotts
Table of Contents
Appendix A.  Packaging Your Applications


The easiest way to create an installer for an application is to add a setup project to the solution containing the application. You can manually add a setup project to an open solution by selecting File, Add Project, New Project from Visual Basic .NET's menu system, selecting Setup and Deployment Projects as the project type, and then selecting setup project as the template for the new project. You will then have an empty setup project included in your open solution.

To make things even easier, Visual Basic .NET provides the Setup Project Wizard, which not only adds a setup project to an application, but also populates the important parts of the project with the information needed to create a standard setup package from the application. You can then customize the setup project as needed, but the bulk of the work will have been done for you by the wizard.

In this appendix, we will show you how to use the Setup Project Wizard to create installers for Windows Application projects and Web Application projects. Due to the potential complexity and many options available, an exhaustive discussion of creating setup projects from scratch is beyond the scope of this appendix; however, the Visual Basic .NET Help system contains step-by-step walkthroughs of manually creating installers. Look for the help topic Installers, walkthrough.

Note

The Windows-compliant installer package that will be created as part of a setup project will automatically include uninstall functionality. After the user installs an application using the Windows Installer and the .MSI file created by the setup project, he will be able to uninstall the software by using the Add/Remove Programs applet in Control Panel.



    Team-Fly    
    Top
     



    Special Edition Using Visual Basic. NET
    Special Edition Using Visual Basic.NET
    ISBN: 078972572X
    EAN: 2147483647
    Year: 2001
    Pages: 198

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net