cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
MiltonNet
Level 4

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.
Labels (1)
0 Kudos
(3) Replies
ChandanOmkar
Level 8

You can achieve this by the following piece of code:

hCtrl = GetDlgItem(hwndDlg, BUTTON_CANCEL);
EnableWindow( hCtrl,FALSE);
0 Kudos
MiltonNet
Level 4

Thanks for the reply Chandan.
How to get handle of StatusEX dialog window?
0 Kudos
hari14singh
Level 5

Use FindWindow() function
0 Kudos