The process cannot access the file 'C:Windowssystem32perf-MSSQL11.SQLEXPRESSOME-sqlagtctr.dll'

SQL server express sp1升级到sp3时遇到

TITLE: Microsoft SQL Server 2012  Setup
------------------------------

The following error has occurred:

The process cannot access the file 'C:Windowssystem32perf-MSSQL11.SQLEXPRESSOME-sqlagtctr.dll' because it is being used by another process.

Click 'Retry' to retry the failed action, or click 'Cancel' to cancel this action and continue setup.

For help, click: http://go.microsoft.com/fwlink?LinkID=20476&ProdName=Microsoft%20SQL%20Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.6020.0&EvtType=0x60797DC7%25400x24C2C4E7

------------------------------
BUTTONS:

&Retry
Cancel
------------------------------

解决方法:

rename

c:windowssystem32perf-MSSQL11.SQLEXPRESSOME-sqlagtctr.dll
and
c:windowsSysWOW64perf-MSSQL11.SQLEXPRESSOME-sqlagtctr.dll

to

c:windowssystem32OLD_perf-MSSQL11.SQLEXPRESSOME-sqlagtctr.dll
and
c:windowsSysWOW64OLD_perf-MSSQL11.SQLEXPRESSOME-sqlagtctr.dll

retry

原文地址:https://www.cnblogs.com/godspeed034/p/7404175.html