How to test for a .dll that is registered with the OS

How to test for a .dll that is registered with the OS

Postby Rick Lipkin » Thu Feb 05, 2009 9:47 pm

To All

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

Thanks
Rick Lipkin
User avatar
Rick Lipkin
 
Posts: 2665
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: How to test for a .dll that is registered with the OS

Postby Enrico Maria Giordano » Fri Feb 06, 2009 8: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
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: How to test for a .dll that is registered with the OS

Postby Rick Lipkin » Fri Feb 06, 2009 1: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
User avatar
Rick Lipkin
 
Posts: 2665
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 90 guests