C#
  Home arrow C# arrow Page 8 - 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 - Support Files and Project Outputs


    (Page 8 of 14 )

    Support Files

    You can add the files your application uses (like bitmaps, custom data files, and so on) manually. Just right-click on the file list, choose Add File , and browse to the correct file (you can also create any sub-directories you need by choosing Add Folder.) The files you select will be copied to the corresponding location on the target computer.

    Project Outputs

    You should add the main .NET assembly for your application as a project output. This ensures that the file will be automatically regenerated every time you build the setup. It also ensures that the required dependent assemblies will be included. To add the project output for the FontView application, right-click on the Application folder and choose Add Project Output .



    This window allows outputs from any project in the current solution. Once you choose the correct project, you can select the type of output.

    Primary output adds the assembly built by the referenced project, and any dependent assemblies. This is the most common option. (You can also set the Configuration option to Release .NET to ensure that the setup program always uses the release version of the assembly, regardless of the current IDE settings).

    Localized resources uses the satellite assemblies for the project, which contain locale-specific resources.

    Source files includes all the text source files for the referenced project. Because these files do not include the actual compiled assembly, dependent assemblies will not be included automatically.

    Any dependent assemblies are automatically referenced. In this case, the dependent assembly mscorlib.cfgmscorlib.dll (a core part of the .NET framework) is included.

     

    When you add a .NET assembly, the .NET redistributable files are automatically added to the setup project, allowing you to install your application on computers that don't have the .NET runtime installed. It also balloons the size of your setup project (from about 100K to over 15Mb). If you are creating a setup for clients that already have the .NET framework installed, you should exclude these components to save space. This is the approach taken in the FontViewer example.

    Right-click on the dotnetfxredist_x86_enu.msm merge module in the Solution Explorer, and choose Exclude.

    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 6 hosted by Hostway
    Stay green...Green IT