lafafmentvotre Posted December 26, 2006 Posted December 26, 2006 (edited) Hello How can i find a registry key and execute an uninstall if this key exist, like : IF FileExists("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{E8662ED4-5F39-4B01-B76F-1DCA5582C9FA}") then RunWait("MsiExec.exe /X{E8662ED4-5F39-4B01-B76F-1DCA5582C9FA} /QUIET") EndIf It doesn't match Please help me Thanks (sorry for my bad english). Edited December 26, 2006 by lafafmentvotre
Developers Jos Posted December 26, 2006 Developers Posted December 26, 2006 HelloHow can i find a registry key and execute an uninstall if this key exist, like :IF FileExists("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{E8662ED4-5F39-4B01-B76F-1DCA5582C9FA}") then RunWait("MsiExec.exe /X{E8662ED4-5F39-4B01-B76F-1DCA5582C9FA} /QUIET")EndIfIt doesn't matchPlease help meThanks(sorry for my bad english).Look at RegRead() in the helpfile .. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
BugFix Posted December 26, 2006 Posted December 26, 2006 (edited) RegRead give back an error value if mismatch. Do that: CODE$var = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{E8662ED4-5F39-4B01-B76F-1DCA5582C9FA}","UninstallString") If @error <> 0 Then MsgBox(0, '', "uninstall string not exists") Edited December 26, 2006 by BugFix Best Regards BugFix
MadBoy Posted December 26, 2006 Posted December 26, 2006 RegRead give back an error value if mismatch.Do that:CODE$var = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{E8662ED4-5F39-4B01-B76F-1DCA5582C9FA}","UninstallString")If @error <> 0 Then MsgBox(0, '', "uninstall string not exists")Here you have similar "working" application to what you want to achieve. Check the code. Should be helpfull http://www.autoitscript.com/forum/index.php?showtopic=20406 My little company: Evotec (PL version: Evotec)
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now