C#
  Home arrow C# arrow Page 13 - Creating a .NET Windows Installer – Part 1
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 
Sun Developer Network 
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? 
C#

Creating a .NET Windows Installer – Part 1
By: Wrox Team
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 68
    2003-03-06

    Table of Contents:
  • Creating a .NET Windows Installer – Part 1
  • Article
  • Introducing the Windows Installer Service
  • The Sample Project
  • Creating the Windows Installer Project
  • The Setup Designers
  • Adding Files, Project Outputs, and Shortcuts
  • Support Files and Project Outputs
  • Shortcuts
  • Customizing the User Interface
  • Abstract
  • Article
  • Introducing the Windows Installer Service
  • The Sample Project

  • 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


    Creating a .NET Windows Installer – Part 1 - Introducing the Windows Installer Service


    (Page 13 of 14 )

    The last feature we will add to the FontView setup is an automatic registry entry. The Registry designer is modeled after the familiar regedit.exe program. You can browse to a node in the registry, and add keys or values by right-clicking and choosing the relevant option. These settings will be committed to the registry of the target computer. Note that you cannot remove existing entries, which prevents you from making potentially damaging changes.

    For our registry setting, we use special variables recognized by the installer. These variables are identified by square brackets. At runtime, the setup swaps the appropriate values for the [Manufacturer] and [Product] (which are set in the Properties Window for the setup project) and the [CUSTOMERNAME] (which the user specifies in the registration window) to create the registry setting HKEY_LOCAL_MACHINE\ProseTech\FontViewer\Customer. Setup variables are described in more detail in the second part of this series.

    To incorporate this change, the FontViewer application is modified slightly. It now displays the user name of the user who installed it in the title bar.

    Here's the required code in the FontViewer application:

    private void main_Load(object sender, EventArgs e)
    {

        // (Original code omitted for space.)

        RegistryKey rk;
        rk = Registry.LocalMachine.OpenSubKey(
                       "Software\\ProseTech\\FontViewer");
        if (rk != null) this.Text += " - " + rk.GetValue("Customer");
    }

    More C# Articles
    More By Wrox Team


       · Great Description, but where i can find the second part ?
     

    C# ARTICLES

    - Introduction to Objects and Classes in C#, P...
    - Visual C#.NET, Part 1: Introduction to Progr...
    - C# - An Introduction
    - Hotmail Exposed: Access Hotmail using C#
    - Razor Sharp C#
    - Introduction to Objects and Classes in C#
    - Making Your Code CLS Compliant
    - Programming with MySQL and .NET Technologies
    - Socket Programming in C# - Part II
    - Socket Programming in C# - Part I
    - Creational Patterns in C#
    - Type Conversions
    - Creating Custom Delegates and Events in C#
    - Inheritance and Polymorphism
    - Understanding Properties in C#






    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
    Stay green...Green IT