SHARE
TWEET

[AUTOHOTKEY] Remove Norton Antivirus

a guest Aug 9th, 2019 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # [AUTOHOTKEY] Remove Norton Antivirus
  2. #NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
  3. ; #Warn  ; Enable warnings to assist with detecting common errors.
  4. SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
  5.  
  6. SetTitleMatchMode, RegEx
  7. SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
  8. GroupAdd, NortonUnins, Norton Security
  9. GroupAdd, NortonUnins, ahk_class install_ui_frame
  10. GroupAdd, NortonUnins, ahk_exe InstStub.exe
  11.  
  12. Loop, Files, C:\Program Files (x86)\NortonInstaller\*.*, R
  13. {
  14.     if(A_LoopFileName = "InstStub.exe")
  15.     {
  16.         Run, %A_LoopFileFullPath% /X /ARP
  17.         Break
  18.     }
  19. }
  20.  
  21. WinWait, ahk_group NortonUnins
  22. WinActivate, ahk_group NortonUnins
  23. Sleep, 3000
  24.  
  25. # Do not accept to have mini AV
  26. Send, {TAB 2}
  27. Send, {SPACE}
  28. Sleep 500
  29.  
  30. # and delete all user data related to Norton
  31. Send, {TAB 2}
  32. Send, {SPACE}
  33. Sleep 500
  34.  
  35. # Press uninstall
  36. Send, {TAB 2}
  37. Send, {ENTER}
  38.  
  39. # Confirm uninstall
  40. Sleep 500
  41. Send, {TAB 3}
  42. Send, {ENTER}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top