Install folder

58 views
Skip to first unread message

ib

unread,
Oct 22, 2015, 11:05:51 AM10/22/15
to Hadouken BitTorrent client

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

Viktor Elofsson

unread,
Oct 26, 2015, 3:15:10 AM10/26/15
to Hadouken BitTorrent client
Hi,

Your first example should work correctly if you pass the "--config" option as well, i.e (--config "C:\bin\Hadouken\hadouken.json"). This will read the configuration file from the specified path instead of the current directory.

Let me know how it works!

ib

unread,
Oct 26, 2015, 10:43:56 AM10/26/15
to Hadouken BitTorrent client
It works! Thanks a lot!
I think some instructions would be good in the FAQ for command line users like Server Core geek

1. Download Hadouken ZIP version and unzip in folder like "c:\bin\Hadouken"
2. Manually configure hadouken.json: port, directories etc
3. Set Hadouken as service, specify --daemon and --config, remember about \" special sign!
sc create Hadouken binPath="\"c:\bin\Hadouken\hadouken.exe\" --daemon --config "\"C:\bin\Hadouken\hadouken.json\" DisplayName="Hadouken torrent client" start=delayed-auto
4. Open firewall
netsh advfirewall firewall add rule name="Hdkn rules" dir=in action=allow program="c:\bin\Hadouken\hadouken.exe" enable=yes 
5. Start service
sc start Hadouken







понедельник, 26 октября 2015 г., 10:15:10 UTC+3 пользователь Viktor Elofsson написал:
Reply all
Reply to author
Forward
0 new messages