How register from cmdline .dll ShellExtension with RegSrv32?

pstein

New member
Member
VIP
Local time
6:53 PM
Messages
244
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?

Peter
 

My Computer My Computer

At a glance

win7pro 64bit
Computer type
PC/Desktop
OS
win7pro 64bit
What do you mean by "the following does not work"? Are you using an Elevated Command Prompt window when you execute the cmdline?
 

My Computer My Computer

At a glance

Windows 7 x64, Vista x64, 8.1 smartphoneIntel E8400 65W 64-bitDDR2 2 x 2GB, 1GB x 2XFX Radeon HD5750
Computer type
PC/Desktop
OS
Windows 7 x64, Vista x64, 8.1 smartphone
CPU
Intel E8400 65W 64-bit
Motherboard
Gigabyte EP45-UD3LR
Memory
DDR2 2 x 2GB, 1GB x 2
Graphics Card(s)
XFX Radeon HD5750
Sound Card
AMD High Definition Audio; Realtek High Definition Audio
Monitor(s) Displays
iiyama prolite X2377HDS
Screen Resolution
1920 x 1080
Hard Drives
500GB 7200 rpm Seagate ST3500413AS 16MB, 500GB 5400 rpm Toshiba MQ02ABF050H 32MB, 200GB 7200 rpm Seagate ST3200820AS 8MB, 2TB 7200 rpm Western Digital WD20EZRX 64MB
PSU
Enermax Liberty Modular
Case
Antec P193 Midi Tower
Keyboard
Mionix ZIBAL 60
Mouse
Razer USB 2.0 Diamondback Mouse or Huion Graphics Tablet
Browser
Internet Explorer, Lunascape, Firefox, Opera, Avast Safezone
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 Computer My Computer

At a glance

Windows 7 Pro 64 bitXeon W35208 GBNvidia Geforce 210
Computer type
PC/Desktop
Computer Manufacturer/Model Number
HP
OS
Windows 7 Pro 64 bit
CPU
Xeon W3520
Memory
8 GB
Graphics Card(s)
Nvidia Geforce 210
Executing the cmdline correctly should generate a pop-up dialog box saying
something similar to
Code:
[FONT="Book Antiqua"]DllRegisterServer in ShellExt.dll succeeded.[/FONT]
with "OK" being the only available button on the dialog box.

==Edit==

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

Code:
reg query HKLM\SOFTWARE\Classes /s /f ShellExt.dll
 
Last edited:

My Computer My Computer

At a glance

Windows 7 x64, Vista x64, 8.1 smartphoneIntel E8400 65W 64-bitDDR2 2 x 2GB, 1GB x 2XFX Radeon HD5750
Computer type
PC/Desktop
OS
Windows 7 x64, Vista x64, 8.1 smartphone
CPU
Intel E8400 65W 64-bit
Motherboard
Gigabyte EP45-UD3LR
Memory
DDR2 2 x 2GB, 1GB x 2
Graphics Card(s)
XFX Radeon HD5750
Sound Card
AMD High Definition Audio; Realtek High Definition Audio
Monitor(s) Displays
iiyama prolite X2377HDS
Screen Resolution
1920 x 1080
Hard Drives
500GB 7200 rpm Seagate ST3500413AS 16MB, 500GB 5400 rpm Toshiba MQ02ABF050H 32MB, 200GB 7200 rpm Seagate ST3200820AS 8MB, 2TB 7200 rpm Western Digital WD20EZRX 64MB
PSU
Enermax Liberty Modular
Case
Antec P193 Midi Tower
Keyboard
Mionix ZIBAL 60
Mouse
Razer USB 2.0 Diamondback Mouse or Huion Graphics Tablet
Browser
Internet Explorer, Lunascape, Firefox, Opera, Avast Safezone
Back
Top