The -platform switch is used to set a preprocessor System Variable called Platform. The value passed by the user with the -platform switch is converted to start with an upper case character which eventually leads Candle to think that an invalid value was passed.
<package installerversion="200" platform="$(sys.PLATFORM)"></package>
candle.exe product.wxs -platform intel
Expected:
A package is built with the platform Intel
Actual:
Product.wxs(7) : error CNDL0265 : The Platform attribute has an invalid value Intel. Possible values are intel, x64, or intel64.
Logged In: YES
user_id=26581
Originator: NO
sys.BUILDARCH does.