1

Is it possible in Inno Setup to enable or hide window close button at uninstall modal window?

enter image description here

The reason is that I'm using VCL Style Inno to style my installer and in first uninstall modal window it uses active close button style when it's actually disabled.

enter image description here

Alexander Smith
  • 369
  • 2
  • 16
  • No you cannot. All you can do is to implement your own version of the message. See my answer to [Using {code:} in \[Messages\] section Inno Setup](http://stackoverflow.com/q/34126752/850848). – Martin Prikryl May 25 '16 at 17:18
  • @MartinPrikryl. Yes, I remember that, thank you. – Alexander Smith May 25 '16 at 17:19
  • What is generating the message box? Is it code that you have access to? Even if not, as long as you have the ability to run arbitrary code before and after, you can install a WH_CBT hook before showing the message box, then once the message box gets created, remove the WS_SYSMENU style, and finally remove the hook after the message box is dismissed. Can't give you any more details, it's been way too long since I built a custom Inno Setup routine. – Cody Gray - on strike May 27 '16 at 06:56

0 Answers0