如何在创新设置中使用ShellExec()中的/ SILENT选项

时间:2014-10-15 10:19:46

标签: install inno-setup uninstall silent silent-installer

我正在使用ShellExec在我的安装程序中卸载应用程序。我希望ShellExec()在没有用户交互的情况下以静默方式工作。

这是我的代码:

procedure UninstallMyApp;
var
  ErrorCode: Integer;
  begin
    ShellExec('runas', 'rundll32.exe', 'dfshim.dll,ShArpMaintain MyApp.application, Culture=neutral, PublicKeyToken=0000000000000000, processorArchitecture=x86', '', SW_HIDE, ewWaitUntilTerminated, ErrorCode);                   
  end;

/ S,/ qn,/ SILENT用于静默安装但是我很困惑,如何在此代码中添加/ SILENT选项?

0 个答案:

没有答案