LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

ActiveX registration in VISTA

Hello,

 

I have a CVI application which is using an ActiveX for creating an internal virtual serial port.

I'm trying to migrate my application to VISTA but I've got the following problem:

 

I cannot registre the ActiveX dll automatically by selecting "Register as ActiveX server" in the installer because I need to add a registration code behind the dll.

The provider of the ActiveX provides RegVSP.exe to register his ActiveX server but  in VISTA I have to declare this exe to run with administrator rights in order to use it. This can be done manually with a right click on the name and checking  

-> Properties -> Compatibility -> enable "Run this program as an administrator" checkbox.

but how can I do that automatically ?

 

Thank you

Bertrand

0 Kudos
Message 1 of 4
(3,743 Views)

Hi Bertrand,

 

Normally this is done by embedding a manifest into the .exe in question, which will force Vista to require administrator-level access whenever someone runs the program. Since it sounds as if you don't build that .exe yourself, you can't really embed the manifest within it. In that case, you still have the option of including the manifest as a separate file in the same folder as the exe. The name of the file must be RegVSP.exe.manifest.

 

Manifest files are xml files that can have lots of things in them. But in your case, your file can be pretty simple. I've attached a sample one below (you'll have to rename it yourself, since the forum software doesn't let me attach .manifest files). For additional info, check out the Microsoft documentation on this topic.

 

Luis

 

 

 

0 Kudos
Message 2 of 4
(3,715 Views)

Thank you Luis for your very interesting information. Unfortunately I can not open your sample file because there is an error in it.

The end marker </dependency> has no start marker.

 

Could you please send it again?

Bertrand

 

0 Kudos
Message 3 of 4
(3,667 Views)

Oops. I had been removing some extraneous data from that file, and it looks as if I left a rogue line in there.

 

Okay, try again.

0 Kudos
Message 4 of 4
(3,652 Views)