http://codesite.atwebpages.com/PureBASIC/Able2.html
Windows service
- Kwai chang caine
- Always Here

- Posts: 5524
- Joined: Sun Nov 05, 2006 11:42 pm
- Location: Lyon - France
Re: Windows service
The happiness is a road...Not a destination
- Pierre Bellisle
- User

- Posts: 35
- Joined: Wed Jun 27, 2018 5:12 am
Re: Windows service
It seems that my web server did not like the zip files package.
It is now a .rar file.
To dowload all files together, goto A Windows service that start a GUI application launcher
Rename able.purebasic to able.rar and use purebasic as password.
It is now a .rar file.
To dowload all files together, goto A Windows service that start a GUI application launcher
Rename able.purebasic to able.rar and use purebasic as password.
Re: Windows service
Can anyone clarify the purpose and usage of the manifest and resources files in this service application please? I'm finding that the code at http://codesite.atwebpages.com/PowerBAS ... ServiceGUI causes a Windows service error.
Compiling it as able.exe, in ASM or C, the service installs, starts, stops and uninstalls successfully, but when stopping, Windows reports that it failed :
By contrast, running as command net stop able reports that it stopped successfully, although it also reports that same error :
Results are identical between Windows 10 64-bit and Windows Server 2016 (latter run entirely as administrator).
Compiling it as able.exe, in ASM or C, the service installs, starts, stops and uninstalls successfully, but when stopping, Windows reports that it failed :
Note that Windows reports : "could not stop" the service, but in fact it stops successfully.Windows could not stop the Able service service on Local Computer. Error 183: Cannot create a file when that file already exists
By contrast, running as command net stop able reports that it stopped successfully, although it also reports that same error :
Code: Select all
net stop able
A system error has occurred.
System error 183 has occurred.
Cannot create a file when that file already exists.
The Able service service was stopped successfully.
-
jakobssystems
- User

- Posts: 12
- Joined: Thu Apr 10, 2025 5:17 pm
Re: Windows service
I cannot directly anser your question, but today I've made my own Windows app SCM "serviceable".
Everyting is within an include file windows_service.pbi to keep my main program clean and uncluttered, maybe you check it out?
https://codeberg.org/tomas-jakobs/rest-api-skeleton
Everyting is within an include file windows_service.pbi to keep my main program clean and uncluttered, maybe you check it out?
https://codeberg.org/tomas-jakobs/rest-api-skeleton
Re: Windows service
Thanks very much for posting on this old requirement, Jakob. No, we didn't use the service wrapper from this thread, as it was buggy.jakobssystems wrote: Mon Apr 21, 2025 5:02 pm I've made my own Windows app SCM "serviceable". Everyting is within an include file windows_service.pbi to keep my main program clean and uncluttered, maybe you check it out?
