PerfLib 2.0 counter removal failed with exit code 2. Command line: C:\Windows\system32\unlodctr.exe /m:hkengperfctr.xml from directory C:\Program Files\Microsoft SQL Server\150\Shared\.

Komal Komal
1
Reputation point
I am trying to install Mysql 2019 express in custom.........but it is showing this error everytime.........i have tried many different ways to resolve this issue but nothing worked.........plz help me in resolving it
{count} votes
is my txt file visible in the below comment?
No, there is no file visible. Please don't include the file in a post, but attach it. Please also attach Summary.txt.
Can you also please clarify what you mean with "in custom" in your original post?
Also, let us know which OS you have.
TO clarify, as Erland said, you need to use to the option Attach in order to add files
171740-summary-laptop-qunpbq1e-20220202-172011.txt
here is the txt file
171791-summary.txt
by custom I mean this
Hi @Komal Komal ,
We have not received a response from you. Did the reply could help you? If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. By doing so, it will benefit all community members who are having this similar issue. Your contribution is highly appreciated.
Best regards,
Seeya
Sign in to comment
4 answers
Sort by: Most helpful
Hi @Komal Komal ,
Welcome to Microsoft Q&A!
After seeing your file path, I assume that you are having problems with the SQL Server installation process.
Did you try to uninstall and reinstall it multiple times?
This error may be caused by you not uninstalling SQL Server cleanly and reinstalling it.
Please follow the below steps to remove all components of previous installed SQL Server completely:
--HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server
--HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer
Finally, please use an administrator account to reinstall SQL Server on your computer(Right click->run as administrator).
Also you can look at this: Fix problems that block programs from being installed or removed
If I misunderstood you, please feel free to let me know.
Best regards,
Seeya
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
I notice in the logs that the following component were already installed: SQL Browser, SQL Writer, SQL Client Connectivity SDK,SQL Client Connectivity.
These are shared component which does not require uninstall before adding instance, but better to clean everything usually.
I notice that you try to install Database Engine Services, SQL Server Replication, and the Full-Text which are the component that return the error description: Invalid command line argument.
(1) Try to install only the database engine (you can add other features after the installation_
(2) Do not install from online as you did!
Download the installation media and install from the local file
Note! don't forget to restart the machine before you start the installation and use the OS administrator for the installation
I am installing from the local file only and how to install only database engine services?
Sign in to comment
Hi,
Not according to your screenshot!
The file that you download from the site is not the SQL Server installation file but the online installation file:
https://www.microsoft.com/en-us/sql-server/sql-server-downloads
You can check this size of the file and find that it is only a few MB
According to your screenshot you are using this file and NOT the SQL Server media
In your screenshot you can notice there are three options. The third one is what you should do: Download Media
Next, you have option to choose which the media which you need according to the features you want to use.
The first option will download only the SQL Server Engine
If you don't need Full Text service and reporting service then you do not need to download the file that include these features. Select the first option
Option 1: As explain above you can download the media which include only the database engine feature without the full text and reporting (file should be about 255 MB)
Option 2: Even if you download the file which include these features, you can install only the database Engine (File is above 750 MB)).
When you execute the installation media (not the online installation but the media which you download), then you can this window:
Click on the first option to install new SQL Server instance and follow the steps of the installation, until you get to the following step: Feature Selection
Here you can select which feature you want to install or add to previous installed server
Click on "Unselect All" to clean the selection from all features
and select only "Database Engine Service"
This will install SQL Server minimum installation without extra features (which can add in the future)
Note! Don't forget to execute the installation as administrator or using one of the OS administrators
Sign in to comment
I'm trying to install Microsoft SQL Server developer edition some of the instance features are failed to install and I tried the above answers methods but still getting the same error message.
Detailed results:
Feature: Database Engine Services
Status: Failed
Reason for failure: An error occurred during the setup process of the feature.
Next Step: Use the following information to resolve the error, and then try the setup process again.
Component name: SQL Server Database Engine Services Instance Features
Component error code: 1639
Sign in to comment
I too faced a similar error and situation for one of my customer, and the best possible solution is to remove the existing database engine and reinstall with a named instance.
Teria um passo a passo de como executar para corrigir esse erro ? Já tentei de tudo aqui e não consigo finalizar a instalação.
Sign in to comment
Activity