The behavior observed is "normal", I mean, the executable is started, halted by Deep Screen for further analysis, continues to run (or restarted).
This is actually extremely confusing since it happens after like 4 seconds. Also when closing the application in between those 4 seconds the application starts again, and that's really unacceptable.
I have already thought of some issue with my cpu/hardware, memory leak in inno setup, a corrupted system, or whatever and it took me like 2 hours to figure it out. This is unnacceptable for people using my Software and even for me.
So apart from the setup being restarted instead of continued, the second half of the problem is actually that avast doesn't inform the user that it's applying a DeepScreen analysis, as it does for Auto-Sandbox for example.
Since DeepScreen is quite intrusive and enalbed by default, I would suggest to at least pop-up a ballon-tip at the taskbar. Otherwise this can be really confusing. I was already thinking of reinstalling Windows if I hadn't find the cause (simply becasue I thought something is corrupted in my system)....
I just created 3 setup files and there was no problem at all with avast (deepscreen) .
This is weird but thanks for trying! Could you try the exact same code I used? (dummy code):
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
#define MyAppName "My Program"
#define MyAppVersion "1.5"
#define MyAppPublisher "My Company, Inc."
#define MyAppURL "http://www.example.com/"
#define MyAppExeName "MyProg.exe"
[Setup]
; NOTE: The value of AppId uniquely identifies this application.
; Do not use the same AppId value in installers for other applications.
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
AppId={{08A7E90F-4AC3-4342-8AC2-FE6F73061E12}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={pf}\{#MyAppName}
DefaultGroupName={#MyAppName}
OutputDir=C:\Users\Nuc1eoN\Desktop
OutputBaseFilename=setup
Compression=lzma
SolidCompression=no
[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
[Files]
Source: "C:\Program Files (x86)\Inno Setup 5\Examples\MyProg.exe"; DestDir: "{app}"; Flags: ignoreversion
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
[Icons]
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
If you still can't trigger it, please try my compiled executable:
https://mega.co.nz/#!DA9GTL4K!pSlLtQVQE90DsOsvm8dSnrZh-k0wzkQgyDcbebXeWg8I hope you guys will be able to reproduce it.