Install Assemblies with one click

Here is a cool registry setting which will make our life little bit easier for installing assemblies in GAC.

Copy and paste the code into a notepad file and save it with extension .reg. Double click on the file and its all done.

-------------------------------------------------------

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\dllfile\shell\GAC-It\command]
@="c:\\windows\\Microsoft.NET\\Framework\\v1.1.4322\\gacutil.exe /i \"%1\""

-------------------------------------------------------

Then open explorer and navigate to your dll, right click on it, for your surprise you'll see a shortcut called GAC-It as shown below. You can put whatever name you want as highlighted in RED in the above script.


Posted Mar 16 2007, 11:26 AM by Nadine Storandt
Filed under: ,

Comments

Damir Dobric wrote re: Install Assemblies with one click
on 03-20-2007 9:34

If you have Windows SDK installed on the machine following value can be used too:

"%sdktools%"\gacutil /i \"%1\"

developers.de is a .Net Community Blog powered by daenet GmbH.