Inno setup 卸载后如何打开网站?

Inno setup 卸载后如何打开网站?,inno-setup,Inno Setup,我可以在软件安装后打开网站,如下所示: [Run] Filename: "http://example.com"; Flags: shellexec runasoriginaluser 有没有办法在软件卸载后打开另一个网站?要在卸载完成后打开一个不可执行的文件,我会这样写: [Code] const UninstSiteURL = 'http://example.com/uninstalled.html'; procedure CurUninstallStepChanged(CurUni

我可以在软件安装后打开网站,如下所示:

[Run]
Filename: "http://example.com"; Flags: shellexec runasoriginaluser

有没有办法在软件卸载后打开另一个网站?

要在卸载完成后打开一个不可执行的文件,我会这样写:

[Code]
const
  UninstSiteURL = 'http://example.com/uninstalled.html';

procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep);
var
  ErrorCode: Integer;
begin
  if CurUninstallStep = usDone then
    ShellExec('', UninstSiteURL, '', '', SW_SHOW, ewNoWait, ErrorCode);
end;

确保此选项是可选的。如果我想摆脱一些东西,我最不希望它做的事情就是弹出它的网站问我为什么。