我正在使用WiX工具集开发Windows的安装程序。我没有直接调用WiX工具,而是创建了.wixproj文件,并使用MsBuild进行构建。我的安装程序需要安装驱动程序,因此我决定尝试Difxapp Extension。
问题是我不知道如何在.wixproj文件中正确添加Difxapp扩展名。ItemGroup
我在标记内添加了代码,<WixExtension Include="WixDifxAppExtension" />
这导致MSBuild-ext "C:\Program Files (x86)\WiX Toolset v3.8\bin\WixDifxAppExtension.dll"
在调用Light.exe时添加参数。但是,我认为我需要做其他事情,因为我收到以下错误消息:
error LGHT0094: Unresolved reference to symbol 'CustomAction:MsiProcessDrivers'
根据2009年的线程,我需要向light.exe命令添加另一个参数,该参数应为:
"$(WIX)bin\difxapp_x86.wixlib"
是否有人可以共享一个示例.wixproj,以显示需要如何引用WixDifxAppExtension?或者,有人知道如何仅添加任意链接程序参数吗?一定有办法。
这是我当前的.wixproj文件:
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ProductVersion>1.0.4</ProductVersion>
<DefineConstants>ProductVersion=$(ProductVersion)</DefineConstants>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
<ProjectGuid>{FACDEEA0-F843-4ca7-8FCC-09AFFFCAAE85}</ProjectGuid>
<SchemaVersion>2.0</SchemaVersion>
<OutputName>installer-$(ProductVersion)</OutputName>
<OutputType>Package</OutputType>
<DefineSolutionProperties>false</DefineSolutionProperties>
<WixTargetsPath Condition=" '$(WixTargetsPath)' == '' ">$(MSBuildExtensionsPath)\Microsoft\WiX\v3.x\Wix.targets</WixTargetsPath>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<OutputPath>bin\$(Configuration)\</OutputPath>
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
<DefineConstants>Debug;ProductVersion=$(ProductVersion)</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<OutputPath>bin\$(Configuration)\</OutputPath>
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
</PropertyGroup>
<ItemGroup>
<Compile Include="installer.wxs" />
<WixExtension Include="WixUIExtension" />
<WixExtension Include="WixDifxAppExtension" />
<!-- TODO: add "$(WIX)bin\difxapp_x86.wixlib" -->
</ItemGroup>
<Import Project="$(WixTargetsPath)" />
</Project>
添加一个WixLibrary项目:
<WixLibrary Include="difxapp_x86.wixlib" />
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句