Code: Select all
Param()
# Your code goes here.
Add-Type -AssemblyName PresentationFramework
cd "C:\Program Files\Weir Minerals\RSP Firmware\RSP Firmware\"
#Choose the Device to update Firmware
$SP1 = AI_GetMsiProperty CHECKBOX_SP1
$DAQ1 = AI_GetMsiProperty CHECKBOX_DAQ1
[System.Windows.MessageBox]::Show("$SP1") ---- if i run this it gives me the output on the message box as checkbox but i need the value of it like true or
false
if ($SP1 -eq "True")
{
$a = .\SinetProg.exe /i /a:192.168.29.20
[System.Windows.MessageBox]::Show("SP1 $a")
}
elseif ($DAQ1 -eq "True")
{
$b = .\SinetProg.exe /i /a:192.168.29.21
[System.Windows.MessageBox]::Show("DAQ1 $b")
}