Installation into a directory with a long path name

From Dragon Age Toolset Wiki
Revision as of 05:32, 28 November 2009 by Kalgregor (Talk | contribs)

Jump to: navigation, search

MSSQL Express 2005's installer has a limitation that prevents it from installing to a directory path that's longer than 58 characters. Microsoft's Knowledge Base has details here: http://support.microsoft.com/kb/935371

Unfortunately, the default installation path used by Steam goes over this limit. When you hit this error you'll get the error message

"SQL Server Setup failed to execute a command for server configuration. The error was [Microsoft] [SQL Native Client] [SQL Server]Incorrect syntax near '='. "

A workaround has been developed that allows installation to work correctly, however.

Open the file \Steam\steamapps\common\dragon age origins\tools\toolssql\MSSQL.1\MSSQL\Install\Sysdbupg.sql

Find the line [it's near the bottom] that reads:

SELECT @certificate_name = QUOTENAME(@certificate_name, '''')

Replace it with the following line:

SELECT @certificate_name = '''' + REPLACE(@certificate_name, '''', '''''') + ''''

Re-install toolset.

If you can't find these files, you can try doing it while the installation process is ongoing. When the error message above pops up, edit the Sysdbupg.sql file and then click "retry" after you save the modified version. When attempting to save the modified version you may encounter a message saying that the file cannot be saved because it is in use. In this case save the edited file elsewhere with the same name (Sysdbupg.sql), then drag the the modified version into the correct folder and select the copy and replace option. Then click "retry" on the error message.

Alternatively, if you can't find these files due to the \tools\toolssql\ folder only containing one empty folder named Data, you may need to uninstall MSXML6 SP2 (which was improperly installed during a Windows Update) using the Microsoft Windows Installer CleanUp Utility, before reinstalling the toolset.

If you still run into problems, Delete temp_MS_AgentSigningCertificate_database.MDF and LDF from C:\Program Files (x86)\Steam\steamapps\common\dragon age origins\tools\toolssql\MSSQL.1\MSSQL\Data


You may also run into the following error message:

"SQL Server Setup failed to execute a command for server configuration. The error was [Microsoft][SQL Native Client][SQL Server]CREATE DATABASE failed."

This one can be worked around by replacing the Sysdbupg.sql file with a blank file of the same name.

How to edit sql files for the technologically challenged:

Copy the Sysdbupg.sql file to your desktop. Open it with Notepad. You will probably have to select Notepad manually from the list. Make changes. Save to your desktop. Cut/paste the Sysdbupg.sql from your desktop back into its original folder. Choose to replace the file.


Note: BioWare is working on this problem to produce a better workaround than having to edit things on the fly while installing. We may be able to produce a new installer that handles this situation. Hopefully this won't take very long, we thank you for your patience.


Error: "Cannot open file for writing C:\Program Files\BioWare\..."

This is because the folder C:\Program Files\BioWare\ does not exist (for example: you installed Dragon Age from Steam.) Simply create the directory C:\Program Files\BioWare\ then hit retry.

Note: On some machines this path may appear differently. C:\Program Files\Common Files\BioWare\... for example.

Note: On Vista 64, the folder was C:\Program Files (x86)\Common Files\Bioware creating that one worked.

This will not work for everyone! If you're still having problems, please wait for an update.