问题:如何使用inno安装程序安装程序跳过扫描防病毒以创建Mysql服务???
我有用于在Windows服务中创建Mysql Service的inno安装程序安装程序,但是已经安装了防病毒装置面临创建mysql服务的问题。如何跳过反病毒和Windows防火墙的扫描。
下面是Code。
#define MyAppName "NEW_MYSQL"
#define MyAppVersion "1.0"
#define MyAppPublisher "NEW_MYSQL"
#define MyAppExeName "NEW_MYSQL.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={{36057E04-FDC0-4FE0-AB77-23F18955F60C}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={code:GetProgramFiles}\{#MyAppName}
DisableDirPage=yes
DefaultGroupName=NEW_MYSQL
LicenseFile=C:\Users\hyva\Desktop\NEW_MYSQL\NEW_MYSQL_license.txt
DisableProgramGroupPage=yes
OutputDir=C:\Users\hyva\Desktop\NEW_MYSQL\Setupfiles
OutputBaseFilename=setup_New_e
Compression=lzma
SolidCompression=yes
PrivilegesRequired=admin
[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
[Files]
Source: "C:\Users\hyva\Desktop\NEW_MYSQL\NEW_MYSQL\*"; DestDir: "{pf32}\NEW_MYSQL"; Flags: ignoreversion recursesubdirs createallsubdirs
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
[Run]
Filename: {sys}\sc.exe; Parameters: "stop MySQL" ; Flags: runhidden
Filename: {pf32}\NEW_MYSQL\bin\MySQLInstanceConfig.exe; Parameters:"-i -q ""-l{pf32}\NEW_MYSQL\mysql_install_log.txt"" ""-nMySQL Server 5.5"" ""-p{pf32}\NEW_MYSQL\"" -v5.5.23 ""-t{pf32}\NEW_MYSQL\my-template.ini"" ""-c{pf32}\NEW_MYSQL\my.ini"" ServerType=SERVER DatabaseType=MIXED Port=3319 StrictMode=yes ConnectionCount=15 Charset=utf8 ServiceName=MySQL-HA AddBinToPath=yes RootPassword=myserver"; WorkingDir: {pf32}\NEW_MYSQL\bin\; StatusMsg: Configuring MySQL services; Description: Configuring MySQL Service; Flags: runhidden
Filename: net.exe;Parameters: start MySQL;StatusMsg: Starting MySQL Server;Flags: runhidden
[UninstallRun]
Filename: {sys}\sc.exe; Parameters: "stop MySQL" ; Flags: runhidden
Filename: {sys}\sc.exe; Parameters: "delete MySQL" ; Flags: runhidden