Results 1 to 4 of 4

Thread: How to register .tlb file silently

  1. #1

    Thread Starter
    Registered User
    Join Date
    Apr 2003
    Posts
    19

    How to register .tlb file silently

    I hav developed a DCOM application which requires a .tlb file of my component to be registerd on client machine, i know how to do it manually can someone help me with the silent unstallation part like installer itself takes care of registering .tlb files without user intervention.

  2. #2
    Fanatic Member
    Join Date
    Sep 2002
    Posts
    518
    Do you mean during the installation process? If so, read:

    ms-help://MS.VSCC/MS.MSDNVS/vsintro7/html/vbtskCreatingInstallerForYourApplication.htm

    If you mean you want to associate a file extension with an application OUTSIDE of the installation process, that's really just a registry entry. For example if you create a file with the extension ".Fribbleglixy" and Open With -> Notepad.exe, with Always Use checked, the following is added to your registry (exported from mine):

    Windows Registry Editor Version 5.00

    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.Fribbleglixy]
    "Application"="NOTEPAD.EXE"

    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.Fribbleglixy\OpenWith List]
    "a"="NOTEPAD.EXE"
    "MRUList"="a"

  3. #3

    Thread Starter
    Registered User
    Join Date
    Apr 2003
    Posts
    19
    No i meant when you compile a com component as a remote component, u get a .vbr and a .tlb file u need to register ur type library with the client to use that component. we can do it with clireg but that' s an attended app but i want it to be unattended

  4. #4
    Fanatic Member
    Join Date
    Sep 2002
    Posts
    518
    I don't know then - but I strongly suspect it's still just a registry entry which you could duplicate. If you don't find the "right" way to do it I'd bet you could get the same result by manipulating the registry...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width