Announcement

Collapse
No announcement yet.

how to unregister typelib(*.tlb)?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • how to unregister typelib(*.tlb)?

    I have sought for the help file, only to find System.RegisterTypelib, how can I UnRegister it? Thanks.

  • #2
    You could locate the regtlibv12.exe utility and call it with the "-u" parameter to uninstall the typelib from the system.
    Code:
    File.Run(sPathToRegTlib, SessionVar.Expand("-u \"%AppFolder%\\thefile.tlb\""), "", SW_HIDE, true);
    Ulrich

    Comment


    • #3
      Thanks, that worked! But why does the setup factory provide the unregister function only for activex and font? Are there any problems for typelib?
      Originally posted by Ulrich View Post
      You could locate the regtlibv12.exe utility and call it with the "-u" parameter to uninstall the typelib from the system.
      Code:
      File.Run(sPathToRegTlib, SessionVar.Expand("-u \"%AppFolder%\\thefile.tlb\""), "", SW_HIDE, true);
      Ulrich

      Comment


      • #4
        I am not sure why such an action wasn't made available. I have submitted a suggestion for this, perhaps it can be added in a future release.

        Ulrich

        Comment

        Working...
        X