我正在使用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选项?