Hi! Great project, but some troubles...
I need to install Hadouken to the specific path (Windows Server Core 2012r2).
At first I downloaded zip, not msi installer, move all files to c:\bin\Hadouken folders and install exe as a service
sc create Hadouken binPath="\"c:\bin\Hadouken\hadouken.exe\" --daemon" DisplayName="Hadouken torrent client" start=delayed-auto
That`s great, but all services have "C:\Windows\System32\" as current directory and Hadouken can not read json configuration file.
After some investigation I have found out "C:\Users\All Users\Hadouken\" as current directory for service and drop all files here.
This is my current variant. It little bit awkward to have two folders except only one.
Second variant is the silent installer. I have used
msiexec.exe /i "C:\temp\hadouken-5.2.0.msi" /L*v msi.log /quiet INSTALLDIR="c:\bin\Hadouken2" HDKN_BITTORRENT_SAVE_PATH_REPLACED="c:\temp" HDKN_DATA_PATH="c:\bin\Hadouken\data" HDKN_HTTP_PORT="888"
but have msi errors connected with SCM
MSI (s) (A0:B8) [17:08:52:499]: Executing op: ServiceInstall(Name=Hadouken,DisplayName=Hadouken,ImagePath=C:\bin\Hadouken\hadouken.exe --daemon,ServiceType=16,StartType=2,ErrorControl=32769,,Dependencies=[~],,,Password=**********,Description=The service for Hadouken BitTorrent client,,)
so no way to install to the specific folder because "install directory" input not provided in the msi GUI.
Third variant: unzip in to specific folder and run in console mode via Win Scheduler (task "start at system starts" - "C:\bin\Hadouken\hadouken.exe > hdkn.log")
The question is: can I make installation in a specific single directory (c:\bin\hadouken for example) and run hadouken as a service?
Thank you!
Igor