的NETFRAMEWORK45
屬性可以使用相同NETFRAMEWORK40FULL
上市。請注意,.NET Framework v4.5沒有「客戶端」或「完整」框架。只有一個。所以下面的代碼應該做你想要什麼:
<PropertyRef Id="NETFRAMEWORK40FULL"/>
<PropertyRef Id="NETFRAMEWORK45"/>
<Condition Message='This setup requires Microsoft .NET Framework 4.0 Full package or greater needs to be installed for this installation to continue.'>
<![CDATA[Installed OR NETFRAMEWORK40FULL]]>
</Condition>
<Condition Message='This setup requires Microsoft .NET Framework 4.5 package or greater needs to be installed for this installation to continue.'>
<![CDATA[Installed OR NETFRAMEWORK45]]>
</Condition>
注意了.NET Framework V4.5是.NET框架的一個在就地升級4.0,以便檢查都可以讓你進入的情況下,你永遠不會滿足這兩個條件。您可能需要檢查是否安裝了.NET Framework v4.0 或 .NET Framework v4.5。這種情況看起來更像:
<Condition Message='This setup requires Microsoft .NET Framework 4.0 Full or 4.5 package or greater needs to be installed for this installation to continue.'>
<![CDATA[Installed OR NETFRAMEWORK40FULL OR NETFRAMEWORK45]]>
</Condition>
Thanks rob。如果您在線上參考資料中更新此信息將有助於大家輕鬆找到答案。 – Smaug 2013-05-01 09:26:04