How to disable the Close button (borderstyle)?
I want to combine that with hiding "About Setup" command from system menu:
Inno Setup - BorderIcons dropdown menu
How to disable the Close button (borderstyle)?
I want to combine that with hiding "About Setup" command from system menu:
Inno Setup - BorderIcons dropdown menu
Use
EnableMenuItem
WinAPI function:You have to call the
DisableCloseButton
later than from theInitializeWizard
event function.There maybe a better place to call it, but for a simplicity you can call it from
CurPageChanged
:But note that you need to keep the code to hide "About Setup" command in
InitializeWizard
as that needs to be called only once (and it works there correctly).The screenshot shows both codes combined: