ewelin
Oct 19, 2009, 11:55 PM
Well I was tinkering with my WHS unit tonight as I moved my magicjack onto it and set that up to run as a service. So I got to thinking I should try getting HCA to run as a service again.... So here's what I've got so far...
I had my WHS unit setup to autologin to the admin account and start HCA very similar as outlined in this thread.
First thing I did was shut down HCA. I then used the great AnyService Installer (Review (http://www.wegotserved.com/2008/12/08/add-in-review-anyservice-installer/) -- Download (http://forum.wegotserved.com/index.php?/topic/8566-any-service-installer/)) to create the service. I had the Windows Server 2003 Resource Kit already installed so I just directed AnyService Installer to it's installed path. I then set the application as C:\Program Files\Home Control Assistant Plus\Program\HCA.exe. I named my service simply HCA-Service. I then switched the Mode to Advanced so I could enter in the Administrator user name and password. I then clicked create and the service was created. Since it's using the user name and password, it'll load the file just as it was last loaded by the Administrator account. I then started the service and waited a few minutes for a schedule task to fire and it did without issue, right on time.
Now... unfortunately when the service is running, you can not interact with HCA, you have to shut down the service, and start HCA normally. To overcome this I thought a simple bat file which would shut down the service with net stop HCA-Service then start the HCA program. This isn't ideal... but it works. Just have to remember to shut down HCA and start the HCA-Service. Also one has to make sure to adjust their programs to perform correctly upon HCA restart as you'll be restart HCA more frequently this way.
I tried setting HCA-Service to use the local system and have it interact with the desktop, but when I load my HCA file, the HCA icon in the taskbar would disappear. I was able to load a test HCA file I had but when viewing folders, the devices appeared to have the WHS's desktop background as the icon. So it was completely unusable.
So now I guess I just need to figure out an easy way of interacting with HCA when I RDP in
I had my WHS unit setup to autologin to the admin account and start HCA very similar as outlined in this thread.
First thing I did was shut down HCA. I then used the great AnyService Installer (Review (http://www.wegotserved.com/2008/12/08/add-in-review-anyservice-installer/) -- Download (http://forum.wegotserved.com/index.php?/topic/8566-any-service-installer/)) to create the service. I had the Windows Server 2003 Resource Kit already installed so I just directed AnyService Installer to it's installed path. I then set the application as C:\Program Files\Home Control Assistant Plus\Program\HCA.exe. I named my service simply HCA-Service. I then switched the Mode to Advanced so I could enter in the Administrator user name and password. I then clicked create and the service was created. Since it's using the user name and password, it'll load the file just as it was last loaded by the Administrator account. I then started the service and waited a few minutes for a schedule task to fire and it did without issue, right on time.
Now... unfortunately when the service is running, you can not interact with HCA, you have to shut down the service, and start HCA normally. To overcome this I thought a simple bat file which would shut down the service with net stop HCA-Service then start the HCA program. This isn't ideal... but it works. Just have to remember to shut down HCA and start the HCA-Service. Also one has to make sure to adjust their programs to perform correctly upon HCA restart as you'll be restart HCA more frequently this way.
I tried setting HCA-Service to use the local system and have it interact with the desktop, but when I load my HCA file, the HCA icon in the taskbar would disappear. I was able to load a test HCA file I had but when viewing folders, the devices appeared to have the WHS's desktop background as the icon. So it was completely unusable.
So now I guess I just need to figure out an easy way of interacting with HCA when I RDP in