Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. Deployment - registering assemblies

Deployment - registering assemblies

Scheduled Pinned Locked Moved .NET (Core and Framework)
comsysadminhelpquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    CybrWeez
    wrote on last edited by
    #1

    I've tried using the Register property of a deployment project, it works fine for COM components, but for Assemblies, I've tried vsdraCOM and vsdraCOMRelativePath, neither seems to do anything. No tlb file is generated, and no entry in OleView. I've tried registering through Custom Action, but the problem is in Uninstall, you can't use custom action because the dll's are deleted before any custom action is run which could unregasm. Has anyone dealt w/installing assemblies needing to be regasmed?

    W 1 Reply Last reply
    0
    • C CybrWeez

      I've tried using the Register property of a deployment project, it works fine for COM components, but for Assemblies, I've tried vsdraCOM and vsdraCOMRelativePath, neither seems to do anything. No tlb file is generated, and no entry in OleView. I've tried registering through Custom Action, but the problem is in Uninstall, you can't use custom action because the dll's are deleted before any custom action is run which could unregasm. Has anyone dealt w/installing assemblies needing to be regasmed?

      W Offline
      W Offline
      wduros1
      wrote on last edited by
      #2

      CybrWeez wrote: I've tried vsdraCOM and vsdraCOMRelativePath These two settings only do any magic if the assembly is designed to work through a CCW (Com Callable Wrapper). Basically, if you have designed your assembly to be a COM component. I have used these settings with success. I found a great .NET pdf library that I needed to use in VB6, so I wrote a wrapper object that looked like the VB6 printer object. Using attributes to control the visibility of my properties and methods, then using CCW to expose the object to the COM world. Worked great. :-D In the project properties of your source project (Not the deployment project), check the "Register for COM interop" to get the TBL built, etc. Also, using the various attibutes can make your assembly look much better to those COM eyes... Imports System.Runtime.InteropServices ' Expose this object as a COM object _ Public Class PDFPrinter ' Content Goes Here End Class Then, in the deployment project... [cPDFWriter.tbl] Register=vsdrfCOM [cPDFPrinter.dll] Register=vsdrfCOM

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups