Hi,
Disabling the Cancel button is not possible during an uninstall, but you can hide it, using a VBScript or C++ DLL Custom Action. For example, you can add the following VBScript CA under "InstallExecuteSequence -> Begin" (or before your first Custom Action):
Code: Select all
Function HideCancelButton()
Dim Record
Const msiMessageTypeCommonData = &H0B000000
Set Record = Installer.CreateRecord(2)
Record.IntegerData(1) = 2
Record.IntegerData(2) = 0
Session.Message msiMessageTypeCommonData, Record
' return success
HideCancelButton = 1
Exit Function
End Function
For more details, see:
http://msdn2.microsoft.com/en-us/librar ... S.85).aspx
Hope this helps.
Regards,
Ionut