My question is, it might be any dll In the same way, i will uninstall it. Now, I have to verify if that dll is unregistered or not. Please let me know! As an early warning. Like Sheng mentioned, the dll developer has full control over what happens when you call regsvr They can do whatever the heck they feel like doing, and there's no absolute way for you to tell whether they've done it or not. Additionally, if this is a COM control and the dll developer ever tries to change the name of their dll, your function will need to be updated.
This check makes your code dependent on some third party developer not changing their practices, which is never a safe place to be. I think you may be asking the wrong question. Instead of trying to tell whether the dll has been registered, you should just be making sure the functionality you need is available. You shouldn't care whether "xyz. The name, location, or method of installation of the file should not affect your program. Ask a question.
Quick access. Search related threads. Remove From My Forums. Asked by:. Archived Forums. How do I know if a DLL is registered? Ask Question. Asked 7 years, 11 months ago. Active 2 years, 3 months ago. Viewed k times. Improve this question. Add a comment. Active Oldest Votes. If you have one machine where it is already registered, you can: Open regedit and search for your DLL filename If it is registered, you will find filename under a key that is under the TypeLib.
Improve this answer. You don't actually need to know the GUID beforehand. Massimo: but how I would search for it? In which key? It can wrongly display in the shell history e. User-specific things like shell history are under HKCU. Massimo: if you put an answer here with the shell command to search for it, I'll mark it as the correct answer. Show 1 more comment. Find registry entries that contain the DLL name.
Type cmd and select Run as administrator from the pop-up Command Prompt options. Then, you need to type the regsvr32 command. Take the shell You need to type regsvr32 shell You will receive a confirmation message saying that the shell You need to install DLL files to have a try.
How to install DLL files on Windows?
0コメント