简体   繁体   中英

How to add a UI to a WiX 3 installer?

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

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 .

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>

您需要在 WIX 项目中添加对 WixUIExtension 的引用来解决此问题。

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

Customised UIs for Wix

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM