How to check if a DLL file is registered?

后端 未结 7 1801
一生所求
一生所求 2020-12-01 08:07

How do I find whether a DLL file written in C# is registered or not programmatically?

I already tried this code, but it doesn\'t come off.

If I register a DL

7条回答
  •  不知归路
    2020-12-01 08:09

    You can use this:

    My.Computer.Registry.ClassesRoot.GetSubKeyNames.Contains("gEncrypt.clsEncrypt")
    

    Where "gEncrypt.clsEncrypt" is ComName.ClassName.

提交回复
热议问题