8
votes

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?

1
Can you reduce the script to a minimal example that still reproduces the problem? Also attach a log file (/log command-line switch).Martin Prikryl
I have edited my question with a simpler example. I still have this problem (I have this problem even when I create an new installer with the wizard).wyllyjon
Can you show us an English error message? (The actual English error message, not your translation of it).Martin Prikryl
I work with inno Studio, so I found the log conf only in "setup option" which logs only compilation. And in the log, there is no error... I only have an error when launching the installerwyllyjon
It seems that something went wrong with this line : SetupIconFile=D:\apps\vivemus\vivemus.com\resources\img\favicon.ico. Without this line, I don't have the error anymore... I don't kown why, because if I have a fully qualified pathname, and according to the documentation, it would have worked.... Any idea of the problem ?wyllyjon

1 Answers

11
votes

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.