Best practices for relevance to check for successful uninstall

(imported topic written by rdamours91)

Just wondering what is th best way to see if my uninstall is successful…and to see if I’m writing the fixlet like a monkey.

I’ve got a task written to uninstall Quickbooks Basic Edition 2003 targeting XP and 2000 PC’s and meet the following criteria

Here is the relevence…should execute if it’s true

(name of operating system = “Win2000” OR name of operating system = “WinXP”) AND Exists key whose (value “DisplayName” of it as string contains “QuickBooks Basic Edition 2003”) of key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall” of registry

The action is the following. The run command is a executable that will execute and stay in memory to push mouse clicks to this busted Intuit uninstall that follows.

download http://bigfix.epsb.ca:52311/Uploads/6211b2b205051b69539d71b8b542b32a1ad422fd/big12A.tmp

continue if { (size of it = 178109 and sha1 of it = “6211b2b205051b69539d71b8b542b32a1ad422fd”) of file “big12A.tmp” of folder “__Download”}

extract big12A.tmp

Run __Download\2003BASICUNINSTALLKEYS.exe

Wait {value “UninstallString” of key whose (value “DisplayName” of it as string contains “QuickBooks Basic Edition 2003”) of key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall” of registry}

My custom success criteria is the following…which should be false when the action is successful

Exists key whose (value “DisplayName” of it as string contains “QuickBooks Basic Edition 2003”) of key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall” of registry

Just wondering if I should be checking the existence of the uninstallstring for a successful uninstall or is there a better way…or am I on the right track.

(imported comment written by JasonO91)

I’d say you’re on the right track, but if the uninstall program is busted it may not remove the key that you’re looking for. Does the uninstall not work for you, or is it only the custom success criteria that fails?

Jason

(imported comment written by rdamours91)

No just an uninstall string that can’t be made to be run silently. I have a .exe that runs beforehand and clicks the required prompts to finish off the uninstall.

(imported comment written by JasonO91)

I’d test it a couple times to make sure it works, also you’ll want to make sure that it works if no user is logged into the machine.

Everything else looks like it should work.

Jason