1

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?

TLama
  • 75,147
  • 17
  • 214
  • 392
Xel Naga
  • 826
  • 11
  • 28

1 Answers1

3

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;
TLama
  • 75,147
  • 17
  • 214
  • 392
  • Be sure to make this optional. If I want to get rid of something, the last thing I want it doing is popping up its website asking me why. – Deanna Jul 06 '15 at 14:12
  • Note that this opens the browser with Administrator permissions, if the uninstaller is running elevated. You should avoid that. See [How to open a web site after uninstallation in non-elevated mode?](https://stackoverflow.com/q/63614641/850848) – Martin Prikryl Jul 25 '21 at 06:01