Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 690165
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T02:24:28+00:00 2026-05-14T02:24:28+00:00

I am trying to make a service that spawns a desktop application, and then

  • 0

I am trying to make a service that spawns a desktop application, and then watches to make sure it restarts again if it is closed. .

I would like it to basically spawn the process and then forget about it, allowing to act like a normal interactive application. (Apparently this is much easier to do in XP and before, but I need this for XP, Vista, and 7)

My problem now is that either it shows up invisible if I use process.start() with desktop interactive checked, and if I directly spawn a form it asks “Do you REALLY want to do this?!” and then the whole screen goes blank EXCEPT for my program.

I just want this to be an inoffensive background app. I have the app working well, I just need to figure out how to spawn it from a service without all the trouble.

I am finding all of this stuff that says “Don’t make services that have UI”, but first off this was a requirement that was given to me. (Boss does not want it to be a scheduled task) Also, I noticed that the Task scheduler is itself a service, and it does not have any problem spawning user interactive applications. Why can’t I do that too?

What am I doing wrong?

UPDATE:
Thanks for all the useful info. Was able to convince my boss that this wasn’t possible to achieve based on the session 0 isolation, so I marked that one as the answer and gave upvotes to everyone who gave useful info. Thanks again! 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T02:24:28+00:00Added an answer on May 14, 2026 at 2:24 am

    As of Windows Vista (and consequently Windows 7), services cannot directly interact with the user/desktop for security reasons. Dialogs and other forms that are spawned from a service are shown in Session 0 while your users are logged into Session 1. For more on this, read the Session 0 Isolation section here. In short, calling Process.Start() from a Windows service on Windows 7 is going to cause issues.

    You can still interact with the user. You just have to do so indirectly, as described here. I hope that points you in the right direction.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following web service that allows me uploading files: [WebService(Namespace = http://tempuri.org/)]
I'm working in VB.Net and I'm trying to make a piece of code more
Let's say we have a custom backup service that follows the rsync approach suggested
I know that variations on this question have been asked, but I've tried all
Recently google introduced push-to-device service, but it's only available 2.2 and up. I need
I am having some trouble creating a request to this WSDL that works; it
I just wanted some input on a project that I'm working on. Basically, I'm
XML confuses me sometimes, but I'm trying to get this figured out. What the
I realise this question has been asking before, but I've yet to find an
As the question states - I want to send a binary file to a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.