Problem with if Variable contains String
Posted: Sun Dec 01, 2013 6:33 am
Hi there,
I've tried everything to get this to work but now need assistance...
No matter on which machine and Office I always get FALSE.
On my Office x86 system the output from the Installer (Write to File) shows I have a x86 service, but how do I get the comparison to correctly test for the string? I've tried without the double quotes - same result...
Many thanks in advance,
Best regards
Seán
I've tried everything to get this to work but now need assistance...
Code: Select all
Check Registry Key HKLM\SOFTWARE\Classes\Excel.Addin\shell\Open\command\ into Office_x86_or_x64
if Variable Office_x86_or_x64 Contains (Ignore Case) "x86"
Set Variable OfficeX86 to TRUE
else
Set Variable OfficeX86 to FALSE
end
No matter on which machine and Office I always get FALSE.
On my Office x86 system the output from the Installer (Write to File) shows I have a x86 service, but how do I get the comparison to correctly test for the string? I've tried without the double quotes - same result...
Code: Select all
Office_x86_or_X64="C:\Program Files (x86)\Microsoft Office\Office14\EXCEL.EXE" /dde
OfficeX86=FALSE
Many thanks in advance,
Best regards
Seán