我需要在安装之前检查.NET Framework.我添加了这个
<PropertyRef Id="NETFRAMEWORK40" />
<Condition Message="This application requires .NET Framework 4.0. Please install the .NET Framework then run this installer again. Contact support at support@Swiftposter.com if you have further issues.">
<![CDATA[Installed OR NETFRAMEWORK40]]>
</Condition>
Run Code Online (Sandbox Code Playgroud)
该文件的开头包含
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
xmlns:netfx="http://schemas.microsoft.com/wix/NetFxExtension">
Run Code Online (Sandbox Code Playgroud)
并在链接上我得到错误
错误LGHT0094:"Product:*"部分中未解析的符号'Property:NETFRAMEWORK40'的引用.
是否有特定的地方我应该插入这些线?我尝试了大多数我能想到的地方.