 |
|
 |
You didn't include the case for directory names containing spaces. Perhaps you could change your article to include this!
|
|
|
|
 |
|
 |
It appears that when right-clicking on a file in Windows Explorer in a directory whose name contains spaces, and then selecting the register or unregister option, there's a problem. For example, consider the directory d:\s p a c e s and a dll file located in this directory. If you right-click on the dll file, and choose RegSvr32, you get this message: LoadLibrary("D:\s") failed - The specified library could not be found. To fix this problem, replace "regsvr32.exe" %1 in the registry editor with "regsvr32.exe" "%1". Also, replace "regsvr32.exe" /u %1 with "regsvr32.exe" /u "%1".
Regards,
Mike
modified on Wednesday, February 18, 2009 9:26 AM
|
|
|
|
 |
|
 |
using "My Computer" //Start->My Computer
menuBar.item("Tools->Folder Options->File Types").Invoke();
if(window.item("Required File Types").Extensions.contains("DLL") == false)
{
New.click();
File Extension = "dll";
Advanced.click();
waitForSystemToAutomaticallySetTo("Application Extension");
Ok.click();
}
window.item("Required File Types").Extensions.item("DLL").select();
Advanced.click(); //Open the advanced properties dialog
New.click(); //Add a new action
window.item("Actions") = "Register"; //Add to the shortcut menu text
window.item("Application used to perform action").setFocus();
Browse.click(); //Go find the file
ShellOpenDlg.NavigateTo("C:\\Windows\\System32\\regsvr32.exe");
ShellOpenDlg.Open.click();
Ok.click();
Ok.click();
Close.click();
/*
Now all you have to do to register a dll is right click on it and choose "Register" from the shortcut menu. If you'd like, you can also make an "Unregister" version:"
*/
using "My Computer" //Start->My Computer
menuBar.item("Tools->Folder Options->File Types").Invoke();
if(window.item("Required File Types").Extensions.contains("DLL") == false)
{
New.click();
File Extension = "DLL";
Advanced.click(); //If you don't click this and "DLL" is already registered
//you get a warning. Just click it, ok. DLL is hidden
//even if you register it's file type here.
waitForSystemToAutomaticallySetTo("Application Extension");
Ok.click();
}
window.item("Required File Types").Extensions.item("DLL").select();
Advanced.click(); //Open the advanced properties dialog
New.click(); //Add a new action
window.item("Actions") = "Unregister"; //Add to the shortcut menu text
window.item("Application used to perform action").setFocus();
Browse.click(); //Go find the file
ShellOpenDlg.NavigateTo("C:\\Windows\\System32\\regsvr32.exe");
ShellOpenDlg.Open.click();
window.item("Application used to perform action").append(" /u ");
Ok.click();
Edit.click();
window.item("Application used to perform action").surroundWithQuotes("%1");
//In other words, surround %1 with quotes or long file names will get hosed
Ok.click();
Ok.click();
Close.click();
|
|
|
|
 |
|
 |
To all those dummies that will inevitably ask me "what language was this written in"... It is my lame attempt to be funny, writing in make-believe source code. Kinda like speaking in pig latin; it is just for kicks. I do it all the time, and it annoys the hell out of my non-technical girlfriend but she endures it. Just follow the steps, ok.
|
|
|
|
 |
|
 |
I try to register inpout32.dll I have copied inpout32.dll in system32 when I am trying to register, it shows error i.e. File was loaded, but DllRegisterServer Entry point was not found. what that mean of this error. plzzz Swapnil shah shahswapnil963@yahoo.co.in
|
|
|
|
 |
|
 |
It means that the function "DllRegisterServer(...)" was not found. In other words, your dll does not contain DLLRegisterServer or, if it DOES, you didn't export it. I assume you wrote this dll yourself? Add it (DllRegisterServer) to your .def file. If you didn't bother to write the function to begin with, write it. Then add it to your .def file. If you didn't write it yourself, then you're stuck. Of course, I would find myself sorely tempted to debug and disassemble the dll, try to find the un-exported DllRegisterServer by comparing function calls contained therein with function calls known to be used by all version of dllRegisterServer, the nwrite a stub dll that exports DllRegisterServer and imports the faulty dll, forwarding all function calls to the faulty dll. But that is the hacker way, and if you knew how to do that, you wouldn't be HERE asking this question, now would you?
|
|
|
|
 |
|
 |
change it to: "regsvr32.exe" "%1"
|
|
|
|
 |
|
 |
I am using XP Pro and added the keys dllfile-shell-Regsvr23-Command then edit the value data "regsrv32.exe %1" and also setup the Unregsvr32 but when I select a dll in explorer and right click to select Regsrv32 it prompts me to select a program to view. Is there something I am missing here? I am not a registry expert so please write out all the steps. Also what should the Value data be for both entries "regsvr32.exe" "%1" and "unregsvr32.exe" "/u%1" are these correct including the quotation mark placement and spaces?
|
|
|
|
 |
|
 |
when i registerd my dll its shows entry point was not found
what i have to do o/s win 2000 its for usb device
|
|
|
|
 |
|
 |
I have a activex dll, make with VB 6.0, I register in my session and function perfectly, but
when logging in with other user, this look as if wasn't register in my machine
somebody knows how to register for all user?
john
|
|
|
|
 |
|
 |
After updating my registry to be able to reg and unreg dll from Windows explorer. When I try unreg or wise versa it can't find the files do the the space between names for directories.
how can I get around this?
Thanks...
|
|
|
|
 |
|
 |
in the dllfiles I don't have them other folders what do I do then?
|
|
|
|
 |
|
 |
Under the dllfiles, you create the shown folders
|
|
|
|
 |
|
 |
Make sure to change the location of the ""s to handle directories that have spaces
|
|
|
|
 |
|
 |
you can see the missing picture here.
[url]http://www.codeproject.com/useritems/regdllxp/regedit.jpg[/url]
|
|
|
|
 |
|
 |
Isn't this exactly what is mentioned here (with a reg file):
http://www.codeproject.com/tips/VisualTips.asp
Cheers
Matthew Berry
|
|
|
|
 |
|
 |
; Register and Unregister EXEs
[HKEY_CLASSES_ROOT\.exe]
@="exefile"
[HKEY_CLASSES_ROOT\exefile\shell\Register COM Server\command]
@="\"%L\" /regserver"
[HKEY_CLASSES_ROOT\exefile\shell\Unregister COM Server\command]
@="\"%L\" /unregserver"
from a .reg file I have with (c) 1997-1998, Chris Sells in it.
Enjoy,
Josh
|
|
|
|
 |
|
 |
You got some broken image links. Ask site editor for help to fix it. Since it is new article, I think you can fix it your self.
---
Softomatix
http://www.pardesifashions.com/Softomatix/default.aspx
|
|
|
|
 |
|
|
 |