FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour How to test for a .dll that is registered with the OS
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
How to test for a .dll that is registered with the OS
Posted: Thu Feb 05, 2009 09:47 PM

To All

Is there a way to test if a specific file ( .dll ) is registered with the operating system ??

Thanks
Rick Lipkin

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: How to test for a .dll that is registered with the OS
Posted: Fri Feb 06, 2009 08:18 AM

Just run regsvr32 with the /s parameter at the start of your app. It will register the DLL if it is not already registered, otherwise it will do nothing.

EMG

Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: How to test for a .dll that is registered with the OS
Posted: Fri Feb 06, 2009 01:39 PM

Enrico

Thanks .. I have been thinking about this ... and I can easily test for the existance of the .dll in the \system32 folder and do a try catch end try if my external program fails and then test the register .. something like that ...

Thanks
Rick

Continue the discussion