44

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

Henry Disoza
  • 213
  • 3
  • 11
Adam Tegen
  • 24,389
  • 33
  • 119
  • 152

5 Answers5

84

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.

Pavel Anikhouski
  • 19,922
  • 12
  • 45
  • 57
Adam Tegen
  • 24,389
  • 33
  • 119
  • 152
  • 38
    If anybody's wondering where the dll is, it should be in `C:\Program Files (x64)\WiX Toolset [version]\bin\ `. – Alejandro Moreno Dec 28 '12 at 16:45
  • 9
    Why they've decided not to include any Visual Studio instruction on that documentation page is beyond me. – Drazen Bjelovuk May 13 '16 at 22:21
  • 5
    Why is the location of the `dll` not documentated in the [guides](https://www.firegiant.com/wix/tutorial/user-interface/)? It's retarded to first read the docs (where they mention that you have to add some reference), to eventually search the internet to find out where this reference is located. It's not even in the answer but hidden in a comment of a SO answer... – QuantumHive Aug 09 '17 at 14:30
  • 1
    For your 2017 question, you are probably using NuGet to fetch the WixInstaller. If so, the location of the DLL is your solution folder\packages\Wix\tools\WixUIExtension.dll. I'm adding all this to my MSI project (not the EXE bundle). It compiles. LOL – user922020 Jan 29 '18 at 22:52
  • FWIW you need to add the DLL reference to the Wix project in your solution. – Alan B Apr 04 '19 at 13:09
9

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>
Peter Mortensen
  • 30,030
  • 21
  • 100
  • 124
Remus Rusanu
  • 281,117
  • 39
  • 423
  • 553
  • You can insert this code snippet also with **Visual Studio**. ... **unload the project** in the project explorer with right-click to the project name. Then make **double click** to the project name. The `*.wixproj` file opens and you **can edit** it. After saving reload the project and you are done. – Beauty Feb 01 '21 at 11:42
1

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

Henry Disoza
  • 213
  • 3
  • 11
1

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

froh42
  • 5,120
  • 6
  • 29
  • 42
1

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

Customised UIs for Wix