?
Solved

Unable to execute external GUI program from Windows service

Posted on 2008-10-28
1
Medium Priority
?
738 Views
Last Modified: 2009-07-29
Hi,
I have a Java server application that should run on a remote computer and receive control messages from a client. When the message is received, server should execute an external command like opening a notepad. In general the application is used for testing and all GUI operations will be done through the Autoit3 application.
I have converted my server application into a windows service using Java Service Wrapper by http://wrapper.tanukisoftware.org.
After running successfully the service I can communicate with it from the remote client, the commands are being executed but all GUI related operations (like opening notepad) are not happening. When I am running this on a local machine everything works fine. The machine that runs the server is logged using user that has administrator rights. For the windows service I have set the "allow service to interact with desktop" option, so this is not the problem here.

--
Thanks in advance for the help
0
Comment
Question by:aquasw
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 3

Accepted Solution

by:
caylt earned 1500 total points
ID: 22987263
Hello,

By default, services use a noninteractive window station and cannot interact with the user. However, an interactive service can display a user interface and receive user input.

These need to be set up slightly differently:

Interactive Services: http://msdn.microsoft.com/en-us/library/ms683502(VS.85).aspx

Note that Microsoft warns against running Interactive Services in an elevated security context, such as the LocalSystem account.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, you will read about the trends across the human resources departments for the upcoming year. Some of them include improving employee experience, adopting new technologies, using HR software to its full extent, and integrating artifi…
In this article I discuss my selections of the Top Four free Outlook OST File Viewers available. Open, view and read even damaged OST files by using these tools. They all provide a clear preview of all data such as emails, notes, tasks, calendars, e…
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question