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

  • Автор темы Автор темы nizcoz
  • Дата начала Дата начала

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.
 
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;
 
Назад
Сверху