How to open a web site after uninstallation?

2019-07-27 02:27发布

问题:

I can open a web site after software installation like this:

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

Is there a way to open another web site after software uninstallation?

回答1:

For opening a non-executable file after the uninstallation finishes I would write this:

[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;


标签: inno-setup