Disable/Enable Cancel button for Basic MSI
Posted 07 May 2012 - 09:50
I'm writing new setup using basic MSI 2012.
My question is how can I enable/disable Cancel button in dialog.
When I click on 'Remove' command in Uninstall dialog, the Remove command execute install Script function that uninstall third parties software.
During the uninstall process of the third parties, I would like to disable the Cancel button and when the uninstall terminated then enable the Cancel button.
It seems to me, that I need to write code at the beginning of the function which disable the Cancel button and in the end of the function to enable the Cancel button.
Posted 09 May 2012 - 15:41
Posted 09 May 2012 - 18:19
If that doesn't work you may need to dispable the Canel button alltogether, not just for this one custom action.
Posted 10 May 2012 - 15:32
I can't believe there is no way to control dialog's button from install script basic MSI, but you're the expert and I trust you! :-)
Posted 10 May 2012 - 15:44
What I can tell you is: There's no built in function in InstallScript for that purpose (the Enable/Disable functions only work for InstallScript dialogs). Since the dialog is displayed by the Windows Installer engine and the InstallScript action is running in the InstallScript runtime engine, there's no direct connection between the two. You could try sending messages to the Windows Installer eingine to see if that works.