Hi, This might be by design, but thought I would ask.
We have fresh machines we are deploying to. We deploy a windows service as part of our deploy, we do this with a deploy script in our nuget package because we are using topshelf with .net core. We also have a preDeploy script in our nuget package which is there to stop and uninstall our service prior to deploying the new version.
When we first deploy, the preDeploy script does not run, which is ok. But, our first deploy failed while running a later step to integration test things because of config issues with the service, but the service was installed. When we deploy again, the predeploy script does not run, so our service does not get uninstalled, so the new service does not get deployed because it is already there.
Obviously we could put the code to uninstall our service in the deploy script to solve this. Just wondering if this is by design or subtle bug?