How to open a web site after uninstallation?

后端 未结 1 1795
自闭症患者
自闭症患者 2021-01-15 21:27

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

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

Is

1条回答
  •  梦毁少年i
    2021-01-15 21:50

    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;
    

    0 讨论(0)
提交回复
热议问题