Windows 2012R2 as a service installation error

Hello
When I try installing Virtualhere as a service on my Windows 2012R2 server i get this error:
VirtualHere Client Usb Sharing service StartService failed, error 2 (cannot find the file specified).

My windows server is a virtual machine hosted on hyper V.
The virtualhere server is on raspberry pi.

I try the installation from the command line (with administrator previlages) using "vhui64.exe -b".
Before that I installed the drivers, the client application works fine.

Do you have any idea what can cause the problem ?

#2

OK, I made some progress. The problem was bad directory name in the service. So I changed it using:
SC CONFIG vhclient binPath= "C:\SomeDirectory\vhui64.EXE"
But anyway Im stuck on error
virtualhere client usb sharing service StartService failed, error 1053
Again, any ideas ?

#3

Allright, I got it. Of course I should have done
SC CONFIG vhclient binPath= "C:\SomeDirectory\vhui64.exe -s -e"

Sorry to bother you. Hopefully my information could help someone.
Regards

#4

To install as a service you just do vhui64.exe -i and thats it. No need to manually do anything. Actually in the latest versions of the client (> 3.9.7) you can just install the service directly from the GUI by right clicking USB Hubs->Install Client as service

#5

And that what I actually did - I tried to install the service from the GUI. But the problem was that the vhui64.exe file was placed in a network share, so that stopped the service from running. So I had to change the dir manually (to a local dir) as I wrote and now everything works like a charm :)
Thank you

#6

Same thing for me when i moved the file (vhui64.exe) to another directory (from /download). 

So i stopped the application, moved the file and then restarted from the new location and then set to start as a service... this seemed to fix it for me.  

[note: I also removed the config file after i moved the file, and before restarting the app from C:\Users\USER-NAME\AppData\Roaming\vhui.ini. Unsure if this was needed... and just incase someone needs replicate what I did in full).