My installer creates services with the following command in Inno Setup:
Filename: {sys}\sc.exe; Check: IsAdminLoggedOn; Parameters: "create Example start= delayed-auto binPath= ""{app}\Example.exe"""; Flags: runhidden
This line works in all Windows besides Windows XP because the delayed-auto
startup type is not supported in Windows XP.
I need to use the delayed-auto
startup type for two reasons.
- My service needs to always run on the background without user intervention, which means that the service must automatically start on boot.
- My service depends on other basic windows services and cannot run without them, therefor I use the
delayed-auto
to start only after all the basic services are up.
So can I create a service on Windows XP that has a startup type similar to that of delayed-auto
and if not then what are the alternatives?