FIX: "Cannot write into file 'dqs_certificate.cer'" error when you install Data Quality Services on a different path than the instance of SQL Server 2012

Microsoft distributes Microsoft SQL Server 2012 fixes as one downloadable file. Because the fixes are cumulative, each new release contains all the hotfixes and all the security fixes that were included with the previous SQL Server 2012 fix release.
Symptoms
When you try to install the SQL Server Data Quality Services (DQS) feature on a computer that has Microsoft SQL Server 2012 installed, the DQS installation fails. Additionally, you receive the following error message:
Msg 15240, Level 16, State 2, Server Server Name, Line 1
Cannot write into file 'dqs_certificate.cer'. Verify that you have write permissions, that the file path is valid, and that the file does not already exist.

This issue occurs when the following conditions are true:
  • The DQS installation path differs from the installation path of the instance of SQL Server.
  • A dqs_certificate.cer file already exists in the DQS installation path.

    Note This file may already exist if a previous installation attempt failed.
Cause
This issue occurs because DQSInstaller.exe uses the file path of the master database .mdf file when it tries to delete the dqs_certificate.cer file during the installation process. This operation will fail if the DQS installation path differs from the installation path of the instance of SQL Server.
Resolution

Service pack information for SQL Server 2012

To resolve this problem, obtain the latest service pack for SQL Server 2012. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
2755533 How to obtain the latest service pack for SQL Server 2012
Status
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
More information
For more information about how to install DQS, go to the following MSDN website: For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:
824684 Description of the standard terminology that is used to describe Microsoft software updates
Properties

Article ID: 2774434 - Last Review: 11/19/2012 19:25:00 - Revision: 3.0

Microsoft SQL Server 2012 Service Pack 1, Microsoft SQL Server 2012 Enterprise, Microsoft SQL Server 2012 Business Intelligence

  • kbtshoot kbqfe kbfix kbsurveynew kbexpertiseadvanced KB2774434
Feedback