Jump to content

Adobe CS2 Removal Script


Recommended Posts

Hi

Can anyone help me with this script? I found it on this site in an old post.

I have a corrupted Adobe creative suite CS2 which I cant remove. This looks like what I need but there is an error on line 66.

Thanks

#include <GUIConstants.au3>
GUICreate("Adobe CS2 Remover", 175, 115,-1,-1,BitAND($GUI_SS_DEFAULT_GUI, BitNOT($WS_CAPTION)), $WS_EX_TOPMOST)
Opt("GUIOnEventMode", 1)

$Actvate = GUICtrlCreateButton("Remove", 10, 40, 60)
GUICtrlSetOnEvent($Actvate, "_remove")
$exit = GUICtrlCreateButton("Exit", 104, 40, 60)
GUICtrlSetOnEvent($exit, "_Terminate")
$progressbar1 = GUICtrlCreateProgress (10,80,155,20)

GUICtrlCreateLabel("Adobe Creative Suite 2 Remover", 10 , 10)

GUISetState()

While 1
    Sleep(100)
    WEnd

Func _Terminate()
    Sleep(100)
    Exit
EndFunc  ;==>_Terminate

Func _remove()
    Sleep(1000)
    GUICtrlSetData ($progressbar1,5)
RegDelete("HKEY_CLASSES_ROOT\Installer\Features\", "08E8456490400000E7A85400F0580510")
RegDelete("HKEY_CLASSES_ROOT\Installer\Features\", "3618C4F7952F0A940A8182759A5087CB")
RegDelete("HKEY_CLASSES_ROOT\Installer\Features\", "4C7BB6329144DF244090E152A7523ED4")
RegDelete("HKEY_CLASSES_ROOT\Installer\Features\", "C80D5F2B97E7DCF4AA4F75DA53FF6010")
RegDelete("HKEY_CLASSES_ROOT\Installer\Features\", "C9AAD94C8AB5A95428445EB796FDF040")
RegDelete("HKEY_CLASSES_ROOT\Installer\Features\", "EE64EBDA0E4501644B637D9ED3281900")
GUICtrlSetData ($progressbar1,15)
RegDelete("HKEY_CURRENT_USER\Software\", "Adobe")
RegDelete("HKEY_LOCAL_MACHINE\Software\", "Adobe")
GUICtrlSetData ($progressbar1,20)
Sleep(2000)
RegDelete("HKEY_CLASSES_ROOT\Installer\Features\", "08E8456490400000E7A85400F0580510")
RegDelete("HKEY_CLASSES_ROOT\Installer\Features\", "3618C4F7952F0A940A8182759A5087CB")
RegDelete("HKEY_CLASSES_ROOT\Installer\Features\", "4C7BB6329144DF244090E152A7523ED4")
RegDelete("HKEY_CLASSES_ROOT\Installer\Features\", "C80D5F2B97E7DCF4AA4F75DA53FF6010")
RegDelete("HKEY_CLASSES_ROOT\Installer\Features\", "C9AAD94C8AB5A95428445EB796FDF040")
RegDelete("HKEY_CLASSES_ROOT\Installer\Features\", "EE64EBDA0E4501644B637D9ED3281900")
GUICtrlSetData ($progressbar1,30)
Sleep(1000)
RegDelete("HKEY_CLASSES_ROOT\Installer\Products\", "08E8456490400000E7A85400F0580510")
RegDelete("HKEY_CLASSES_ROOT\Installer\Products\", "3618C4F7952F0A940A8182759A5087CB")
RegDelete("HKEY_CLASSES_ROOT\Installer\Products\", "4C7BB6329144DF244090E152A7523ED4")
RegDelete("HKEY_CLASSES_ROOT\Installer\Products\", "C80D5F2B97E7DCF4AA4F75DA53FF6010")
RegDelete("HKEY_CLASSES_ROOT\Installer\Products\", "C9AAD94C8AB5A95428445EB796FDF040")
RegDelete("HKEY_CLASSES_ROOT\Installer\Products\", "EE64EBDA0E4501644B637D9ED3281900")
GUICtrlSetData ($progressbar1,35)
Sleep(1000)
RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Features\", "08E8456490400000E7A85400F0580510")
RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Features\", "3618C4F7952F0A940A8182759A5087CB")
RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Features\", "4C7BB6329144DF244090E152A7523ED4")
RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Features\", "C80D5F2B97E7DCF4AA4F75DA53FF6010")
RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Features\", "C9AAD94C8AB5A95428445EB796FDF040")
RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Features\", "EE64EBDA0E4501644B637D9ED3281900")
GUICtrlSetData ($progressbar1,40)
Sleep(1000)
RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\", "08E8456490400000E7A85400F0580510")
RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\", "3618C4F7952F0A940A8182759A5087CB")
RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\", "4C7BB6329144DF244090E152A7523ED4")
RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\", "C80D5F2B97E7DCF4AA4F75DA53FF6010")
RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\", "C9AAD94C8AB5A95428445EB796FDF040")
RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\", "EE64EBDA0E4501644B637D9ED3281900")
GUICtrlSetData ($progressbar1,50)
Sleep(2000)
RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\", "08E8456490400000E7A85400F0580510")
RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\", "3618C4F7952F0A940A8182759A5087CB")
RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\", "4C7BB6329144DF244090E152A7523ED4")
RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\", "C80D5F2B97E7DCF4AA4F75DA53FF6010")
RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\", "C9AAD94C8AB5A95428445EB796FDF040")
RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\", "EE64EBDA0E4501644B637D9ED3281900")
GUICtrlSetData ($progressbar1,60)
Sleep(1000)
RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\", "Adobe GoLive CS2 English")
RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\", "Adobe Illustrator CS2")
RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\", "Adobe InDesign CS2")
RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\", "Adobe Photoshop CS2")
RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\", "Adobe Photoshop CS2")
RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\", "{0134A1A1-C283-4A47-91A1-92F19F960372}")
RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\", "{236BB7C4-4419-42FD-0409-1E257A25E34D}")
RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\", "{46548E80-0409-0000-7E8A-45000F855001}")
RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\", "{7F4C8163-F259-49A0-A018-2857A90578BC}")
RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\", "{ADBE46EE-54E0-4610-B436-D7E93D829100}")
RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\", "{B2F5D08C-7E79-4FCD-AAF4-57AD35FF0601}")
RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\", "{C49DAA9C-5BA8-459A-8244-E57B69DF0F04}")
GUICtrlSetData ($progressbar1,70)
Sleep(1000)
RegDelete("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\", "Adobe Version Cue CS2")
RegDelete("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application\", "Adobe Version Cue CS2")
GUICtrlSetData ($progressbar1,80)
Sleep(1000)
DirRemove("C:\Documents and Settings\All Users\Application Data\Adobe", 1)
DirRemove("C:\Documents and Settings\All Users\Start Menu\Programs\Adobe GoLive CS2", 1)
DirRemove("C:\Documents and Settings\All Users\Start Menu\Programs\Adobe Illustrator CS2", 1)
DirRemove("C:\Documents and Settings\All Users\Start Menu\Programs\Adobe ImageReady CS2", 1)
DirRemove("C:\Documents and Settings\All Users\Start Menu\Programs\Adobe InDesign CS2", 1)
DirRemove("C:\Documents and Settings\All Users\Start Menu\Programs\Adobe Photoshop CS2", 1)
DirRemove("C:\Documents and Settings\All Users\Application Data\Adobe", 1)
DirRemove("C:\WINDOWS\system32\Adobe", 1)
DirRemove("C:WINDOWS\Installer\{236BB7C4-4419-42FD-0409-1E257A25E34D}", 1)
DirRemove("C:WINDOWS\Installer\{7F4C8163-F259-49A0-A018-2857A90578BC}", 1)
DirRemove("C:WINDOWS\Installer\{B2F5D08C-7E79-4FCD-AAF4-57AD35FF0601}", 1)
GUICtrlSetData ($progressbar1,90)
Sleep(1000)
DirRemove("C:\Documents and Settings\" & @UserName & "\Application Data\Adobe", 1)
DirRemove("C:\Documents and Settings\" & @UserName & "\Start Menu\Programs\Adobe GoLive CS2", 1)
DirRemove("C:\Documents and Settings\" & @UserName & "\Start Menu\Programs\Adobe Illustrator CS2", 1)
DirRemove("C:\Documents and Settings\" & @UserName & "\Start Menu\Programs\Adobe ImageReady CS2", 1)
DirRemove("C:\Documents and Settings\" & @UserName & "\Start Menu\Programs\Adobe InDesign CS2", 1)
DirRemove("C:\Documents and Settings\" & @UserName & "\Start Menu\Programs\Adobe Photoshop CS2", 1)
DirRemove("C:\Documents and Settings\" & @UserName & "\Application Data\Adobe", 1)
GUICtrlSetData ($progressbar1,95)
Sleep(1000)
DirRemove("C:\Program Files\Common Files\Adobe", 1)
DirRemove("C:\Program Files\Adobe\", 1)
GUICtrlSetData ($progressbar1,100)
EndFunc
Link to comment
Share on other sites

Thankyou both for your help. yes that key does exist.

I dont know anything about using scrips so it must be the way im using it. I downloaded autoit and put it in the editor. I compiled it with no errors but whan I run the exe it says error on line 66 variable used without being declared.

So I used SyntaxCheck prod, which I assumed was like a pre flight check ind it gives the warnings and errors below.

Am I doing something wrong?

Thanks

Steve

>C:\Program Files\AutoIt3\SciTE\..\au3check.exe "C:\Remove CS2\removeCS2.au3"

AutoIt3 Syntax Checker v1.54.8 Copyright © Tylo 2007

C:\Remove CS2\removeCS2.au3(2,73) : WARNING: $GUI_SS_DEFAULT_GUI: possibly used before declaration.

GUICreate("Adobe CS2 Remover", 175, 115,-1,-1,BitAND($GUI_SS_DEFAULT_GUI,

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Remove CS2\removeCS2.au3(2,93) : WARNING: $WS_CAPTION: possibly used before declaration.

GUICreate("Adobe CS2 Remover", 175, 115,-1,-1,BitAND($GUI_SS_DEFAULT_GUI, BitNOT($WS_CAPTION)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Remove CS2\removeCS2.au3(2,111) : WARNING: $WS_EX_TOPMOST: possibly used before declaration.

GUICreate("Adobe CS2 Remover", 175, 115,-1,-1,BitAND($GUI_SS_DEFAULT_GUI, BitNOT($WS_CAPTION)), $WS_EX_TOPMOST)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Remove CS2\removeCS2.au3(2,73) : ERROR: $GUI_SS_DEFAULT_GUI: undeclared global variable.

GUICreate("Adobe CS2 Remover", 175, 115,-1,-1,BitAND($GUI_SS_DEFAULT_GUI,

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Remove CS2\removeCS2.au3 - 1 error(s), 3 warning(s)

>Exit code: 2 Time: 0.347

Link to comment
Share on other sites

add this line to the top of your script and try running it

#include <WindowsConstants.au3>

Thanks Smartee that worked and the script runs without error. CS2 still remains though which is a pain. When I click on the program instead of running its asking for a serial number to personalize your software and it wont take my serial number. I was hoping for a total removal by force :-)

Thanks for your help I think Im a step closer

Steve

Link to comment
Share on other sites

Hi Again

I did this manualy by deleting all the program folders. Then searched the registry for "adobe creative" and deleted the keys, this took a while. then ran a clean registry mechanic.

I dont suppose by any chance you have a script that can search the registry for a keyword and delete the key automaticaly?

Cheers

Steve

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...