Skip to content
This repository has been archived by the owner on Jan 28, 2023. It is now read-only.

Cannot uninstall Haxm #452

Open
dioulos opened this issue May 6, 2022 · 6 comments
Open

Cannot uninstall Haxm #452

dioulos opened this issue May 6, 2022 · 6 comments

Comments

@dioulos
Copy link

dioulos commented May 6, 2022

I am trying to install the latest version of haxm.
I currently have version 7.6.5 and try to install 7.7.1
I tried first to uninstall the previous version but it says "systems requirements are not satisfied"
image
My original issue was to start the haxm as for some reason it stopped but this did not work so I am thinking there is an issue with the software (which I installed using Android studio).

I also tried switching on and off Hyper V but it still didnt work.

Any ideas?

@wcwang
Copy link
Contributor

wcwang commented May 7, 2022

Thanks for your feedback. Could you run below command to disable Hyper-V in an elevated Command Prompt and then restart Windows?

bcdedit /set hypervisorlaunchtype off

@dioulos
Copy link
Author

dioulos commented May 7, 2022

I just tried the command line and restarted Windows....then I tried to remove Haxm but it did not work....I tried to restart haxm but it also did not work

@dioulos
Copy link
Author

dioulos commented May 9, 2022

I was able to uninstall it by opening Android Studio -> SDK Manager --> SDK Tools --> uncheck HAXM -> follow the unistall process.

So I guess since I installed HAXM via Android Studio....I could not be allowed to uninstall it using a different procedure as Android Studio must have had a reference pointing to the software.

image

@wayne-ma
Copy link
Contributor

I am trying to install the latest version of haxm. I currently have version 7.6.5 and try to install 7.7.1 I tried first to uninstall the previous version but it says "systems requirements are not satisfied" image My original issue was to start the haxm as for some reason it stopped but this did not work so I am thinking there is an issue with the software (which I installed using Android studio).

I also tried switching on and off Hyper V but it still didnt work.

Any ideas?

Ma

I am trying to install the latest version of haxm. I currently have version 7.6.5 and try to install 7.7.1 I tried first to uninstall the previous version but it says "systems requirements are not satisfied" image My original issue was to start the haxm as for some reason it stopped but this did not work so I am thinking there is an issue with the software (which I installed using Android studio).

I also tried switching on and off Hyper V but it still didnt work.

Any ideas?

Maybe you can install haxm v7.7.1 directly without uninstall v7.6.5, it can overwrite the old version when installing a new one.

@Kuldeep-sahu6260
Copy link

same error

@Topkek-190
Copy link

Topkek-190 commented Dec 6, 2022

Uninstall without disabling Hyper-V

SHORT METHOD (Steps to generate the exe yourself detailed in next section)

Download checktool.zip, extract, then copy the extracted checktool.exe to %SYSTEMDRIVE%\Program Files\Intel\HAXM

LONG METHOD (steps for generating executable in SHORT METHOD for paranoid people)

If we go to "%SYSTEMDRIVE%\Program Files\Intel\HAXM, we'll find executables uninstall.exe and checktool.exe. If we run

checktool.exe -v

We get our system info

CPU vendor          *  GenuineIntel
Intel64 supported   *  Yes
VMX supported       -  No
VMX enabled         -  No
EPT supported       -  No
NX supported        *  Yes
NX enabled          *  Yes
Hyper-V disabled    -  No
OS version          *  Windows 10.0.19044
OS architecture     *  x86_64
Guest unoccupied    *  Yes. 0 guest(s)

The offending line being

Hyper-V disabled    -  No

What you need to do is create a new checktool.exe that outputs

Hyper-V disabled    -  Yes

To make this easy, we'll use a BAT2EXE converter. The one that works in our case is Advanced Bat 2 EXE

Download and install the program, then open it from the Start Menu/Desktop
Then paste in the edit bat Window

@echo off
echo CPU vendor          *  GenuineIntel
echo Intel64 supported   *  Yes
echo VMX supported       -  No
echo VMX enabled         -  No
echo EPT supported       -  No
echo NX supported        *  Yes
echo NX enabled          *  Yes
echo Hyper-V disabled    -  Yes
echo OS version          *  Windows 10.0.19044
echo OS architecture     *  x86_64
echo Guest unoccupied    *  Yes. 0 guest(s)

Then press Ctrl+B or Click on FILE>Build EXE. Then press BUILD EXE in the dialog box.
Save the exe with the name checktool.exe, then move the generated checktool.exe to
"%SYSTEMDRIVE%\Program Files\Intel\HAXM. Then run the uninstaller file in the same directory and everything should go perfectly

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants