Uninstall PowerGUI
1 Votes |
Description
Property Details
93 | |
Uninstall PowerGUI | |
BESC | |
Uninstall | |
0 | |
danielheth@bigfix.me | |
<Unspecified> | |
<Unspecified> | |
4/21/2011 12:00:00 AM | |
Uninstall PowerGUI application | |
danielheth on 10/17/2012 9:31:55 AM | |
danielheth on 10/17/2012 9:37:44 AM | |
4711 Views / 5 Downloads | |
![]() ![]() ![]() ![]() ![]() |
Relevance

name of operating system as string contains "Win"

exists key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\PowerShellSnapIns\PowerGUI" of registry
Used in 1 fixlet | * Results in a true/false |

( (exists x64 registry AND exists key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{F27D4317-9EF7-46DF-BE4F-D8432C17A0EB}" of x64 registry AND exists value "UninstallString" whose (it as string != "") of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{F27D4317-9EF7-46DF-BE4F-D8432C17A0EB}" of x64 registry) ) OR ( (exists key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{F27D4317-9EF7-46DF-BE4F-D8432C17A0EB}" of x32 registry AND exists value "UninstallString" whose (it as string != "") of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{F27D4317-9EF7-46DF-BE4F-D8432C17A0EB}" of x32 registry) )
Actions
Action 1 (default)
Action Link Click
here to uninstall PowerGUI.
Script Type
BigFix Action Script
parameter "app"="{{F27D4317-9EF7-46DF-BE4F-D8432C17A0EB}"
//first retrieve our uninstall command...
parameter "QuietUninstallString"="{if (exists x64 registry) AND (exists key (concatenation of ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";(parameter "app" as string))) of x64 registry) AND (exists value "QuietUninstallString" whose (it as string != "") of key (concatenation of ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";(parameter "app" as string))) of x64 registry) then ((value "QuietUninstallString" whose (it as string != "") of key (concatenation of ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";(parameter "app" as string))) of x64 registry as string)) else if (exists key (concatenation of ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";(parameter "app" as string))) of x32 registry) AND (exists value "QuietUninstallString" whose (it as string != "") of key (concatenation of ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";(parameter "app" as string))) of x32 registry) then ((value "QuietUninstallString" whose (it as string != "") of key (concatenation of ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";(parameter "app" as string))) of x32 registry as string)) else ""}"
parameter "UninstallString"="{if (exists x64 registry) AND (exists key (concatenation of ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";(parameter "app" as string))) of x64 registry) AND (exists value "UninstallString" whose (it as string != "") of key (concatenation of ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";(parameter "app" as string))) of x64 registry) then ((value "UninstallString" whose (it as string != "") of key (concatenation of ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";(parameter "app" as string))) of x64 registry as string)) else if (exists key (concatenation of ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";(parameter "app" as string))) of x32 registry) AND (exists value "UninstallString" whose (it as string != "") of key (concatenation of ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";(parameter "app" as string))) of x32 registry) then ((value "UninstallString" whose (it as string != "") of key (concatenation of ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";(parameter "app" as string))) of x32 registry as string)) else ""}"
continue if {(parameter "UninstallString" != "") OR (parameter "QuietUninstallString" != "")}
if {parameter "QuietUninstallString" != ""}
if {parameter "QuietUninstallString" as lowercase contains "msiexec.exe"}
waithidden msiexec.exe /x {parameter "app" as string} /quiet
else
waithidden {parameter "QuietUninstallString"}
endif
else
if {parameter "UninstallString" != ""}
if {parameter "UninstallString" as lowercase contains "msiexec.exe"}
waithidden msiexec.exe /x {parameter "app" as string} /quiet
else
waithidden {parameter "UninstallString"} /quiet /norestart
endif
endif
endif
Success Criteria
This action will be considered successful when the applicability relevance evaluates to false.
Sharing
Social Media: |