I am working on MSI installer which installs and starts the service. It may or may not replace files in use. When it does, there is a prompt to reboot machine at the end of install.
Service runs lengthy initialization on the first startup, which is undesirable to interrupt by shutdown. What I am trying to do is to prevent service from starting until it is known that setup completed, and there will not be a reboot, e.g.: reboot not needed or user selected to postpone reboot.
Bootstrapper is not an option, all must be implemented inside an MSI
Can somebody advise me, what's the best way to do this?