VB.Net
  Home arrow VB.Net arrow Page 2 - Deploying Applications in VB.NET: Part 1/2
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
VB.NET

Deploying Applications in VB.NET: Part 1/2
By: Jayesh Jain
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 256
    2002-11-03

    Table of Contents:
  • Deploying Applications in VB.NET: Part 1/2
  • What is Microsoft Windows Installer?
  • Modifying Properties (contd.)
  • Conclusion

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    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

    More VB.Net Articles
    More By Jayesh Jain


       · Nice intro, where's Part 2 ?
       · What a great article! Although i haven't tried it yet (but i will, maybe...
       · nice explanation and complete with satisfaction....
       · Firstly thanks for the explanation.I recently downloaded VB2008 Express Edition...
       · Thanks man, this is a great article for beginners. I have tested the procedures and...
       · Nice Explanation by the author of deploying the vb.net application but till I have...
       · I recently struggled with this.The answer is simple but very difficult to find. ...
       · Thanks for this article, Iwish u knew the great favour it did.Well done
       · i want mini application with gui example with connection Ado to VB.Net.
       · Hi this was a satisfaction guaranteed kinda article....i was searching for the same...
       · Very helpful article I must say. Thank you.
       · I too have the VB 2008 Express version.I have found that, by right-clicking on the...
     

    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...







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek