This week we had a situation where our setup did not install our necessary windows services on an upgrade execution, because the ourservice.exe file behind the service had a lower version than the old uninstalled one, and was not installed. That is a expected behavoiur. What we did not expect was, that the setup has not thrown any error during execution because of a failed service installation action.
So we digged a little bit deeper into that issue.
We found out that the option "the service is vital for installation" was not active on this service, so we activated it.
In our expectation the setup should throw an error now, during service installation.
But that is not the case. The setup still runs successfully and the file and the service is missing.
Within the msi log we can see, that ServiceInstall(name=ourservice.exe) is not called. For all our other services it is called.
Could it be that msi does not run the ourservice.exe service install step, because the file behind is missing, and so it does not even matter if we activate the vital option or not? Or do we misunderstand how this option should work?
Is there potentially any other possibilty to produce a setup error if a service cannot be installed? Or is there even a AI problem?
Many questions sorry. I hope you can help.