LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

unregistering Active X server

(Originally posted in the TestStand forum)

I've created an ActiveX Server from a LabVIEW vi that I open up from TestStand then communicate with the Controls and Indicators through the "ActiveX/COM" interface. Before starting it I call the executable with "myvi.exe /RegServer" to ensure that it has been registered with Windows. Everything works fine from this point on.

My problem is that when I'm done I quit the application and unregister the executable with "myvi.exe /UnregServer". When I make the call I get the Windows error "Write permission to the Registry denied, LabVIEW Server not unregistered" However, it does seem to work as the server is unregistered. I know this because if I try to create a reference to the application I get a "Type library not found error"

I couldn't find anything on MSDN about this. If I try the same thing from the command prompt I still get the error.

It's probably not really necessary to unregister the server, but as I update it I don't want old unused registered versions showing up.

Any clues as to why I get the error?

Dave
0 Kudos
Message 1 of 2
(2,499 Views)
Can't say I have any idea, but I would recommend checking out regmon (Registery Monitor) from www.sysinternals.com. It will show every registry access from your application along with success or failure codes. This may show you what step the error is coming from.
0 Kudos
Message 2 of 2
(2,495 Views)