Showing results 1 to 4 of 4

Thread: How to deploy .NET Activex

  1. #1
    Join Date
    01.10.2014
    Posts
    26

    Default How to deploy .NET Activex

    Hello,

    I have developed an activex in Visual Studio 2012 and I want to deploy it. If I build the project in local machine where I have develoed the control every thing is ok and it works ok. But if I make a installer for it and install the activex control on Targer machine I can't see the Activex in the list of Activex to use it in zenon.

    Should set a special properties in Setup project?
    I send the configurations which I have used for my activex. But it doesn't work!

    Regards,
    Parisa
    Attached Thumbnails Attached Thumbnails Step1.png   Step3.png  

  2. #2
    Join Date
    20.08.2009
    Posts
    293

    Default AW: How to deploy .NET Activex

    Quote Originally Posted by parisamoosavi View Post
    Hello,

    I have developed an activex in Visual Studio 2012 and I want to deploy it. If I build the project in local machine where I have develoed the control every thing is ok and it works ok. But if I make a installer for it and install the activex control on Targer machine I can't see the Activex in the list of Activex to use it in zenon.

    Should set a special properties in Setup project?
    I send the configurations which I have used for my activex. But it doesn't work!

    Regards,
    Parisa
    Hi,

    what exactly does the installer do?

    You could try to register the ActiveX control manually by registering it via a RegAsm call like this:
    C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Re gAsm.exe "D:\myControl.dll" /codebase
    C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegA sm.exe "D:\myControl.dll" /codebase


    Regards,
    Bernhard

    PS:
    Be sure that the zenon Editor & zenon Runtime is closed during the registration process!
    Last edited by bernhardf : 5th March 2015 at 13:43

  3. #3
    Join Date
    01.10.2014
    Posts
    26

    Default AW: How to deploy .NET Activex

    Hi,

    Because I have some dlls which are developed in .Net and I wanted, the end user only through a click installs all of them.

    To register the dlls I have followed the IU-17,Page 26 and I used regasm.exe dll-name.dll /tlb:dll-name.tlb but it couldn't help. But with /codebase I could register the dll manually.
    I appreciate it.

    Regards,
    Parisa

  4. #4
    Join Date
    20.08.2009
    Posts
    293

    Default AW: How to deploy .NET Activex

    Quote Originally Posted by parisamoosavi View Post
    Hi,

    Because I have some dlls which are developed in .Net and I wanted, the end user only through a click installs all of them.

    Regards,
    Parisa
    You can still do this by creating a small application which registers the controls for you (That's what I did for testing purposes).

    For more detailed information on the /codebase parameter see here:
    https://msdn.microsoft.com/de-de/lib...vs.110%29.aspx

    Regards,
    Bernhard

Similar Threads

  1. .NET Framework version
    By loanvar in forum VSTA
    Replies: 14
    Last Post: 11th June 2018, 07:54
  2. VB .net program
    By twilight in forum VSTA
    Replies: 4
    Last Post: 27th June 2014, 09:02
  3. Benutzerübersicht VB.net
    By and12121 in forum VSTA
    Replies: 4
    Last Post: 3rd March 2014, 15:31
  4. WPF with .Net
    By dlamarche in forum VSTA
    Replies: 1
    Last Post: 4th July 2013, 02:55

Posting Rules

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