How to add a UI to a WiX 3 installer?

2019-03-09 00:09发布

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

5条回答
对你真心纯属浪费
2楼-- · 2019-03-09 00:35

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

查看更多
时光不老,我们不散
3楼-- · 2019-03-09 00:38

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

Customised UIs for Wix

查看更多
做自己的国王
4楼-- · 2019-03-09 00:47

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>
查看更多
萌系小妹纸
6楼-- · 2019-03-09 00:56

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.

查看更多
登录 后发表回答