LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

how to register DLL as ActiveX servers with CVI 5.0

Hi, I'm using CVI 5.0 and when I build the destribution kit there is not the option to register the DLL files as Activex servers. (as it is for CVI 6.0). So when I try to launch my application an error occurs because the DLL that I use is not registered. Is there an option or additional files I must include?
0 Kudos
Message 1 of 4
(3,210 Views)
We didn't have that feature in CVI 5.0. You would have to register the DLL manually with regsvr32.exe. You could put this is a script to run after the install finishes.

Best Regards,

Chris Matthews
National Instruments
Message 2 of 4
(3,211 Views)
""You could put this is a script to run after the install finishes""
How is possible to do that?
I'm using CVI 6.0 and I can't succeeded in registering a dll as an activeX server. I mark the corret checkbox while creating the installation kit, but the result is that the dll is not registered in the target machine...
Any help will be appreciated,
thanks in advance
0 Kudos
Message 3 of 4
(3,131 Views)
David,

When you're creating the distribution kit, if you click on the Advanced button you will see a second dialog. The topmost control in this dialog allows you to select an executable or a batch file to run after setup. You'll need to include this file in the installation itself by adding it to one of the file groups. It is this file that Chris was referring to when he suggested creating a custom script that would run regsvr32.exe and pass it the installed path of the DLL.

Luis
NI
0 Kudos
Message 4 of 4
(3,116 Views)