How to add a UI to a WiX 3 installer?

半城伤御伤魂 提交于 2019-12-03 04:08:02

问题


I've tried <UIRef Id="WixUI_Minimal" />, but I get "Unresolved reference to symbol WixUI:WixUIMinimal". What am I doing wrong?


回答1:


The wixui extension is no longer wixui.wixlib. It was rolled into the WixUIExtension.

If you are on the command line, add -ext WixUIExtension to the call to light.exe.

If you have a WiX project in Visual Studio, add a reference to "WixUIExtension" by right clicking on "References" in the Solution Explorer.

See the WiXUI Dialog Sets page for WIX3.




回答2:


If you use the .wixproj directly via MSBuild, without Visual Studio, the required modification is to add this:

<Project ...>
  ...
  <ItemGroup>
    <WixExtension Include="WixUIExtension">
      <HintPath>$(WixToolPath)WixUIExtension.dll</HintPath>
      <Name>WixUIExtension</Name>
    </WixExtension>
  </ItemGroup>
  ...
</Project>



回答3:


See Re: (WiX-users) How to get off the ground with WixUI_Minimal?




回答4:


Below is a link to a good example on how to custimize the WixUIExtensions.

Customised UIs for Wix




回答5:


You need to add reference of WixUIExtension in your WIX project to resolve this issue.



来源:https://stackoverflow.com/questions/596919/how-to-add-a-ui-to-a-wix-3-installer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!