我使用Inno安装程序来创建我的第一个安装程序。
但是,当启动安装程序时,在windows屏幕请求执行该文件的权限之前,我会得到一个包含以下错误的窗口:
ShellExecuteEx aéchoué:代码299 Seule une partie d'une requete ou WriteProcessMemory aétéeffectuée。
英文(来自WinError.h):
ERROR_PARTIAL_COPY -只完成了ReadProcessMemory或WriteProcessMemory请求的一部分。
然后启动安装程序。但是,大约10秒后,它又自行发射了。
这是我的iss文件:
; 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即使我用向导创建了一个新的安装程序,我也有这个问题。我已经向Inno Studio添加了一个日志,但是它只有编译的日志,没有错误。
有人知道这个问题是从哪里来的吗?
发布于 2016-10-03 18:24:49
一位同事遇到了同样的问题。事实证明,病毒扫描是造成这一疾病的原因。禁用病毒扫描,然后安装程序运行,没有任何问题。
https://stackoverflow.com/questions/35130522
复制相似问题