locked
Registering dll in global assembly catch without using utility RRS feed

  • Question

  • hi All
         I  am  registering  an dll in global assembly catch  manually  by running a batch file after the application setup is installed.
          is it possible to create an setup  that does this process without running an batch file manually.
         thanks
         sarav
        

    Tuesday, October 6, 2009 6:56 AM

Answers

  • First, people often use the term "register in the GAC" when they mean "install in the GAC". If that's all you want, then use Add Special Folder in the File System view, add the GAC, and put your assembly there using the IDE.

    If you want to register it for COM, right-click the file in the File System view and there's a Register property, just set that.

    You don't need it in the GAC for it to be registered for COM.
    Phil Wilson
    • Marked as answer by Aland Li Thursday, October 8, 2009 7:29 AM
    Tuesday, October 6, 2009 7:07 PM
  • Did you right-click on the file in the File System view ? There's a properties window choice wiuth a Register property that you set. That basically gets the COM class registration out of the assembly and at install time will create the registry entries on the target system.
    Phil Wilson
    • Marked as answer by Aland Li Thursday, October 8, 2009 7:29 AM
    Wednesday, October 7, 2009 7:44 PM

All replies

  • First, people often use the term "register in the GAC" when they mean "install in the GAC". If that's all you want, then use Add Special Folder in the File System view, add the GAC, and put your assembly there using the IDE.

    If you want to register it for COM, right-click the file in the File System view and there's a Register property, just set that.

    You don't need it in the GAC for it to be registered for COM.
    Phil Wilson
    • Marked as answer by Aland Li Thursday, October 8, 2009 7:29 AM
    Tuesday, October 6, 2009 7:07 PM
  • hi phil
              thanks for thae reply i used the special  and its working.  can u give a some more explination or guidence in registering it for com.
     thanks
     sarav

    Wednesday, October 7, 2009 2:03 PM
  • Did you right-click on the file in the File System view ? There's a properties window choice wiuth a Register property that you set. That basically gets the COM class registration out of the assembly and at install time will create the registry entries on the target system.
    Phil Wilson
    • Marked as answer by Aland Li Thursday, October 8, 2009 7:29 AM
    Wednesday, October 7, 2009 7:44 PM