Uninstall WinSCP v5.10
0 Votes |
Description
Property Details
665 | |
Uninstall WinSCP v5.10 | |
BESC | |
Uninstall | |
danielheth@bigfix.me | |
<Unspecified> | |
<Unspecified> | |
11/5/2012 12:00:00 AM | |
WinSCP Uninstall wikilink1 title bigfix | |
True | |
danielheth on 11/13/2012 4:35:18 PM | |
danielheth on 11/13/2012 4:35:18 PM | |
4448 Views / 14 Downloads | |
![]() ![]() ![]() ![]() ![]() |
Relevance
isWindows (Relevance 274)

name of operating system starts with "Win"
Not in Proxy Agent Context (Relevance 1131)

if exists property "in proxy agent context" then ( not in proxy agent context ) else true
Used in 1 fixlet | * Results in a true/false |

exists key whose (value "DisplayName" of it as string contains "WinSCP 5.1") of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of registry
Actions
Action 1 (default)
Action Link Click
here to deploy this action.
Script Type
BigFix Action Script
parameter "app"="winscp3_is1"
//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.
Action 2
Action Link Click
here to learn more about WinSCP.
Script Type
URL
http://winscp.net/eng/index.php
Sharing
Social Media: |