Windows Service
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Windows Service
I have created a windows service app with powershell and studio. I have included a few WinForm GUIs to help with configuration etc. I have noticed that now when uninstalling the application it doesn't remove the service from the services list. I can't work out why any help would be appreciated.
Re: Windows Service
Yes I noticed it's only when the service is active. I thought it would shutdown as part of the uninstall process? Is this not the case? hmm might be able to add that as a custom action during uninstall.
Re: Windows Service
If a service cannot be shut down then it cannot be uninstalled.
You cannot run a GUI from a service.
If a service throws an exception it can become hung and cannot be uninstalled. Stop the service and set it to manual. Restart the system and then un install the service.
You cannot run a GUI from a service.
If a service throws an exception it can become hung and cannot be uninstalled. Stop the service and set it to manual. Restart the system and then un install the service.
Re: Windows Service
My Service code runs separate from my GUI code, the GUI code is packaged as part of the MSI.
When I uninstall the Application from Add Remove Programs, you'd think it would stop the service then remove it. But not to worry I'll write the logic to do it.
When I uninstall the Application from Add Remove Programs, you'd think it would stop the service then remove it. But not to worry I'll write the logic to do it.
-
- Posts: 1
- Last visit: Fri Dec 11, 2020 2:15 am
Re: Windows Service
A number of programs cannot be removed while they are running and running. Moreover, it sometimes happens that the program itself seems to be closed, but its process is running (for example, due to an incorrect termination of the application). To find out if your uninstalled application is running, go to the task manager and check.
- JackMayhoffer
- Posts: 3
- Last visit: Fri Dec 11, 2020 4:14 am
Re: Windows Service
A simple system restart would help here, right? If app is uninstalled there simply will not be a service to start after the startup.
- Alexander Riedel
- Posts: 8478
- Last visit: Tue Mar 26, 2024 8:52 am
- Been upvoted: 37 times
Re: Windows Service
Simply restarting can leave you with tons of Windows log entries about trying to start a service that no longer exists.
I assume you created the MSI with PowerShell Studio as well. Did you use the services tab in Script Packager to adjust the settings for your service?
Since you have an expired subscription I am not sure you have that.
I assume you created the MSI with PowerShell Studio as well. Did you use the services tab in Script Packager to adjust the settings for your service?
Since you have an expired subscription I am not sure you have that.
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.