Windows Scripting
  Home arrow Windows Scripting arrow Page 3 - COM in the Windows Installer World
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Mobile Linux 
App Generation ROI 
Windows Web Hosting
 
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? 
WINDOWS SCRIPTING

COM in the Windows Installer World
By: Apress Publishing
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 9
    2004-12-28

    Table of Contents:
  • COM in the Windows Installer World
  • Installing a COM Server
  • Type Libraries
  • InprocServer32 Entries and Repair
  • Merge Modules and Sharing
  • Relative Paths and Side-by-Side COM Components
  • Back to Side by Side

  • 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


    COM in the Windows Installer World - Type Libraries


    (Page 3 of 7 )

    In the context of type libraries, it’s interesting to take a look at the Registry table with Orca (see Figure 3-4).


    Figure 3-4.  The Registry table

    The table itself is straightforward: Each entry has a Root to identify the Registry hive, the name of a Registry key, then Name and Value pairs for the contents of the key. The Name column has some values that determine how to create the data (such as +, meaning create the key if it’s absent), as well as actual data names. Notice that this table contains some of the COM registration entries that don’t have entries in the Class, TypeLib, or ProgId tables. For example, the COM ThreadingModel value is stored in this table. Now if you’re familiar with COM registration entries, you probably know that type library registration creates Interface entries in the Registry, so you might wonder why there are entries for COM interfaces here in the Registry table when the type library registration will create them. In fact, you can delete these Interface entries from the Registry table using Orca and install the edited package, and those HKCRInterface entries are indeed still created. The probable explanation is that this is simply a consequence of a VS mechanism that collects all the registration entries without any attempt to filter them, and any that don’t fit into the COM tables are put in the Registry table. There is no harm in having the explicit Interface entries installed from the Registry table as well as through type library registration from the TypeLib table.

    If you have a stand-alone type library as a TLB file that you want to install and register, VS will do that for you. If you add the file to the project, you’ll see that VS automatically sets the Register property of the file to vsdrfCOM. If you build the package and look at the Registry table with Orca you’ll see that all the appropriate Interface entries have been extracted. 

    This chapter is from The Definitive Guide to Windows Installer by Phil Wilson. (Apress, 2004, ISBN: 1590592972 ). Check it out at your favorite bookstore today. Buy this book now.

    More Windows Scripting Articles
    More By Apress Publishing


     

    WINDOWS SCRIPTING ARTICLES

    - Introducing Two-Way Data Binding using Silve...
    - Silverlight 2.0 Application Development with...
    - Burning Multisession CDs with IMAPI2 in WSH
    - Creating a Silverlight 2.0 Application that ...
    - Burning CDs with the IMAPI2 Control
    - Burning CDs in Windows XP with WSH
    - Advanced Word Object Scripting
    - Reading and Printing Word Documents in WSH
    - Scripting Microsoft Word
    - Using WSH to Catalog MP3 Files
    - Reading MP3 ID3 Tags in WSH
    - A Brief Look at Menus in WPF
    - More Examples of Simplified Image Processing...
    - Completing a WPF To-Do List Application
    - Simplified Image Processing in GDI+





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