Hamachi As Service

code by coad @ forums.hamachi.cc

@echo This should install Hamachi as a service. Hamachi should be CLOSED when you run it. This batch file assumes that your Hamachi directory is c:\program files\hamachi, and that you have srvany.exe instsrv.exe and this file in your Hamachi directory. It also assumes that you have reg.exe in a default path. It has been tested on windows XPSP2 and Windows 2003 Server SP1. I cannot guarantee that it will work on you system. I cannot guarantee anything about it. You can cancel by hitting CRTL C.
@pause
@echo.
@echo.
@echo -----------------------------------------------------
@echo Installing Hamachi as service "HamachiService"
@echo.
instsrv HamachiService "c:\program files\hamachi\srvany.exe"
@echo.
@echo.
@echo -----------------------------------------------------
@echo Adding additional registry entry,
@echo.
reg add HKLM\System\CurrentControlSet\Services\HamachiService\Parameters /v Application /t REG_SZ /d "c:\program files\hamachi\hamachi.exe -srvany"
@echo.
@echo.
@echo -----------------------------------------------------
@echo Adding entry to let Hamachi interact with the desktop.
@echo.
reg add HKLM\System\CurrentControlSet\Services\HamachiService /v type /t REG_DWORD /d "272" /f
@echo.
@echo.
@echo -----------------------------------------------------
@echo Copying your identity to the system account so that hamachi will start with your identity.
@echo.
reg copy "HKCU\Software\Applied Networking" "HKEY_USERS\.DEFAULT\Software\Applied Networking" /s
@echo.
@echo.
@echo -----------------------------------------------------
@echo Starting Hamachi Service
@echo.
Net Start HamachiService
@echo.
@echo.
@echo Should be finished. You may have to reboot for the tasktray icon to show up. 
@pause

i have not tested this yet.
but people claim that it work.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License