MSFN Forum: Here's some shell extensions... - MSFN Forum

Jump to content



  • 11 Pages +
  • « First
  • 3
  • 4
  • 5
  • 6
  • 7
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

Here's some shell extensions... what's your favorite? :P Rate Topic: ***** 2 Votes

#81 User is offline   slimzky 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 412
  • Joined: 09-February 05
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 25 February 2006 - 01:57 AM

@ spiritpyre, can u post an "UpOneLevel" shell ext for browser? ty


#82 User is offline   Djé 

  • accent artist
  • PipPipPip
  • Group: Members
  • Posts: 359
  • Joined: 10-January 06

Posted 25 February 2006 - 04:54 PM

Thank you very much Spiritpyre. I happen to check this thread today for the 1st time since posting and you've just replied. Lucky Strike !

Your extensions are now working like a charm. My C: drive can now look spotless clean at will :thumbup
May I now request a "CMD prompt here" extension for the folder background? :whistle:

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 User is offline   Djé 

  • accent artist
  • PipPipPip
  • Group: Members
  • Posts: 359
  • Joined: 10-January 06

Posted 04 March 2006 - 05:43 AM

I'd also suggest a minor modification and an improvement to the "AutomationSample.cmd" inside ShExtDlls_1.1:
- adding quotes to adress any location the dll may be (I use Program Files)
- Changing the setting from the command file:

Quote

FOR %%a IN ("%DLLPATH%*.dll") DO regsvr32.exe /s "%%a"

:==============================
: 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 ! :rolleyes:

#84 User is offline   Lost Soul 

  • Snap ... Crackle ... Pop
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,746
  • Joined: 12-December 03

Posted 07 March 2006 - 12:36 PM

@Spiritpyre

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 User is offline   Lost Soul 

  • Snap ... Crackle ... Pop
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,746
  • Joined: 12-December 03

Posted 08 March 2006 - 08:33 AM

can some one help me pls i cant seem to get any dills for the "Copy To' & 'Move To' in Shell Context Menu"

any help would be appreciated

thanks

#86 User is offline   Djé 

  • accent artist
  • PipPipPip
  • Group: Members
  • Posts: 359
  • Joined: 10-January 06

Posted 08 March 2006 - 12:46 PM

View PostLost Soul, on Mar 8 2006, 03:33 PM, said:

can some one help me pls i cant seem to get any dills for the "Copy To' & 'Move To' in Shell Context Menu"

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 User is offline   Delprat 

  • Poll: Why are you reading this ?
  • PipPipPip
  • Group: Members
  • Posts: 481
  • Joined: 18-May 05

Posted 08 March 2006 - 12:56 PM

View PostLost Soul, on Mar 8 2006, 04:33 PM, said:

can some one help me pls i cant seem to get any dills for the "Copy To' & 'Move To' in Shell Context Menu"


No DLL required for these two, only a few reg keys.

Look at this post :
http://www.msfn.org/board/index.php?showto...02&#entry373502

and take the first one !

#88 User is offline   Lost Soul 

  • Snap ... Crackle ... Pop
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,746
  • Joined: 12-December 03

Posted 08 March 2006 - 01:34 PM

@Djé & Delprat thank you, you guys have been a big help

#89 User is offline   spiritpyre 

  • Grand Poobah
  • PipPip
  • Group: Members
  • Posts: 191
  • Joined: 28-April 05

Posted 09 March 2006 - 03:10 AM

@ Lost Soul - thanks. I'm hoping to crank out a lot more but I haven't even been able to finish my latest project because I've been pretty busy offline. here's hopin' though. :D

@ 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 User is offline   Djé 

  • accent artist
  • PipPipPip
  • Group: Members
  • Posts: 359
  • Joined: 10-January 06

Posted 09 March 2006 - 07:31 PM

beared anonymous, on Mar 9 0031, 10:10 AM, said:

Ask and you will obtain.

[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 User is offline   Delprat 

  • Poll: Why are you reading this ?
  • PipPipPip
  • Group: Members
  • Posts: 481
  • Joined: 18-May 05

Posted 10 March 2006 - 03:12 AM

View PostDjé, on Mar 10 2006, 03:31 AM, said:

I tested it Ok on 2 machines


Are you meaning that these 3 lines do something on your machines : :blink:
 
[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 User is offline   Djé 

  • accent artist
  • PipPipPip
  • Group: Members
  • Posts: 359
  • Joined: 10-January 06

Posted 10 March 2006 - 12:49 PM

Well, my bad.
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 User is offline   Djé 

  • accent artist
  • PipPipPip
  • Group: Members
  • Posts: 359
  • Joined: 10-January 06

Posted 10 March 2006 - 08:11 PM

Well, I went back to my textbooks.
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. :whistle:

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 :blushing: and by something else which I am requesting help for solving:

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 User is offline   Delprat 

  • Poll: Why are you reading this ?
  • PipPipPip
  • Group: Members
  • Posts: 481
  • Joined: 18-May 05

Posted 11 March 2006 - 05:20 AM

View PostDjé, on Mar 10 2006, 08:49 PM, said:

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.

An alternative would be to use only localizable strings ; 'coz different files makes more code to maintain :lol:
(egg or chicken ? well both are ill now...)

View PostDjé, on Mar 11 2006, 04:11 AM, said:

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).


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 :wacko: )

-> 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 :thumbup

Attached File(s)


This post has been edited by Delprat: 11 March 2006 - 09:53 AM


#95 User is offline   Djé 

  • accent artist
  • PipPipPip
  • Group: Members
  • Posts: 359
  • Joined: 10-January 06

Posted 11 March 2006 - 10:41 PM

View PostDelprat, on Mar 11 2006, 12:20 PM, said:

See the attached zip file for an example : "install" setupapi.inf
Very nice trick indeed. :thumbup

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 :( with this whole INF thing and I think it would be easier to have just a .cmd installer/uninstaller.
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. :whistle:

#96 User is offline   Djé 

  • accent artist
  • PipPipPip
  • Group: Members
  • Posts: 359
  • Joined: 10-January 06

Posted 16 March 2006 - 08:25 AM

Ousted at the .inf door, let's come back through the .cmd window! :P

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 :blushing:

Attached File(s)


This post has been edited by Djé: 16 March 2006 - 12:18 PM


#97 User is offline   slimzky 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 412
  • Joined: 09-February 05
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 16 March 2006 - 08:50 AM

can someone work on "Up One Level" shell extension? thnx..

#98 User is offline   eidenk 

  • MSFN Addict
  • PipPipPipPipPipPipPip
  • Group: Banned
  • Posts: 1,527
  • Joined: 28-March 05

Posted 23 March 2006 - 11:02 PM

Hi Spiritpyre,

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 User is offline   Djé 

  • accent artist
  • PipPipPip
  • Group: Members
  • Posts: 359
  • Joined: 10-January 06

Posted 28 March 2006 - 10:59 PM

View PostDelprat, on Mar 11 2006, 01:20 PM, said:

I'm interested about advpack.dll inf syntax too...

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. B)

#100 User is offline   slimzky 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 412
  • Joined: 09-February 05
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 28 March 2006 - 11:37 PM

what happened to Spiritpyre? where is he?

Share this topic:


  • 11 Pages +
  • « First
  • 3
  • 4
  • 5
  • 6
  • 7
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

2 User(s) are reading this topic
0 members, 2 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy