Page 2 of 2

Re: Windows service

Posted: Wed Dec 30, 2020 5:05 pm
by Kwai chang caine
Thanks a lot that works now with the link 8)
http://codesite.atwebpages.com/PureBASIC/Able2.html

Re: Windows service

Posted: Sun Jan 14, 2024 9:31 am
by Pierre Bellisle
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.

Re: Windows service

Posted: Wed Apr 17, 2024 8:36 am
by PBJim
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 :
Windows could not stop the Able service service on Local Computer. Error 183: Cannot create a file when that file already exists
Note that Windows reports : "could not stop" the service, but in fact it stops successfully.

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.
Results are identical between Windows 10 64-bit and Windows Server 2016 (latter run entirely as administrator).

Re: Windows service

Posted: Mon Apr 21, 2025 5:02 pm
by jakobssystems
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

Re: Windows service

Posted: Tue Apr 22, 2025 7:52 am
by PBJim
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?
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.