I'm trying to start a certain Windows service from [Code]
section (in AfterInstall
handler). When it fails to start I'd like to rollback installation.
Typically when setup is ran from UI, WizardForm.Close()
does the job right. But when installer is executed with /verysilent
command line parameter, WizardForm.Close
seems to be ignored and installation goes on.
I also tried Abort()
, suggested by other article on Stack Overflow, but it works just like any other suppressiblemsgbox and doesn't break the installation.
Is there any way to conditionally abort installation in /verysilent
mode?