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
- :
- Disabling Cancel button - InstallScriptMSI project
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
Aug 20, 2009
03:04 PM
Disabling Cancel button - InstallScriptMSI project
I've been strugling with this for long. I want to disable cancel button during deferred custom action (which launch external application). I tried different ways like Disable(CANCELBUTTON), StatusDlg.EnableWindow() as well as custom action to disable the cancel butting but nothing worked.
I am using Installshield 2008.
Is there a way to do achieve this?
Thanks in advance.
I am using Installshield 2008.
Is there a way to do achieve this?
Thanks in advance.
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Aug 20, 2009
11:44 PM
You can achieve this by the following piece of code:
hCtrl = GetDlgItem(hwndDlg, BUTTON_CANCEL);
EnableWindow( hCtrl,FALSE);
hCtrl = GetDlgItem(hwndDlg, BUTTON_CANCEL);
EnableWindow( hCtrl,FALSE);
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Aug 21, 2009
09:15 AM
Thanks for the reply Chandan.
How to get handle of StatusEX dialog window?
How to get handle of StatusEX dialog window?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Sep 25, 2009
02:44 AM
Use FindWindow() function
