Inno-Setup: Post Set an open link: anti-virus warning when opening a link

I am creating an installer with the inno configuration that opens a link to the site after installation. Currently it looks like this:

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

This works fine, except that testing showed that, for example, Kaskersky warns that an unauthorized process (setup) has launched an authorized process (Internet Explorer) that wants to access encrypted passwords. What can (of course) be a threat. Since I just want to open a browser to display the URL, it would be great to get rid of this message.

These are the parameters that I have evaluated so far.

  • Unfortunately there is no difference between Run Filename: iexplore and Pascal Script Shell-Exec ('open' ...)?
  • Perhaps in some way it is possible to transmit a message to the operating system to create a new instance of the web browser without creating it as a child process (i.e. without triggering a warning) of the installation.
  • As I do this for statistics, it will be enough to call the winhttp library from the settings. but this is not possible because the user can set up a firewall (see the HTTP POST request in Inno Setup Script ).
  • Does this help sign the setup? Will this suppress the warning?
+4
source share
3 answers

The following works for me:

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

at the end of your iss file:

 [Code] procedure CurStepChanged(CurStep: TSetupStep); var ErrCode: integer; begin if (CurStep=ssDone) then begin ShellExec('open', 'http://your.app.url/', '', '', SW_SHOW, ewNoWait, ErrCode); end; end; 
+4
source

What Mike Sutton pointed out was essentially correct, but you need to add postinstall to the flags. This causes it to start after configuration is complete. In addition, you need a Description to tell the finished settings screen what to display for this check box.

 [Run] Filename: "http://doma.in/uri/"; Flags: shellexec runasoriginaluser postinstall; Description: "Open the url." 

You can also consider the unchecked flag if you want the option to be enabled, instead of failing.

+4
source

Source: https://habr.com/ru/post/1344568/


All Articles