Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: How register from cmdline .dll ShellExtension with RegSrv32?

1 Week Ago   #1

win7pro 64bit
How register from cmdline .dll ShellExtension with RegSrv32?

How can I register a 64bit ShellExtension in 64bit Win7 from cmdline?

The following does NOT work:

cd /d C:\Windows\SysWOW64
RegSvr32 "D:\tools\myprog\ShellExt.dll"

How can I find out if a ShellExtension is already (successfully) installed?
Can I see it directly in Registry?


My System SpecsSystem Spec
1 Week Ago   #2

Windows 7 x64, Vista x64, 8.1 smartphone

What do you mean by "the following does not work"? Are you using an Elevated Command Prompt window when you execute the cmdline?
My System SpecsSystem Spec
1 Week Ago   #3

Windows 7 Pro 64 bit

The problem is that you are calling the 32 bit version of RegSrv32.exe. To register a 64 bit shell extension you need to use the 64 bit version which is in windows\system32. In 64 bit Windows 64 bit files are in windows\system32 while 32 bit files are in windows\SysWOW64. I know this seems backwards but there are good reasons for it being this way.

There is no standard way to check if a specific shell extension is installed. RegSrv32 calls a function in the specified DLL. The DLL may or not provide a means of telling what it did, if anything.

Edit: Also 64 bit applications are normally installed in the Program Files folder. 32 bit applications are in Program Files (x86). There are good reasons for this as well.
My System SpecsSystem Spec

1 Week Ago   #4

Windows 7 x64, Vista x64, 8.1 smartphone

Executing the cmdline correctly should generate a pop-up dialog box saying
something similar to
DllRegisterServer in ShellExt.dll succeeded.
with "OK" being the only available button on the dialog box.


Ha,ha I have a funny! Found this on StackExchange:

reg query HKLM\SOFTWARE\Classes /s /f ShellExt.dll
My System SpecsSystem Spec

 How register from cmdline .dll ShellExtension with RegSrv32?

Thread Tools

Similar help and support threads
Thread Forum
How to list all shares? How to cmdline remove GRANT for everyone ?
To create a folder share and grant full permissions to user karl I can write on cmdline: net share "myshare123"="D:\tool" /GRANT:karl,FULL ok, it works. But what about the other way: Is there a way to generate all the full "net share" commands for ALL currently existing folder shares?...
Network & Sharing
What happens if you don't register?
I have an old computer and a spare Windows 7 disc. I want to install Win 7 on this computer and use it for a couple of programs only, so it will not be connected to the internet. My plan is to simply install 7 from the disc and not do any updates on it. Since it won't be connected to the internet,...
Windows Updates & Activation
[Problem] Can't Register Dll
Hi, sry in advance for my bad english this is my first thread. I have a PC in with Windows 7 Ultimate x64, user with administrator privileges, UAC disabled, Antivirus disabled, Firewall disabled, and yet I still can not register a dll, i'm running cmd as administrator and doesn't work. Any Idea?...
BSOD Help and Support
How to share on cmdline the folder D:\aaa\bbb for User 123 ?
I am seaching for a way to assign sharing permissions FROM COMMANDLINE for a particular user with particular permission under Win7 (!). Something like defineshare -dir=D:\aaa\bbb -user=myuser123 -perm="full access" As I learned so far there must be built-in or additional prgm like ...
Network & Sharing

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 21:32.
Twitter Facebook