Results 1 to 3 of 3

Thread: QtService on Windows as Non-Interactive

  1. #1
    Join Date
    Feb 2010
    Location
    Sydney, Australia
    Posts
    111
    Thanks
    18
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default QtService on Windows as Non-Interactive

    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?

  2. #2
    Join Date
    Feb 2010
    Location
    Sydney, Australia
    Posts
    111
    Thanks
    18
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QtService on Windows as Non-Interactive

    The answer is to install the service as "NT AUTHORITY\LocalService", i.e. myservice.exe -i "NT AUTHORITY\LocalService".

  3. #3
    Join Date
    Feb 2010
    Location
    Sydney, Australia
    Posts
    111
    Thanks
    18
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QtService on Windows as Non-Interactive

    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).

Similar Threads

  1. Help on QTcpSocket, QTService and QThread
    By josecarlosmissias in forum Newbie
    Replies: 1
    Last Post: 12th November 2009, 16:37
  2. Interactive QProcess
    By inktomi in forum Qt Programming
    Replies: 3
    Last Post: 8th August 2009, 18:21
  3. qsqlquery interactive?
    By lamera in forum Newbie
    Replies: 2
    Last Post: 7th September 2008, 10:09
  4. QtService fails to start
    By a550ee in forum Qt Programming
    Replies: 1
    Last Post: 9th November 2006, 13:34
  5. QtService and GAC loadable dll
    By stevey in forum Qt Programming
    Replies: 3
    Last Post: 17th July 2006, 03:39

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.