run uninstaller if exec fails
As part of my installation I call execwait to run a c# exe. If this fails the user is notified and I would like to run unnstall. I have tried calling ExecWait "$INSTDIR/uninst.exe", however this then asks the user if they want to cancel (needed for std uninstall), when I don't want to give the user a choice.
I would also like to do this if there is an error in the install generally. I clear errors at the start and can test if there are errors at the end, so I guess the calling of the uninstaller would be the same as the above?