Inno-Setup: Post Install open link: antivirus alert while opening a link

user524824 picture user524824 · Mar 21, 2011 · Viewed 9.4k times · Source

I am building an installer with inno setup that opens a link to a website after installation Currently this looks like this:

[Run]
Filename: iexplore.exe; Parameters: http://doma.in/uri/ Verb: open; Flags: shellexec runasoriginaluser

This works fine, except that testing revealed that for example Kaskersky raises a warning that an unauthorized process (the setup) started an authorized process (internet explorer) that wants to access the encrypted passwords. Which could (of course) be a threat. As I just want to open a browser to display the url it would be great to get rid of this message.

This are the options I evaluated so far

  • Unfortnuately there is no difference between Run Filename: iexplore and the Pascal Script Shell-Exec('open' ...)?
  • Perhaps it is somehow possible to pass the operating system a message to create a new instance of the webbrowser without creating it as a child process (i.e. without triggering the warning) of the setup.
  • As I am doing this for statistics it would be sufficient to call the winhttp library from within the setup. but this is not feasible, because the user could have a firewall installed (see HTTP POST request in Inno Setup Script).
  • Does it help to sign the setup? Would this suppress the warning?

Answer

Mike Sutton picture Mike Sutton · Jan 8, 2012

The following works for me:

[Run]
Filename: "http://doma.in/uri/"; Flags: shellexec runasoriginaluser