2015-07-21 98 views

回答

0

您可以使用「運行可執行文件或批處理文件」操作運行任何第三方安裝程序。

MySQL的安裝有可調用這樣的安靜模式:

msiexec /i "path to msi file" /qn INSTALLDIR="mysql installation dir" 

對於「運行可執行文件或批處理文件」,你必須在「可執行文件」屬性設置爲

${installer:sys.system32Dir}\msiexec 

和 「參數」 屬性(在 「...」 編輯器)

${installer:sys.installationDir}\mysql.msi 
/qn 
INSTALLDIR=${installer:sys.programGroupDir}\mysql 

如果添加了MYS ql msi文件添加到頂層的分發樹中,並將其命名爲「mysql.msi」,並且如果要將其安裝到%PROGRAMFILES%\mysql

配置實例可以使用MysqlInstanceConfig.exe幫助程序完成,請參閱https://dev.mysql.com/doc/refman/5.1/en/mysql-config-wizard-cmdline.html以獲取更多信息。