A somewhat hacky workaround for this is to save the state of the services that ought to be disabled in config settings, then in the configure hook stop and disable those services based on the state in the config settings.
This isn't a full fix because after a refresh, all services are still started (and the install is still aborted if any of them fail), but at least with this workaround after the refresh tasks run the services that were disabled will be disabled again. This assumes that the services can at least "somewhat start" such that the installation doesn't get aborted however.
A somewhat hacky workaround for this is to save the state of the services that ought to be disabled in config settings, then in the configure hook stop and disable those services based on the state in the config settings.
This isn't a full fix because after a refresh, all services are still started (and the install is still aborted if any of them fail), but at least with this workaround after the refresh tasks run the services that were disabled will be disabled again. This assumes that the services can at least "somewhat start" such that the installation doesn't get aborted however.