If Expression True
I've been trying to get this working for the last hour now and I just can't get the correct syntax needed to make it work, wondered if someone could help us quickly.
This is just a sample of the Wise Script I'm working on (WiseScript Editor 8)
Basically, all I need to do is collect a few values from the registry and then set a windows property if more than one of these values are set to 1, using the Expression True option in an IF statement, see below:
Get Registry Key Software\Microsoft\MSDTC\Security place in Variable MSDTC-TRANSLU-32
Get Registry Key Software\Microsoft\MSDTC\Security place in Variable MSDTC-NETDTC-32
If Expression True "%MSDTC-TRANSLU-32% = 1 AND %MSDTC-NETDTC-32% = 1" then
Set Windows Installer Property MSDTC to 1
I can't figure out the correct way to get the Expression True option working when using the IF statement. I know that I properly need to surround my compile variables in % but that throws an 'Invalid expression was specified error' when I hit compile. I think it should look like the below when it's done correctly but I'm doing something wrong... I can't get it to look like the below in the script view, if you see what I mean.
IF Expression True
(Value=A) OR (Value=B) OR (Value=C)
On the left hand side of the screen, I'm selecting the 'If Statement' and then when the box appears, I select 'Expression True' from the drop down list and then in the 'Value' field I'm typing in %MSDTC-TRANSLU-32% = "1" AND %MSDTC-NETDTC-32% = "1"