Updating from a windows service - Advanced Installer Community
garryb
Posts: 2
Joined: Mon Feb 10, 2020 10:11 am

Updating from a windows service

Hi,

I would like to update my windows service by using the updater.
This works great up to the point where I need to show the user a UI. A windows service cannot start an exe that has a UI. This is due to the fact that services do not run as a user, so it is unable to interact with the desktop.

So what happens is I use Process.start and the updater exe runs as a service and no UI is shown.

Is there any way around this? I also tried a silent installer but that doesn't work either
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Updating from a windows service

Hi and welcome to our forums.

Sorry for the delayed reply.

Indeed, starting with Windows Vista, the services cannot interact with desktop anymore. Please give me more details about your scenario, so I can think of an workaround for you.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
garryb
Posts: 2
Joined: Mon Feb 10, 2020 10:11 am

Re: Updating from a windows service

I have a service that runs that I would like to update silently. Basically so the user doesn't know there is an update
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Updating from a windows service

Hi,

In order to update your application silently, you can implement the steps described in the "How to handle updates without elevation" article.

Let me know if you have other questions.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”