EDIT – Hamachi has updated their licensing, allowing you to run Hamachi as a service for free. Check here for more information.
So… I still love Hamachi, it’s the best thing since sliced bread in my opinion, but there are times when we want or need it to run as a service, or without the user knowing it. LogMeIn has made this “run as a Service” a feature of their premium version for Windows XP, which will set you back $39.00 per year. Here’s a way of getting around this litle connundrum.
A word of warning, this procedure alters the registry. Improper changes can result in a screwed up system, so don’t touch anything I don’t tell you to touch, mmkay? 😛
You’ll need three things:
Install Hamachi as normally, but don’t run it yet. I copy the srvany.exe and instsrv.exe executables to my system32 folder, but you can put them wherever you like (just modify the following instructions accordingly). I usually setup the Hamachi account under the Administrator account (not your administrator account, the Administrator account), but you can change this if you wish.
Log into the Administrator account and fire up Hamachi. Set up your networks and accounts as usual, and then save your Hamachi configuration folder. Archive it, save it to another computer, email it to your own GMail account – whatever, just make a backup of this folder. Shutdown Hamachi, and then open a command line by going to Start->Run and typing in cmd. Press the enter key, or OK. In the commandline, type in the following command:
instsrv.exe HamachiService C:Windowssystem32srvany.exe
Open up the Registry Editor (Start–>Run–>regedit.exe–>OK) and navigate to HKLMSYSTEMCurrentControlSetServicesHamachiService. Right-click on the right hand pane and select “New Key” – name it Parameters. In this key, add a new String Value named Application and enter the following as the value:
C:Program FilesHamachihamachi.exe -srvany -config "C:Documents and SettingsAdministratorApplication DataHamachi"
Close the Registry Editor, and open up the Services management page (Start->Run->services.msc). Scroll down until you see HamachiService. Right-click on this entry, and select Start.
That’s it! You should now be connected to all your Hamachi networks without having the window open. The only snag – if you want to make any edits to your network configuration, or if you want to update Hamachi, you’ll have to shutdown the service, log into the Administrator account, and make the changes there.