[wix-users] v4: Using the WixUI extension

Sean Hall r.sean.hall at gmail.com
Tue Jul 5 08:35:57 PDT 2022


This was a bug in the UI extension -
https://github.com/wixtoolset/wix4/pull/189

On Sat, Jul 2, 2022 at 6:41 AM Frederik Carlier via wix-users <
wix-users at lists.wixtoolset.org> wrote:

> One more thing -- I was able to use the WixUI_Mondo and WixUI_Minimal
> dialog sets, but an installer which uses WixUI_InstallDir fails as such:
>
> ```
> Action 13:26:27: InstallDirDlg. Dialog created
> Action 13:26:27: WixUIValidatePath.
> Action start 13:26:27: WixUIValidatePath.
> DEBUG: Error 2721:  Custom action WixUIValidatePath not found in Binary
> table stream
> The installer has encountered an unexpected error installing this package.
> This may indicate a problem with this package. The error code is 2721. The
> arguments are: WixUIValidatePath, ,
> MSI (c) (14:3C) [13:26:28:754]: Product: [...] -- The installer has
> encountered an unexpected error installing this package. This may indicate
> a problem with this package. The error code is 2721. The arguments are:
> WixUIValidatePath, ,
>
> Action ended 13:26:28: WixUIValidatePath. Return value 3.
> DEBUG: Error 2896:  Executing action WixUIValidatePath failed.
> The installer has encountered an unexpected error installing this package.
> This may indicate a problem with this package. The error code is 2896. The
> arguments are: WixUIValidatePath, ,
> ```
>
> Did I miss out on something or is this a bug in the WixUI extension?
> Anything I can do to work around this?
>
> Thanks,
>
> Frederik.
>
> -----Original Message-----
> From: wix-users <wix-users-bounces at lists.wixtoolset.org> On Behalf Of
> Frederik Carlier via wix-users
> Sent: Saturday, 2 July 2022 12:35
> To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
> Cc: Frederik Carlier <frederik.carlier at keysight.com>
> Subject: Re: [wix-users] v4: Using the WixUI extension
>
> Thanks Sean, that was helpful.
>
> I finally got it to work using the ui:WixUI syntax and passing the path to
> the WixUI extension dll as an wix -ext argument.
> I'm using Wix in a CI pipeline on a shared runner, so the acquisition of
> the tools has to be automated.
> That adds the complexity of authenticating to the GitHub NuGet package
> registry.
>
> In the end, I ended up using something like this:
>
> ```powershell
> $headers = @{
>     Authorization = "Basic " +
> [System.Convert]::ToBase64String([System.Text.Encoding]::ASCII.GetBytes("$($user):$($token)"))
> }
>
> # To fetch the metadata for a package, including the download URL, #
> navigate to e.g.
> https://urldefense.com/v3/__https://nuget.pkg.github.com/wixtoolset/WixToolset.Sdk/4.0.0-preview.1-build.415.json__;!!I5pVk4LIGAfnvw!iOR7JabPTiVwnqpw3AbtqXq0fBIoaw2Mt5dQlCCDwWY_z6MXU_SJu7mGrmEBLXeX0H5xfGXWbx5kIh0DBWfc2x5jGJ8_256hn2g$
> $wixVersion = "4.0.0-preview.1-build.415"
> Invoke-WebRequest `
>     -Uri
> https://urldefense.com/v3/__https://nuget.pkg.github.com/wixtoolset/download/WixToolset.Sdk/$wixVersion/WixToolset.Sdk.$wixVersion.nupkg__;!!I5pVk4LIGAfnvw!iOR7JabPTiVwnqpw3AbtqXq0fBIoaw2Mt5dQlCCDwWY_z6MXU_SJu7mGrmEBLXeX0H5xfGXWbx5kIh0DBWfc2x5jGJ8_4aNtP9Q$
> `
>     -Headers $headers `
>     -OutFile WixToolset.Sdk.$wixVersion.zip
>
> Invoke-WebRequest `
>     -Uri
> https://urldefense.com/v3/__https://nuget.pkg.github.com/wixtoolset/download/WixToolset.UI.wixext/$wixVersion/WixToolset.UI.wixext.$wixVersion.nupkg__;!!I5pVk4LIGAfnvw!iOR7JabPTiVwnqpw3AbtqXq0fBIoaw2Mt5dQlCCDwWY_z6MXU_SJu7mGrmEBLXeX0H5xfGXWbx5kIh0DBWfc2x5jGJ8_edWYt-s$
> `
>     -Headers $headers `
>     -OutFile WixToolset.UI.wixext.$wixVersion.zip
>
> Expand-Archive -Path .\WixToolset.Sdk.$wixVersion.zip -DestinationPath wix
> Expand-Archive -Path .\WixToolset.UI.wixext.$wixVersion.zip
> -DestinationPath wixui
>
> dotnet .\wix\tools\netcoreapp3.1\wix.dll build [...] -ext
> .\wixui\tools\WixToolset.UI.wixext.dll
> ```
>
> Hope it's useful to others.
>
> Frederik.
>
> -----Original Message-----
> From: wix-users <wix-users-bounces at lists.wixtoolset.org> On Behalf Of
> Sean Hall via wix-users
> Sent: Friday, 1 July 2022 18:25
> To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
> Cc: Sean Hall <r.sean.hall at gmail.com>
> Subject: Re: [wix-users] v4: Using the WixUI extension
>
> The person that created the discussion that led to that issue seemed to
> have gotten it working.
>
> ui:WixUI is only in preview.1, the v3 method of UIRef was still in place
> for preview.0. You're not going to be able to mix and match extensions and
> the core toolset between different builds right now. I don't know what's
> supposed to happen in that scenario, but it silently ignoring extensions
> that couldn't be loaded is possible.
>
> On Fri, Jul 1, 2022 at 11:10 AM Frederik Carlier <
> frederik.carlier at keysight.com> wrote:
>
> > Hi Sean,
> >
> > I think that's part of the problem, but I had assumed that passing
> > -ext [path to extension .dll] would also work, instead of going
> > through wix extension add.
> > At least,
> > https://urldefense.com/v3/__https://github.com/wixtoolset/wix4/blob/22
> > 3606fcd02e6d15e065d1e108e17c8848d35f9f/src/ext/Bal/test/WixToolsetTest
> > .Bal/BalExtensionFixture.cs*L193__;Iw!!I5pVk4LIGAfnvw!kj46s9B_eNs6m_hy
> > nqZGDFnxAcaPj-E8Tw-ZlEvnUvRd3earMyq_qlaV2GvuC3QFQoVbZbI8oxyUbfAR_6cQ_r
> > Q0AZ86mT711zo$
> > gave me that impression.
> > Is that supposed to work?
> >
> > I also tried with the latest preview.1 builds but that didn't work for
> > me either.
> >
> > Do you know of people using wix v4 + the WixUI extension?
> >
> > Frederik.
> >
> > -----Original Message-----
> > From: wix-users <wix-users-bounces at lists.wixtoolset.org> On Behalf Of
> > Sean Hall via wix-users
> > Sent: Friday, July 1, 2022 5:44 PM
> > To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
> > Cc: Sean Hall <r.sean.hall at gmail.com>
> > Subject: Re: [wix-users] v4: Using the WixUI extension
> >
> > CAUTION: This message originates from an external sender.
> >
> > I assume you're running into
> >
> > https://urldefense.com/v3/__https://github.com/wixtoolset/issues/issue
> > s/6536__;!!I5pVk4LIGAfnvw!huJNcTxkjSfL-LIpMM5ZJCWMmP8L2J2NNSmxmXGZFamd
> > mjxtz3enuGj9QcvjFmUt1TGwm6UgUbcWb6wKEyfoENHmNxiGaOVLYK0$
> >
> > On Fri, Jul 1, 2022 at 10:30 AM Frederik Carlier via wix-users <
> > wix-users at lists.wixtoolset.org> wrote:
> >
> > > Hello,
> > >
> > > I'm continuing my wix v4 preview journey.  I'm able to build a .msi
> > > package, and would now like to add the minimal Wix UI to my installer.
> > >
> > > My .wxs file looks like this:
> > >
> > > <Wix
> > > xmlns=
> > https://urldefense.com/v3/__http://wixtoolset.org/schemas/v4/wxs__;!!I
> > 5pVk4LIGAfnvw!huJNcTxkjSfL-LIpMM5ZJCWMmP8L2J2NNSmxmXGZFamdmjxtz3enuGj9
> > QcvjFmUt1TGwm6UgUbcWb6wKEyfoENHmNxiGr9edgUw$
> > xmlns:ui=
> > https://urldefense.com/v3/__http://wixtoolset.org/schemas/v4/wxs/ui__;
> > !!I5pVk4LIGAfnvw!huJNcTxkjSfL-LIpMM5ZJCWMmP8L2J2NNSmxmXGZFamdmjxtz3enu
> > Gj9QcvjFmUt1TGwm6UgUbcWb6wKEyfoENHmNxiGiLINHic$
> > >
> > >   <Package Name="..." Manufacturer="..." Version="$(var.Version)"
> > > UpgradeCode="...">
> > >     [...]
> > >     <ui:WixUI Id="WixUI_Minimal" />
> > >   </Package>
> > > </Wix>
> > >
> > > I always get the following error message when trying to compile with
> wix:
> > > error WIX0200: The Package element contains an unhandled extension
> > > element 'WixUI'.  Please ensure that the extension for elements in the
> '
> > >
> > https://urldefense.com/v3/__http://wixtoolset.org/schemas/v4/wxs/ui__;
> > !!I5pVk4LIGAfnvw!huJNcTxkjSfL-LIpMM5ZJCWMmP8L2J2NNSmxmXGZFamdmjxtz3enu
> > Gj9QcvjFmUt1TGwm6UgUbcWb6wKEyfoENHmNxiGiLINHic$
> > ' namespace has been provided.
> > >
> > > I have tried the following:
> > >
> > >   *   Installing the WixUI extension via wix extension add
> > >   *   Passing the path to the WixToolset.UI.wixext.dll library via the
> > > -ext argument
> > >   *   Passing the path to the WixToolset.UI.wixext.nupkg NuGet package
> > via
> > > the -ext argument
> > >
> > > Anything else I can try?
> > >
> > > Frederik.
> > >
> > >
> > > ____________________________________________________________________
> > > WiX Toolset Users Mailing List provided by FireGiant
> > > https://urldefense.com/v3/__http://www.firegiant.com/__;!!I5pVk4LIGA
> > > fn
> > > vw!huJNcTxkjSfL-LIpMM5ZJCWMmP8L2J2NNSmxmXGZFamdmjxtz3enuGj9QcvjFmUt1
> > > TG
> > > wm6UgUbcWb6wKEyfoENHmNxiGM4kAvHA$
> > >
> >
> > ____________________________________________________________________
> > WiX Toolset Users Mailing List provided by FireGiant
> > https://urldefense.com/v3/__http://www.firegiant.com/__;!!I5pVk4LIGAfn
> > vw!huJNcTxkjSfL-LIpMM5ZJCWMmP8L2J2NNSmxmXGZFamdmjxtz3enuGj9QcvjFmUt1TG
> > wm6UgUbcWb6wKEyfoENHmNxiGM4kAvHA$
> >
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> https://urldefense.com/v3/__http://www.firegiant.com/__;!!I5pVk4LIGAfnvw!kj46s9B_eNs6m_hynqZGDFnxAcaPj-E8Tw-ZlEvnUvRd3earMyq_qlaV2GvuC3QFQoVbZbI8oxyUbfAR_6cQ_rQ0AZ86Ot0InqA$
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> https://urldefense.com/v3/__http://www.firegiant.com/__;!!I5pVk4LIGAfnvw!iOR7JabPTiVwnqpw3AbtqXq0fBIoaw2Mt5dQlCCDwWY_z6MXU_SJu7mGrmEBLXeX0H5xfGXWbx5kIh0DBWfc2x5jGJ8_y2iRfKE$
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>



More information about the wix-users mailing list