;Check group membership
If InGroup('PBX_User')
;Check if UC client is installed
If Not Exist($systemdrive + '\program files\Pascom\MobyDickClient\bin\md_mobydick.exe')
? "Install UC-Client"
;Installl UC client
$Install = '\setup.exe /configure configuration-en-64.xml'
Shell $install
Else
? "UC Client already installed"
;Check UC client version
$version = GetFileVersion($systemdrive + '\program files\Pascom\MobyDickClient\bin\md_mobydick.exe', "Productversion")
If $version <> "1234567890"
;Install current versiobn of UC client
$Install = '\setup.exe /configure configuration-en-64.xml'
Shell $install
Else
? "Current version of UC Client already installed"
EndIf
EndIf
;start UC client
Run $systemdrive + '\program files\Pascom\MobyDickClient\bin\md_mobydick.exe'
Else
;UC client not needed for current user
? "UC Client not available"
EndIf