Install service from Explorer

Here's a cute little hack.  Install this in your Registry and you'll be able to install and uninstall managed Windows Service applications with a right-click in Explorer.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\exefile\shell\Install Service (1.1)]

[HKEY_CLASSES_ROOT\exefile\shell\Install Service (1.1)\command]
@="c:\\windows\\Microsoft.NET\\Framework\\v1.1.4322\\installutil.exe \"%1\""

[HKEY_CLASSES_ROOT\exefile\shell\Uninstall Service (1.1)]

[HKEY_CLASSES_ROOT\exefile\shell\Uninstall Service (1.1)\command]
@="c:\\windows\\Microsoft.NET\\Framework\\v1.1.4322\\installutil.exe /u \"%1\""

Apologies for the c:\windows.  I can't remember how to expand the system path.  I thought you did “%SystemRoot%”, but that's not working for me.  Anyone have any ideas?

2 Comments

Comments have been disabled for this content.