Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ShellExecuteEx error 299 when launching installer created with Inno Setup

I use Inno Setup to create my first installer.
But when the installer is launched, before having the windows screen asking the permission to execute this file, I get a window with this error:

ShellExecuteEx a échoué : code 299
Seule une partie d'une requete ReadProcessMemory ou WriteProcessMemory a été effectuée.

English (from WinError.h):

ERROR_PARTIAL_COPY - Only part of a ReadProcessMemory or WriteProcessMemory request was completed.

And then the installer is launched. But, after about 10 sec, it launches again on its own.

Here is my iss file:

; Script generated by the Inno Script Studio Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define MyAppName "Facturation"
#define MyAppVersion "1.0"
#define MyAppPublisher "JoWe"
#define MyAppURL "http://www.jowe.fr/"
#define MyAppExeName "facturation.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={{B8DF3E83-4622-48AB-9DD5-C75D4951BEDE}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={pf}\Facturation
DefaultGroupName=Facturation
OutputDir=E:\Téléchargements
OutputBaseFilename=setup
SetupIconFile=D:\apps\vivemus\vivemus.com\resources\img\favicon.ico
Compression=lzma
SolidCompression=yes

[Languages]
Name: "french"; MessagesFile: "compiler:Languages\French.isl"

[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked

[Files]
Source: "D:\Logiciels\phpdesktop-chrome-31.8-php-5.6.1\phpdesktop-chrome.exe"; DestDir: "{app}"; Flags: ignoreversion

[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

I have this problem even when I create an new installer with the wizard. I have added a log to the Inno Studio, but it only have the log of the compilation, where there is no error.

Does anyone know where this problem comes from?

like image 323
wyllyjon Avatar asked Feb 01 '16 12:02

wyllyjon


1 Answers

A co-worker ran into the same issue. It turned out that the Virus scan, Avast, was the cause. Disabling the virus scan, then installer ran without any issue.

like image 188
Tuan Avatar answered Oct 15 '22 16:10

Tuan