Hi,
I dont want to give the option to the user of cancelling during uninstallation. I can disable it if launched from the msi from the cancel button conditions. Can someone please tell me how i can disable it on the progress window if the user launches it from Add/Remove programs?
Thanks
Mahesh
This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
How to disable Cancel button?
Started by
Puttam
, Oct 21 2002 12:58
1 reply to this topic
Posted 20 December 2002 - 08:12
Hello mahesh,
I also wanted to do the same action. Installshield help could give me code to DISABLE THE CANCEL BUTTON.This is it
declare following variables in a custom action
HWND hRec,hProgressRec;
number nRes;
// following code enables cancel button
hRec = MsiCreateRecord(2);
hProgressRec = MsiCreateRecord(3);
MsiRecordSetInteger(hRec,1,2);
MsiRecordSetInteger(hRec,2,0);
nRes = MsiProcessMessage(hMSI, INSTALLMESSAGE_COMMONDATA, hRec);
// DO the actions which u would like to do
//While the actions are in progress, Cancel will be disabled
// follwing code enables cancel button
MsiRecordSetInteger(hRec,1,2);
MsiRecordSetInteger(hRec,2,1);
nRes = MsiProcessMessage(hMSI, INSTALLMESSAGE_COMMONDATA, hRec);
However after u use this code , cancel button vanishes.
i have no workaround for this...See if this suits.
Smita
I also wanted to do the same action. Installshield help could give me code to DISABLE THE CANCEL BUTTON.This is it
declare following variables in a custom action
HWND hRec,hProgressRec;
number nRes;
// following code enables cancel button
hRec = MsiCreateRecord(2);
hProgressRec = MsiCreateRecord(3);
MsiRecordSetInteger(hRec,1,2);
MsiRecordSetInteger(hRec,2,0);
nRes = MsiProcessMessage(hMSI, INSTALLMESSAGE_COMMONDATA, hRec);
// DO the actions which u would like to do
//While the actions are in progress, Cancel will be disabled
// follwing code enables cancel button
MsiRecordSetInteger(hRec,1,2);
MsiRecordSetInteger(hRec,2,1);
nRes = MsiProcessMessage(hMSI, INSTALLMESSAGE_COMMONDATA, hRec);
However after u use this code , cancel button vanishes.
i have no workaround for this...See if this suits.
Smita