Wix安装32位或64位的设定
component Id="Component1" Guid="*">
![CDATA[Not VersionNT64]]>
File Id="File1" Name="1.dll" Source="c:/dlls/1.dll"/>
/Component>
Component Id="Component2" Guid="*">
![CDATA[VersionNT64]]>
File Id="File2" Name="2.dll" Source="c:/dlls/2.dll"/>
/Component>
或者
[htML]
Component Id="DPInst_x32" Guid="PLACE-YOUR-GUID-HERE">
File Id="DPInst.exe_x32" Name="DPInst.exe" LongName="DPInst.exe"
VITal="yes" diskId="1" src="C:/DPInst/x32/DPInst.exe" />
Condition>
NOT VersionNT64/Condition>
/Component>
Component Id="DPInst_x64" Guid="PLACE-YOUR-GUID-HERE">
File Id="DPInst.exe_x64" Name="DPInst.exe" LongName="DPInst.exe"
Vital="yes" DiskId="1" src="C:/DPInst/x64/DPInst.exe" />
Condition>
VersionNT64/Condition>
/Component>
[html]
Feature Id='DPInst_x32' Level='0' AllowAdvertise="no"
Absent="disallow" Display="hidden">
ComponentRef Id='DPInst_x32' />
Condition Level="1">
NOT VersionNT64/Condition>
/Feature>
Feature Id='DPInst_x64' Level='0' AllowAdvertise="no"
Absent="disallow" Display="hidden">
ComponentRef Id='DPInst_x64' />
Condition Level="1">
VersionNT64/Condition>
/Feature>
如果是NT系统,不安装
Condition Message="This application is only supported on Windows Vista, Windows Server 2008, or higher.">
![CDATA[Installed OR (VersionNT >
= 600)]]>
/Condition>
Component Id="Component1" Guid="*">
![CDATA[Not VersionNT64]]>
File Id="File1" Name="1.dll" Source="c:/dlls/1.dll"/>
/Component>
Component Id="Component2" Guid="*">
![CDATA[VersionNT64]]>
File Id="File2" Name="2.dll" Source="c:/dlls/2.dll"/>
/Component>
或者
[html]
Component Id="DPInst_x32" Guid="PLACE-YOUR-GUID-HERE">
File Id="DPInst.exe_x32" Name="DPInst.exe" LongName="DPInst.exe"
Vital="yes" DiskId="1" src="C:/DPInst/x32/DPInst.exe" />
Condition>
NOT VersionNT64/Condition>
/Component>
Component Id="DPInst_x64" Guid="PLACE-YOUR-GUID-HERE">
File Id="DPInst.exe_x64" Name="DPInst.exe" LongName="DPInst.exe"
Vital="yes" DiskId="1" src="C:/DPInst/x64/DPInst.exe" />
Condition>
VersionNT64/Condition>
/Component>
[html]
Feature Id='DPInst_x32' Level='0' AllowAdvertise="no"
Absent="disallow" Display="hidden">
ComponentRef Id='DPInst_x32' />
Condition Level="1">
NOT VersionNT64/Condition>
/Feature>
Feature Id='DPInst_x64' Level='0' AllowAdvertise="no"
Absent="disallow" Display="hidden">
ComponentRef Id='DPInst_x64' />
Condition Level="1">
VersionNT64/Condition>
/Feature>
如果是NT系统,不安装
Condition Message="This application is only supported on Windows Vista, Windows Server 2008, or higher.">
![CDATA[Installed OR (VersionNT >
= 600)]]>
/Condition>
觉得可用,就经常来吧! 欢迎评论哦! html5教程,巧夺天工,精雕玉琢。小宝典献丑了!
声明:本文内容由网友自发贡献,本站不承担相应法律责任。对本内容有异议或投诉,请联系2913721942#qq.com核实处理,我们将尽快回复您,谢谢合作!
若转载请注明出处: Wix安装32位或64位的设定
本文地址: https://pptw.com/jishu/586538.html