Exforsys

VB.NET 2005

  1. VB.NET 2005 Free Training
  2. The .NET Framework Architecture Part 1
  3. The .NET Framework Architecture Part 2
  4. Application Class and Message Class
  5. Implementing Class Library Object
  6. Visual Studio.NET Namespaces
  7. .NET Assemblies
  8. Differences between VB.NET 1.0 and VB.NET 2.0
  9. Introducing VB.NET Windows Forms
  10. Visual Studio Windows Forms Designer
  11. Exploring the Forms Designer generated code
  12. Setting and Adding Properties to Windows Form
  13. Implementing Inheritance
  14. Event Handling In Visual Basic .NET
  15. Building Graphical Interface elements
  16. .NET Common Windows Forms Controls Part 1
  17. .NET Common Windows Forms Controls Part 2
  18. Common Controls and Handling Control Events
  19. DomainUpDown and NumericUpDown Controls
  20. Dialog Boxes in Visual Basic .NET
  21. Visual Studio Adding Controls to Windows Form
  22. VB.NET Validation Controls
  23. Working with Menu Controls
  24. VB.NET MDI Applications
  25. .NET Exceptions
  26. VB.NET Creating and Managing Components Part 1
  27. VB.NET Creating and Managing Components Part 2
  28. Simple Data Binding
  29. .NET Complex Data Binding
  30. .NET Data Form Wizard
  31. Data Manipulation with ADO.NET
  32. SQL Server Stored Procedures
  33. SQL Server Ad Hoc Queries
  34. Finding and Sorting Data in DataSets
  35. ADO.NET Object Model
  36. Working with DataSets
  37. Using XML Data
  38. Working with File System in .NET
  39. Creating Web Service
  40. Instantiating - Invoking Web Services, Creating Proxy Classes with WSDL
  41. Web Reference and Web Services
  42. Web Services - SOAP, WSDL, Disco and UDDI
  43. Web Application Testing in VB.NET 2005
  44. Web Application Tracing and Debugging
  45. Working with Legacy Code and COM Components
  46. ActiveX Controls and Legacy Code
  47. Windows Application Testing
  48. VB.NET Windows Application Testing
  49. Tracing VB.NET Windows Application
  50. Debugging Windows Applications In Visual Studio.NET 2005
  51. Deploying Windows Applications In Visual Studio.NET 2005
  52. Customizing Setup Project in Visual Studio.NET 2005
  53. Shared Assembly
  54. Microsoft .NET Creating Installation Components
  55. The Registry Editor in Visual Studio.NET 2005
  56. The File Types Editor

Ads


Home arrow Technical Training arrow VB.NET 2005

Deploying Windows Applications In Visual Studio.NET 2005 Page - 2

Page 2 of 2
Author : Exforsys Inc.     Published on: 3rd Aug 2005    |   Last Updated on: 8th Apr 2011

Deploying Windows Applications In Visual Studio.NET 2005

Creating a Setup Project

Visual Studio .NET comes bundled with five types of project templates that can be set up and used to deploy .NET applications. These project templates can be accessed in the same way that any other project in Visual Studio .NET is accessed, by using the File | New Project dialog box.

Ads

Figure 1 Set up and Deployment of applications in Visual Studio.NET

A standard Windows installer setup for a visual studio.NET application can be invoked with Setup Project template. The Web project template helps in setting up aWeb template while merge module template helps in packaging up an application based on Windows Installer technology. The set up wizard template guides the user through the process of creating any one of the other setup and deployment project templates. The Cab project template is used to create a cabinet file which may contain a number of files but no installation logic. It helps in packaging a number of files into a single file for ease of download.

Ads

Configuring Deployment Properties

Once an application is created, its deployment related properties can be configured. To configure, the user has to right click the FormattingApplicationSetup project from the Solution Explorer and select properties and then selecting Build. The configuration manager dialog box, then, helps the user change the Active solution configuration setting from Debug to Release for both projects to create a release build.

By setting the configuration settings to Release, a release build can be created that can be installed onto the end user's computer. By default the debugging information is included as part of the debug project. This has to be changed to Release to optimize the project output.

Figure 2: Configuration Manager Dialog Box after Modification

The project files can now be packaged into loose compressed files, setup files or cabinet files. If all the files have to be compressed into a single MSI file the option In Setup file has to be selected. The bootstraper property has to be configured by setting it to BootStrapper. This is a program that will be executed before the application is run. The Bootstrapper program does not get bundled with the MSI and provision needs to be made for download over the Web or any other means. The Widows installer version 1.5 will have to be present on the target computer for Visual Studio.Net installer created application. This installer was bundled into the Windows XP operating system, but with earlier systems it had to be specifically installed and bundled with the installer. This increases the size of the installation program. The Compression property also has to be set to optimize the speed of installation.

Configuring Project Properties

Certain deployment specific properties have to be set at a global level. These properties can be accessed through the properties window. The Add/Remove Programs icon settings, the Author settings, installation description settings, the keyword settings, the Detect newer installed version settings, remove previous versions settings, Manufacturer settings and so on will have to be specified.

(Sample screenshot from older version)
Figure 3. FormattingApplicationSetup Properties Window After Configuration



 
This tutorial is part of a VB.NET 2005 tutorial series. Read it from the beginning and learn yourself.

VB.NET 2005

  1. VB.NET 2005 Free Training
  2. The .NET Framework Architecture Part 1
  3. The .NET Framework Architecture Part 2
  4. Application Class and Message Class
  5. Implementing Class Library Object
  6. Visual Studio.NET Namespaces
  7. .NET Assemblies
  8. Differences between VB.NET 1.0 and VB.NET 2.0
  9. Introducing VB.NET Windows Forms
  10. Visual Studio Windows Forms Designer
  11. Exploring the Forms Designer generated code
  12. Setting and Adding Properties to Windows Form
  13. Implementing Inheritance
  14. Event Handling In Visual Basic .NET
  15. Building Graphical Interface elements
  16. .NET Common Windows Forms Controls Part 1
  17. .NET Common Windows Forms Controls Part 2
  18. Common Controls and Handling Control Events
  19. DomainUpDown and NumericUpDown Controls
  20. Dialog Boxes in Visual Basic .NET
  21. Visual Studio Adding Controls to Windows Form
  22. VB.NET Validation Controls
  23. Working with Menu Controls
  24. VB.NET MDI Applications
  25. .NET Exceptions
  26. VB.NET Creating and Managing Components Part 1
  27. VB.NET Creating and Managing Components Part 2
  28. Simple Data Binding
  29. .NET Complex Data Binding
  30. .NET Data Form Wizard
  31. Data Manipulation with ADO.NET
  32. SQL Server Stored Procedures
  33. SQL Server Ad Hoc Queries
  34. Finding and Sorting Data in DataSets
  35. ADO.NET Object Model
  36. Working with DataSets
  37. Using XML Data
  38. Working with File System in .NET
  39. Creating Web Service
  40. Instantiating - Invoking Web Services, Creating Proxy Classes with WSDL
  41. Web Reference and Web Services
  42. Web Services - SOAP, WSDL, Disco and UDDI
  43. Web Application Testing in VB.NET 2005
  44. Web Application Tracing and Debugging
  45. Working with Legacy Code and COM Components
  46. ActiveX Controls and Legacy Code
  47. Windows Application Testing
  48. VB.NET Windows Application Testing
  49. Tracing VB.NET Windows Application
  50. Debugging Windows Applications In Visual Studio.NET 2005
  51. Deploying Windows Applications In Visual Studio.NET 2005
  52. Customizing Setup Project in Visual Studio.NET 2005
  53. Shared Assembly
  54. Microsoft .NET Creating Installation Components
  55. The Registry Editor in Visual Studio.NET 2005
  56. The File Types Editor
 

Comments