Wednesday, July 23, 2008

Adding a 'Send to Gac' option to the shortcut menu

When working on assemblies that are deployed to the GAC, copying a new version to the GAC is something you do several times a day.

To speed this process up, having a 'send to gac' option on the context menu of a dll file can be very handy.

Use the following reg file to add the 'send to gac' option to the context menu. Note that also an 'open' option is added without a command specified. This is to have a default (i.e. doubleclick) action to avoid sending a dll to the GAC when you accidentally doubleclick on it.

The path of the gacutil.exe utility may differ. You might prefer to add the location of the gacutil.exe utility to the PATH environment variabele and simply use @="gacutil.exe /i \"%1\"" as the command.

Windows Registry Editor Version 5.00 
[HKEY_CLASSES_ROOT\dllfile\shell]
@="Open"
[HKEY_CLASSES_ROOT\dllfile\shell\Open]
@="&Open"
[HKEY_CLASSES_ROOT\dllfile\shell\Open\command]
@=""
[HKEY_CLASSES_ROOT\dllfile\shell\Send to GAC]
@="Send to &Gac"
[HKEY_CLASSES_ROOT\dllfile\shell\Send to GAC\command]
@="\"C:\\Program Files\\Microsoft SDKs\\Windows\\v6.0A\\Bin\\gacutil.exe\" /i \"%1\""

Thursday, July 10, 2008

Zeta Resource Editor

This is a free, open source utility application that enables you to edit string resources from multiple different resource files together inside one single data grid. See the website here