Shaitan00 Posted September 18, 2009 Posted September 18, 2009 I need to find a reliable way to update a running Windows Service (Service.exe). The service is run under the LocalSystem account whereas the logged-in user is in a non-admin User account. My current solution would be as follows: - The Service.exe checks for updates (files) regularily - When an update it found it starts another service (Launcher.exe) that would stop the Service.exe, copy over the files, restart Service.exe, then stop itself After doing some online-reading and from some of my previous forum posts I beleive this would be the appropriate solution - but before I go ahead I wanted to check with all the guru's and see if I am forgetting something important or if there is a better way. I did read-up on some method of self-updating (loading & unloading assemblies, etc...) but it just seemed very unsure and I need this to be as robust as possible - if it fails it means someone needs to manually intervene. Any help or hints would be much appreciated. Thanks, Quote
Administrators PlausiblyDamp Posted September 18, 2009 Administrators Posted September 18, 2009 Personally I can't see any other way realistically to update a service automatically without user intervention, the only issue you may need to worry about is if the launcher.exe needs updating :D Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.