Вопрос How to automatically add /silent to unins000.exe (program folder)?

nizcoz

Участник
How to automatically add /silent to unins000.exe (program folder)? What I need is to run the uninstall in silent mode when I double-click the unins000.exe file.
 

nik1967

Old Men
Проверенный
nizcoz,
Код:
[Setup]
AppName=My Program
AppVerName=My Program v 1.5
DefaultDirName={pf}\My Program
OutputDir=.

[Code]
function InitializeUninstall:boolean;
var
  rcode: Integer;
begin
    if not UninstallSilent then begin
        Exec(ExpandConstant('{uninstallexe}'), '/SILENT', '', SW_SHOW, ewNoWait, RCode);
        Exit;
    end;
    Result:= True;
end;
 
Сверху