Windows XP: RegSvr32 / i: [cmdline]: What is the "Command Prompt" in this case?

I am trying to register a dll using regsvr32 in a cmd window. I do this on an administrator account, but I need this DLL to register for all users. It turns out that regsvr32 does not do this, it is registered only for your current user. Well, when you somehow use this: "regsvr32 / i" C: \ MyDll.dll "" What happens; The entry is added to Local_User and Classes in the registry, but not to Local_Machine.

The msdn article on regsvr32 says that using the / i option also requires [cmdline]. But the article does not indicate what I can put in place of [cmdline]. Google also refuses to help me, so I'm a bit stuck with this.

I understand that this is not entirely on the topic of programming, but this is something that programmers may know, so ... Has anyone come across this before? Perhaps someone knows how this [cmdline] tag works? Are there other ways to add this dll for all users? (Besides editing the registry manually, which is.) Any understanding would be greatly appreciated!

+4
source share
1 answer

What you set to [cmdline] is determined by the DLL that you register. regsvr32 will simply pass this text to the DllInstall function in the DLL. If you want to know what to go through, you should refer to the documentation for this particular DLL.

+3
source

Source: https://habr.com/ru/post/1313166/


All Articles