Disable /SILENT and /VERYSILENT uninstall in Inno Setup

Posted on April 4, 2015 at 11:41 am

Disable the option to silently uninstall your application:

function InitializeUninstall(): Boolean;
begin
  // Default to OK
  result := true;
 
  // If it's in silent mode, exit
  if UninstallSilent() then
  begin
    MsgBox('This setup doesn''t support silent uninstallation.', mbInformation, MB_OK);
    result := false;
  end;
end;

References:

Inno Setup Pascal Scripting: UninstallSilent
Disable silent and verysilent uninstall in Inno Setup

Other Posts

Updated Posts