Here's some shell extensions... what's your favorite? :P
#81
Posted 25 February 2006 - 01:57 AM
#82
Posted 25 February 2006 - 04:54 PM
Your extensions are now working like a charm. My C: drive can now look spotless clean at will
May I now request a "CMD prompt here" extension for the folder background?
And also, just another localisation trick:
If you want to change the somewhat cryptic "[Un]RegSvr32" texts in the dlls menu to something friendlier you can add a default value to each of the shell key like:
[HKEY_CLASSES_ROOT\dllfile\shell\RegSvr32] @="Your text here"
As an example here is my version of RegSvr32 & UnregSvr32.reg to perform this:
Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\dllfile\shell] [HKEY_CLASSES_ROOT\dllfile\shell\RegSvr32] @="&Référencer" [HKEY_CLASSES_ROOT\dllfile\shell\RegSvr32\Command] @="regsvr32.exe \"%1\"" [HKEY_CLASSES_ROOT\dllfile\shell\UnregSvr32] @="Dé-ré&férencer" [HKEY_CLASSES_ROOT\dllfile\shell\UnregSvr32\Command] @="regsvr32.exe /u \"%1\""
Aren't all those accents cute? I had to f***ing type the words in WORD to check the spelling!
This post has been edited by Djé: 04 March 2006 - 01:02 AM
#83
Posted 04 March 2006 - 05:43 AM
- adding quotes to adress any location the dll may be (I use Program Files)
- Changing the setting from the command file:
Quote
:==============================
: Custom Settings
:==============================
REGEDIT /S "%DLLPATH%Change Settings.reg"
Of course, an .inf file would be even better. But then, I should just use the installable versions of the extensions and shut my mouth !
#84
Posted 07 March 2006 - 12:36 PM
sweet work ive just finally gotten around to reading this thread through and youve done some impressive works, ill definalty be using a good few of your extensions
thank you
#85
Posted 08 March 2006 - 08:33 AM
any help would be appreciated
thanks
#86
Posted 08 March 2006 - 12:46 PM
Lost Soul, on Mar 8 2006, 03:33 PM, said:
I think you don't need any dll.
Just adding the following lines to your regtweaks should be fine:
[HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers]
[HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers\Copy To]
@="{C2FBB630-2971-11D1-A18C-00C04FD75D13}"
[HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers\Move To]
@="{C2FBB631-2971-11D1-A18C-00C04FD75D13}"
#87
Posted 08 March 2006 - 12:56 PM
Lost Soul, on Mar 8 2006, 04:33 PM, said:
No DLL required for these two, only a few reg keys.
Look at this post :
http://www.msfn.org/board/index.php?showto...02entry373502
and take the first one !
#88
Posted 08 March 2006 - 01:34 PM
#89
Posted 09 March 2006 - 03:10 AM
@ slimzky & Djé - Those don't sound too hard; both are basically just modifications of code from existing builds. Unfortunately, I've been having some problems with my main pc and had to reformat, so I haven't had time to reinstall Visual Studio yet.... but when I get time, I'll see what I can do. Also "AutomationSample.cmd" has been fixed and pack has been updated. As for the inf, I've never written one before but if you want to make one to throw in, I'll include it and give you credit.
This post has been edited by spiritpyre: 09 March 2006 - 03:10 AM
#90
Posted 09 March 2006 - 07:31 PM
beared anonymous, on Mar 9 0031, 10:10 AM, said:
[Edit]I'm a bad programmer so those are currently in repair...
Here are french and english version of an .inf installer/uninstaller for your extensions.
It is easily customizable both for choosing the dll you want to use and for adapting it to other languages.
Features:
- copy the dlls in a folder inside 'Program Files'
- register the selected dlls (default to all)
- install custom strings for the toggle extensions
- add ability to register/unregister any dll (right-click)
(commands are localizable)
- add a full uninstaller for the above features in the add/delete progs control panel.
I tested it Ok on 2 machines but I'm an INF n00b so bug reports and improvement suggestions are welcome.
For usage, please RTFM at the beginning of the file.
This post has been edited by Djé: 10 March 2006 - 12:53 PM
#91
Posted 10 March 2006 - 03:12 AM
Djé, on Mar 10 2006, 03:31 AM, said:
Are you meaning that these 3 lines do something on your machines :
[Strings] toto="This string is the default language" [Strings.040c] toto="Les français de france verront cette ligne mais pas ceux du canada ou de suisse" [Strings.000c] toto="Les français pas de france verront cette ligne mais pas les français de france parce que les français de france ont une section rien que pour eux" [Strings.0409] toto="This string is seen only by american english and not by british"
The "magic numbers" i used in this example are the standard "LANG_ID", in hexadecimal.
(note that this trick works with non-ANSI langs, east-asian or arabic for example, providing you save your INF in unicode)
#92
Posted 10 March 2006 - 12:49 PM
And not only those but the inf file did not get copied correctly to the inf directory...So uninstall was anyway impossible (install works fine, btw).
Dumb me, I changed something after the test... and that test was poorly done: only checking if the entry disapeared from 'Add/remove prog' control panel.
I'm currently investigating that 'flag in [CopyAllFiles]' issue. Did not know about that before. Noob!
If I use the [Strings.localID] thing, I need to repeat ALL the strings (not only the localized ones) in ALL the localized sections.
I though it would be clearer and easier to maintain by using different files. But this can be discussed.
well, wait for my second try !
This post has been edited by Djé: 10 March 2006 - 08:16 PM
#93
Posted 10 March 2006 - 08:11 PM
Almost all(!) my knowledge of inf file originate in the inf file inside JDOE's CABTOOL installer, (of course, later I went to gosh's, msdn and so on) so thanks to him.
And indeed, he uses succesfully the copyfiles section with no flag and the very DelDir stuff I used to delete the dir.
I just copied on him.
But for this, he does NOT use setupapi as an inf engine (or whatever it's called) for uninstalling.
He uses advpack.dll which does the job fine with this syntax.
I did not know the difference and replaced the later by the former, which broke the uninstaller.
Well, it would have broke it if it was not already broken by the inf copying error
I can't manage to register/unregister the dlls using advpack.dll.
I tried the normal (documented) syntax and a hacked one copied on the DelDirs section syntax.
But with no result.
Anyone knows something or a good documentation source about advpack.dll inf syntax?
You may ask 'why not just use setupapi, then?'
Well, uninstalling wise, I found a couple of issues (again, any help to solve them is welcome):
-when unregistering the dll, it did not 'release' them so I couldn't delete them before next reboot.
-no such directive to delete the installation dir (I guess that's what Delprat is talkin' about).
#94
Posted 11 March 2006 - 05:20 AM
Djé, on Mar 10 2006, 08:49 PM, said:
I though it would be clearer and easier to maintain by using different files. But this can be discussed.
An alternative would be to use only localizable strings ; 'coz different files makes more code to maintain
(egg or chicken ? well both are ill now...)
Djé, on Mar 11 2006, 04:11 AM, said:
I tried the normal (documented) syntax and a hacked one copied on the DelDirs section syntax.
But with no result.
Anyone knows something or a good documentation source about advpack.dll inf syntax?
You may ask 'why not just use setupapi, then?'
Well, uninstalling wise, I found a couple of issues (again, any help to solve them is welcome):
-when unregistering the dll, it did not 'release' them so I couldn't delete them before next reboot.
-no such directive to delete the installation dir (I guess that's what Delprat is talkin' about).
I'm interested about advpack.dll inf syntax too... Even about Setupapi documentation.
About your last questions :
-> I presume that shell extensions are always in use by explorer.exe ? (try this : register your SHX, use it once, unregister it, log off, log on, try to delete the DLL with an INF and sometimes it works
-> there's a workaround to delete a directory with setupapi, under two conditions :
1/ the directory must be empty (no files nor subfolders) (it can be emptied by the INF file)
2/ it must reside on the same drive as the "All Users" profile ; or on the same drive as the "current user" profile (which is the same drive most times)
3/ you must know the real name of the folder (no variables)
See the attached zip file for an example : "install" setupapi.inf ; look at your "program files" dir ; then remove it with ARP control panel
Attached File(s)
-
SetupAPI.zip (701bytes)
Number of downloads: 62
This post has been edited by Delprat: 11 March 2006 - 09:53 AM
#95
Posted 11 March 2006 - 10:41 PM
Delprat, on Mar 11 2006, 12:20 PM, said:
But due to the 'unregistering' problem, the whole thing is still unpractical.
What is strange is that when uregistering by hand (regsvr32 /u), there is no such file locking. You can delete the dll right after.
For now I'm just frustrated
An enhanced version of spiritpyre's Install.cmd with regs and files addition and deletion integrated.
Right now, I'm busy on something else, but I may try to do it later if it's not done by someone else before.
#96
Posted 16 March 2006 - 08:25 AM
Same features:
- copy the dlls in a folder inside 'Program Files'
- register the dlls
- install custom settings for the toggle extensions
- add ability to register/unregister any dll (right-click)
- add a full uninstaller for the above features in the add/delete progs control panel.
- Easy customization (language, install location, unattended or not, installed features, etc.)
@SpiritPyre: this is meant to replace your Install.cmd, but only if you think it is worth replacing
Usage:
-Edit it to your needs
-put it (with the dlls you want to use) in a folder on your cd (or anywhere) and simply run it.
-no need for any other .reg file.
this time, I've been a little more serious testing it on my computers
Attached File(s)
-
FullInstall.cmd (5.69K)
Number of downloads: 75
This post has been edited by Djé: 16 March 2006 - 12:18 PM
#97
Posted 16 March 2006 - 08:50 AM
#98
Posted 23 March 2006 - 11:02 PM
Just thought about something. Maybe you want one day to make one single shellex out of the two toggle ones, using a submenu. And maybe you could also add a third a third item to toggle system files view.
I'd see it like that :
Toggle - Extensions
--------- Hidden files
--------- System files
This post has been edited by eidenk: 23 March 2006 - 11:03 PM
#99
Posted 28 March 2006 - 10:59 PM
Delprat, on Mar 11 2006, 01:20 PM, said:
Here you are! I just grabbed jdoe on another thread and he posted back a zip full of documentation about advanced inf syntax. Invaluable.
With a nice trick to register/unregisterr dlls. Incredible.
With many new items available. Marvelous.
Thanks god.
OK. Now, that said, I don't have so much time to write again the inf, and the batch is working fine.



Help


Back to top








