Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- reg ADD HKLM /f >nul 2>&1 || (
- echo This script needs to run elevated & exit /b
- )
- pushd "%tmp%"
- taskkill /F /IM "AutoHotkey*"
- curl -#LO "https://www.autohotkey.com/download/ahk-v2.exe"
- cd . > "ahk-v2.exe:Zone.Identifier"
- ahk-v2.exe /uninstall /silent
- del ahk-v2.exe
- del "C:\Windows\ShellNew\Template.ahk"
- rd /S /Q "C:\Program Files\AutoHotkey"
- certutil -delstore Root "AutoHotkey"
- reg DELETE "HKCR\AutoHotkeyScript\shell" /F
- reg DELETE "HKCU\Software\Microsoft\AutoHotkey" /F
- reg DELETE "HKCU\Software\Classes\AutoHotkeyScript" /F
- reg DELETE "HKLM\Software\Microsoft\AutoHotkey" /F
- reg DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\AutoHotkey" /F
- pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement