Case "Office 2013 x86" $RegKey = 'HKLMSOFTWAREMicrosoftOffice15.0Registration' IF @OSArch = 'x64' Then $RegKey = "HKLM64SOFTWAREWow6432NodeMicrosoftOffice15.0Registration" For $i= 1 to 250 $var = RegEnumKey($RegKey, $i) If @error <> 0 then ExitLoop $bKey = RegRead($RegKey & '' & $var, 'DigitalProductID') IF Not @error Then ExitLoop Next $iKeyOffset = 0x328 Case "Office 2013 x64" IF @OSArch <> 'x64' Then SetError(1, 0, "Product not found") $RegKey = 'HKLM64SOFTW