cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
fisher
Level 2

How to disable close button?

Hi.
I have made a project.
and I wan't to disable the close button .
Anyone who can tell me is it possible to do this?

Thank u.
Labels (1)
0 Kudos
(4) Replies
pv7721
Level 20

I'm not sure this is possible. But why would you like to do that in the first place?!? End-users should be allowed to close the installer if they changed their mind.
0 Kudos
fisher
Level 2

yes,you are right.

but sometimes, when i click the 「×」 button while it's installing,the link of uninstallation will disappear.
0 Kudos
pv7721
Level 20

Well, this is quite normal, as the Uninstallation can be created only when ALL items have been installed (so IA would know how to proceed with Uninstalling those components in the reverse order). So if you click close BEFORE the end, the Uninstall doesn't get a chance to be created (or just the link to it).
0 Kudos
premak
Level 3

Hi,
Please try the following. This is working on a custom dialog.

#define DIALOG_NAME_1 "ShowMsg"
HWND hWindow;
LONG lstyle;

hWindow = CmdGetHwndDlg(DIALOG_NAME_1);
lstyle = GetWindowLong(hWindow,GWL_STYLE);
lstyle &= ~0x00080000L;
SetWindowLong(hWindow ,GWL_STYLE,lstyle);
0 Kudos