Mysql msi installation for windows 10 x64, change installation folder?

心不动则不痛 提交于 2020-01-06 09:01:22

问题


As the title describes, I run the MSI installation, but Im not being able to change the install directory, I need to change it because my C:\ disk is a 60gb ssd and I only want to use it for the OS.

Theres a way to change the installation path?

Thanks in advance!


回答1:


In theory this should work:

msiexec /i "Path To MSI" INSTALLDIR="D:\New\Installation\Directory" /qb

however if that doesn't work then try:

msiexec /i "Path To MSI" TARGETDIR="D:\New\Installation\Directory" /qb

/qb = basic interface. You can also try /qn for a silent install.

http://helpnet.installshield.com/installshield21helplib/helplibrary/FAQFilesInstallDirs.htm




回答2:


MySql: I don't really know what installer you are using, but a quick peek at the simplest one I could find, seems to indicate that the installation location is defined by INSTALLLOCATION and there is another location called DATALOCATION.

If TARGETDIR or INSTALLDIR did not work (they might), then you could try setting those two location properties as well. Something like this:

msiexec /i MySetup.msi INSTALLLOCATION="D:\MySqlBins" DATALOCATION="D:\MySqlData" /qb

SSD Disk Cleanup Tips: Also want to let you know about this answer which tries to provide a list of ideas for how to deal with very small SSD disks (60GB is a challenge for a developer PC though - sorry to state the obvious): VS 2017 Installation failed.



来源:https://stackoverflow.com/questions/50497857/mysql-msi-installation-for-windows-10-x64-change-installation-folder

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!