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?
/log
command-line switch). – ImplausibilityShellExecuteEx
, then you should include the code that launches it. Chances are quite good it has nothing to do with the setup and everything to do with your call toShellExecuteEx
. – StacystadholderShellExecuteEx
that the main installer uses to launch the child installer. – Implausibilitysetup.exe
(main installer) contains an inner installer that the main installer extracts to a temporary folder and launches it usingShellExecuteEx
. But you are right, the error can come from the Inno Studio too. So @Andonis do you get the error when you run the installer from command-line/Explorer? Or only when you run it from Inno Studio? – Implausibility.ico
file with us? – Implausibility