PDA

View Full Version : QtService on Windows as Non-Interactive



stefanadelbert
23rd April 2010, 01:34
I've created a QtService for Windows which runs under Local System Account, but when I install it it has the "Allow service to interact with desktop" checked. This causes certain problems that I would like to avoid. How can I install the service to run under Local System Account, but be non-interactive?

stefanadelbert
23rd April 2010, 01:35
The answer is to install the service as "NT AUTHORITY\LocalService", i.e. myservice.exe -i "NT AUTHORITY\LocalService".

stefanadelbert
26th April 2010, 03:27
This can cause problem with security, so you might want to install the service as user "NT AUTHORITY\LocalSystem".

Also, bear in mind that the working directory for a service is C:\Widnows\System32, at least it was for me (Windows 7).