if
(
not exists key whose
(
"IBM Tivoli Storage Manager Client" = value "DisplayName" of it
)
of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of native registry
)
then "<TSM not installed>" else if
(
not exists key whose
(
"IBM Tivoli Storage Manager Client" = value "DisplayName" of it AND exists value "DisplayVersion" of it
)
of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of native registry
)
then "<TSM dv reg entry missing>" else
(
value "DisplayVersion" of key whose
(
"IBM Tivoli Storage Manager Client" = value "DisplayName" of it AND exists value "DisplayVersion" of it
)
of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of native registry as string
)
if(not exists key whose("IBM Tivoli Storage Manager Client" = value "DisplayName" of it) of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of native registry) then "<TSM not installed>" else if(not exists key whose("IBM Tivoli Storage Manager Client" = value "DisplayName" of it AND exists value "DisplayVersion" of it) of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of native registry) then "<TSM dv reg entry missing>" else (value "DisplayVersion" of key whose("IBM Tivoli Storage Manager Client" = value "DisplayName" of it AND exists value "DisplayVersion" of it) of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of native registry as string)