SQL Server 2008 modify the installation path

A very irritating problem during the installation of SQL Server 2008 is that if you choose the installation path of shared components, you do not follow the default "C:\Program Files\Microsoft SQL Server" path given by Microsoft, and you want to customize the installation path. Will report an error...

For example, I want to change "C:\Program Files\Microsoft SQL Server" to "D:\Program Files\Microsoft SQL Server"

The error details are: "

"The INSTANCESHAREDWOWDIR command line value was not specified. This value must be specified when the INSTANCESHAREDDIR value is specified."

1. If you modify the installation path during installation

For example, I want to change "C:\Program Files\Microsoft  SQL  Server " to "D:\Program Files\Microsoft  SQL  Server "

①First: do not modify the path, use the default installation method, and finally display the path of the ConfigurationFile.ini file when confirming the installation

 

Go to this path and copy the installation configuration file to another path, such as D:\, and then exit the installation (a very important step, don’t wait until it’s installed to know that you want to change it, then you have to uninstall it cleanly before you can start again )

 

②Secondly: use Notepad to open this file, according to actual needs  , search and replace "C:\Program Files\Microsoft  SQL  Server " with "D:\Program Files\Microsoft  SQL  Server " and save

Finally: Go to the installation directory on the command line and start the installation. If it is Vista, remember to run the command line with administrator privileges and enter the following command:

setup.exe /action=Install /configurationfile=D:\ConfigurationFile.ini

Guess you like

Origin blog.csdn.net/weixin_41987016/article/details/108714509