Symptoms
Assume that you install Microsoft SQL Server 2014 Analysis Services (SSAS 2014) by using SysPrep in order to prepare a stand-alone instance (the Prepare Image step). During the configuration of the instance (the Complete Image step), you set a non-default root directory, such as D:\. In this situation, when you try to complete the image, you receive the following error message:
Inner exception type: System.IO.FileNotFoundException
Message: <Disk Name>:\Program Files\Microsoft SQL Server\MSAS12.SYSPREPSQL\OLAP\bin\Counters\msmdctr.ini HResult : 0x80070002 Stack: Microsoft.SqlServer.Configuration.Sco.PerformanceCounter.RegisterPerformanceCounterCore(String libraryFileName, String openFunction, String collectionFunction, String closeFunction, String symbolInstallPath, String counterPrefixServiceName) Microsoft.SqlServer.Configuration.Sco.PerformanceCounter.RegisterPerformanceCounter(String libraryFileName, String openFunction, String collectionFunction, String closeFunction, String symbolInstallPath, String counterPrefixServiceName)Resolution
The issue was first fixed in the following cumulative update of SQL Server.
Cumulative Update 3 for SQL Server 2014 /en-us/help/2984923
Each new cumulative update for SQL Server contains all the hotfixes and all the security fixes that were included with the previous cumulative update. Check out the latest cumulative updates for SQL Server:
More Information
For more information about installing SQL Server 2014 by using SysPrep, go to the following MSDN site: Install SQL Server 2014 Using SysPrep
Workaround
To work around this issue, copy the "Counters" folder from the root directory where the image is installed to the default root directory, and then start the wizard again.
Status
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.