2012-05-04 36 views
3

我試圖寫一個64位系統

<?xml version="1.0" encoding="utf-8"?> 
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> 

    <?if $(var.Platform)=x64 ?> 
    <?define win64Flag = "yes" ?> 
    <?else ?> 
    <?define win64Flag = "no" ?> 
    <?endif ?> 

</Wix> 

這應該是使用內置的可變一個非常簡單的方法MSI安裝程序平臺,但它失敗如下:

D:\>candle m.wxs 
Microsoft (R) Windows Installer Xml Compiler version 3.5.2519.0 
Copyright (C) Microsoft Corporation. All rights reserved. 

m.wxs 
D:\m.wxs(4) : error CNDL0150 : Undefined preprocessor variable '$(var.Platform)'. 

所以這意味着這個「平臺」不是一個內置變量?或者我做錯了什麼?

回答