我曾经使用以下命令静默安装 wamp:
start /w wampserver3.1.9_x64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /NOCANCEL /DIR="%HOMEDRIVE%\wamp64" /LANG="en"
现在 wamp v3.2.0 默认没有安装 MySQL:
因此此命令不会安装 MySQL:
start /w wampserver3.2.0_x64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /NOCANCEL /DIR="%HOMEDRIVE%\wamp64" /LANG="en"
现在 wamp 有 2 个 MySQL。v8x 和 v5.7x。这些是InnoSetup 选项(wampserver3.2.0_x64.exe /帮助):
我尝试了以下开关,结果是这样的:
未安装MySQL:
/COMPONENTS=mysql5.7.28
/COMPONENTS=mysqlv5.7.28
/COMPONENTS="mysqlv5*"
/COMPONENTS="mysql5*"
/COMPONENTS="mysql 5*"
/COMPONENTS="mysql v5*"
/COMPONENTS="mysqlv5.7.28"
安装 MySql v8.0.18 而不是 v5.7.28:
/COMPONENTS="mysql v5.7.28"
/COMPONENTS="mysql 5.7.28"
/COMPONENTS="mysql"
如何将 MySQL v5.7.x 安装添加到我的命令中?(切换到选择 mysql)
谢谢
答案1
只需输入。
对于 MySQL 5.7.X:/COMPONENTS="MYSQL/MYSQL57"
对于 MySQL 8.0.X:/COMPONENTS="MYSQL/MYSQL80"
请参阅此处的 iis 文件。 源文件 wampserver inno setup。
[Components]
Name: "main"; Description: "Wampmanager"; Types: full custom; Flags: fixed
Name: "APACHE"; Description: "Apache {#WAMPAPACHEVERSION}"; Types: full custom; Flags: fixed
Name: "PHP56"; Description: "PHP {#WAMPPHPVERSION56}"; Types: full custom; Flags: Fixed
Name: "PHP70"; Description: "PHP {#WAMPPHPVERSION70}"; Types: custom
Name: "PHP71"; Description: "PHP {#WAMPPHPVERSION71}"; Types: custom
Name: "PHP72"; Description: "PHP {#WAMPPHPVERSION72}"; Types: custom
Name: "PHP73"; Description: "PHP {#WAMPPHPVERSION73}"; Types: full custom; Flags: Fixed
Name: "PHP74"; Description: "PHP {#WAMPPHPVERSION74}"; Types: full custom; Flags: Fixed
Name: "MARIADB"; Description: "MariaDB"; Types: full custom; Flags: Fixed
Name: "MARIADB/MARIADB104"; Description: "MariaDB {#WAMPMARIADBVERSION104}"; Flags: Exclusive
Name: "MARIADB/MARIADB103"; Description: "MariaDB {#WAMPMARIADBVERSION103}"; Flags: Exclusive
Name: "MYSQL"; Description: "MySQL"; Types: custom
#ifdef WAMP64BIT
Name: "MYSQL/MYSQL80"; Description: "MySQL {#WAMPMYSQLVERSION80}"; Types: custom; Flags: Exclusive
#endif
Name: "MYSQL/MYSQL57"; Description: "MySQL {#WAMPMYSQLVERSION57}"; Types: custom; Flags: Exclusive
Name: "APPS"; Description: "Applications"; Types: full custom; Flags: Fixed
Name: "APPS/PHPMYADMIN"; Description: "PhpMyAdmin {#WAMPPHPMYADMINVERSION}"; Types: full custom; Flags: Fixed
Name: "APPS/ADMINER"; Description: "Adminer {#WAMPADMINERVERSION}"; Types: full custom; Flags: Fixed
Name: "APPS/PHPSYSINFO"; Description: "PhpSysInfo {#WAMPPHPSYSINFOVERSION}"; Types: full custom; Flags: Fixed
例子:
start /wait wampserver3.2.0_x64.exe /DIR="C:\wamp" /VERYSILENT /SUPPRESSMSGBOXES /COMPONENTS="MYSQL/MYSQL57"