Home arrow VB.Net arrow Page 2 - Deploying Applications in VB.NET: Part 1/2
VB.NET

Deploying Applications in VB.NET: Part 1/2


Ever wondered how to deploy your own VB.NET applications? In this 2 part article, Jayesh runs you through everything you need to know to get started ASAP!

Author Info:
By: Jayesh Jain
Rating: 5 stars5 stars5 stars5 stars5 stars / 300
November 03, 2002
TABLE OF CONTENTS:
  1. · Deploying Applications in VB.NET: Part 1/2
  2. · What is Microsoft Windows Installer?
  3. · Modifying Properties (contd.)
  4. · Conclusion

print this article
SEARCH DEVARTICLES

Deploying Applications in VB.NET: Part 1/2 - What is Microsoft Windows Installer?
(Page 2 of 4 )

Windows Installer is an installation and configuration service shipped with Microsoft Windows .NET Server family, Windows XP, Windows 2000, and Windows Me. The installer is also provided as a service pack to Microsoft Windows NT version 4.0, Windows 98, and Windows 95.

An installation package contains all of the information that the Windows Installer requires to install or uninstall an application or product and to run the setup user interface. Each installation package includes an .msi file, containing an installation database, a summary information stream, and data streams for various parts of the installation. The .msi file can also contain one or more transforms, internal source files, and external source files or cabinet files required by the installation.

Windows Installer allows you to roll back the installation depending on some conditions and returns the computer to its original state. It also supports self-repair, which could be used to reinstall missing file(s). Sounds great doesn't it? Well, let's see it in action!

Creating a Windows Application
Let's create a small Windows application, which will constantly display the current time on a form. To implement this, open Visual Studio.Net and create a new Windows application project, which we will call "MyClock". Click OK:

Creating our VB.Net application

In the form design window, add a label control. Change the label controls name property to lbl_time. Add a timer control to the form. Change the timer controls interval property to 1000.

In the form design window, double click the form to open the Form1_Load procedure and enter the following line of code:

Timer1.Enabled = True ' this shall start the timer

In the form design window, double click on the timer control to open the Timer1_Tick procedure and type:

lbl_time.Text = TimeOfDay 'This shall display current time

Our digital clock application is ready to test. Built the application and run it to make sure our application is running properly before we start deploying this application.

Testing our clock application

Adding the Deployment Project
Now that our application is coded and running fine, we need to think how we are going to distribute the application. Open the solution explorer, right click the solution and select Add, then New Project. The same action could be achieved from the File menu as well.

In the Add New Project window, select Setup and Deployment Projects from the project types. Also, select Setup Project from the Templates list. Change the name to MyClockSetup, and select the location where you want to store your project file(s). 

Change this location to the main application project folder. This will ensure that all project and setup file(s) are created in folders under your main project folder.

Creating our deployment project

Click OK. The Setup and Deployment project will be added to your existing project. Clicking OK will also open the File System window (we will go through that in a moment).

Select the MyClockSetup project from the Solution Explorer and open the properties window. Change the following properties:

Manufacturer: devarticles.com
ProductName: MyClock
Title: MyClock
Author: Jayesh

Modifying properties
blog comments powered by Disqus
VB.NET ARTICLES

- MyClass - Implementing Polymorphism in VB.Net
- Building a News Ticker Using VB.Net
- Everything You Wanted to Know About Forms In...
- Building Assemblies with VB.Net
- Simple VB.NET Notify Icon with Panel Applica...
- Regular Expressions in .NET
- String Encryption With Visual Basic .NET
- Deploying Applications in VB.NET: Part 1/2
- Watching Folder Activity in VB.NET
- Creating A Windows Service in VB.NET
- Implementing The Google Web Service In VB.NET
- Migrating to Visual Basic.NET from Visual Ba...

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 

Developer Shed Affiliates

 




© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials