Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need to programatically recover from dll mistake!
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Need to programatically recover from dll mistake!
Miscellaneous
Thread ID:
00891903
Message ID:
00891903
Views:
69
When I release my app, I had all my files (including a dll) in the app's directory. As the app runs, it looks to see if the dll has been registered on the users machine. If it has not, then it registers and then instantiates what it needs.

However, the system admin decided to move the app to a different folder. Now the registry shows that the dll is registered but the path of the dll in the registry is no longer valid ... the dll was moved with the app. So, when the app tries to instantiate the object, it crashes.

What I'd like to do is compare the working path of the running app to the path listed in the registry. If they differ, I could unregister the dll and re-register it. Actually, maybe I could just replace the path value in the registry?

Is there any easy way to get the registered path of the dll? In this case, the path is found in the Registry as:

HKEY_CLASSES_ROOT\CLSID\{832E8CD7-F63C-47AB-8F73-7F41B0FD232E}\InprocServer32

However, I can't seem to figure out how to get the default value from this registry path.

Thanks so much for whatever help you can offer!

Rodd
Next
Reply
Map
View

Click here to load this message in the networking platform