This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Disable the cancel option via the "X" button in the titlebar, during installation
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jun 09, 2009
02:58 AM
Disable the cancel option via the "X" button in the titlebar, during installation
Hi,
I'm using basic MSI project.
I want to prevent any option to cancel the installation in the "Setup Progress" dialog.
I can hide the "cancel" button, but the user can still press the "X" button in the dialog's titlebar.
Is it possible to hide/disable this "X" in the titlebar?
If not, is there any way to override the default behavior and not to cancel the installation? (via some custom action for example)
Thanks!
I'm using basic MSI project.
I want to prevent any option to cancel the installation in the "Setup Progress" dialog.
I can hide the "cancel" button, but the user can still press the "X" button in the dialog's titlebar.
Is it possible to hide/disable this "X" in the titlebar?
If not, is there any way to override the default behavior and not to cancel the installation? (via some custom action for example)
Thanks!
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jun 09, 2009
05:09 AM
Ok.
This can be done by the folloing custom action code:
This can be done by the folloing custom action code:
HWND hwndSetupDialog = GetForegroundWindow();
HMENU hwndMenu = GetSystemMenu(hwndSetupDialog, FALSE);
RemoveMenu(hwndMenu, SC_CLOSE, MF_DISABLED | MF_BYCOMMAND);
DrawMenuBar(hwndSetupDialog);