Jump to content

processclose wont close the process


FeReNGi
 Share

Recommended Posts

Hello,

I am trying to made an unattend deinstallation script of adobe Indesign CS2 but 2 process won't close !

RunWait('msiexec.exe /x{236BB7C4-4419-42FD-0409-1E257A25E34D} /q' , @SystemDir)     
RunWait('msiexec.exe /x{B2F5D08C-7E79-4FCD-AAF4-57AD35FF0601} /q' , @SystemDir)     
RunWait('msiexec.exe /x{7F4C8163-F259-49A0-A018-2857A90578BC} /q' , @SystemDir)                 
RunWait('msiexec.exe /x{B74D4E10-1033-0000-0000-000000000001} /q' , @SystemDir)
RunWait('msiexec.exe /x{E9787678-1033-0000-8E67-000000000001} /q' , @SystemDir)                         
RunWait('msiexec.exe /x{786C5747-1033-0000-B58E-000000000001} /q' , @SystemDir)
RunWait('msiexec.exe /x{236BB7C4-4419-42FD-0409-1E257A25E34D} /q' , @SystemDir)     
RunWait('msiexec.exe /x{B2F5D08C-7E79-4FCD-AAF4-57AD35FF0601} /q' , @SystemDir)     
RunWait('msiexec.exe /x{8EDBA74D-0686-4C99-BFDD-F894678E5B39} /q' , @SystemDir)         
RunWait('msiexec.exe /x{C49DAA9C-5BA8-459A-8244-E57B69DF0F04} /q' , @SystemDir)             
If ProcessExists("VersionCueCS2Tray.exe") Then ProcessClose("VersionCueCS2Tray.exe")
                                
If ProcessExists("mysqld-nt.exe") Then                  
        LOCAL $list = ProcessList("mysqld-nt.exe")
    ProcessClose($list[1][1])                   
EndIf
                                
If ProcessExists("VersionCueCS2.exe") Then                          
    LOCAL $list = ProcessList("VersionCueCS2.exe")
    ProcessClose($list[1][1])                   
EndIf           
                                
ProcessClose("VersionCueCS2.exe")
ProcessClose("mysqld-nt.exe")
                            
DirRemove("C:\Program Files\Adobe\Adobe Version Cue CS2",1)
RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{0134A1A1-C283-4A47-91A1-92F19F960372}")
RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run","Adobe Version Cue CS2")

VersionCueCS2 and mysqld-nt.exe won't close and because of this i can't remove the directory.

An MSI for deinstallation doesn't exist.

The only way to close the process is using an external program pskill.exe but i want only to use autoit.

Strange thing is that the process VersionCueCS2Tray.exe is closing and working perfecty.

UPDATE :

The only difference i notice is that the last one is running on my user account and the 2 above are running as system account but i am an administrator i should be able to close them.

Edited by FeReNGi
Link to comment
Share on other sites

Maybe/seems that these both are services.

So try to end the services first and then try to remove it.

Maybe this will also help:

"mysqld-nt.exe --remove (removes MySQL-Server-service)"

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...