jpakkane / msicreator

Python script to generate MSI installers
Apache License 2.0
104 stars 20 forks source link

Can't install WixToolset.Util.winext #13

Open emanueljg opened 11 months ago

emanueljg commented 11 months ago

I am writing a GitHub Actions to create an MSI on each release. Here's my approach so far:

      - name: Install prerequisite packages (Windows)
        if: matrix.os == 'windows-latest'
        uses: crazy-max/ghaction-chocolatey@v3
        with:
          args: "install swig microsoft-build-tools dotnet"

      - name: Build .msi
        if: matrix.os == 'windows-latest'
        run: |
          # install wix
          dotnet tool install --global wix --version 4.0.2
          wix extension add -g WixToolset.UI.winext
          # run script
          source $VENV
          poetry run poe mkmsi

I added the wix extension part after getting an error that the extension WixToolset.UI.wixext could not be found, but I can't seem to install it: msibuild2 It appears it fails silently, without stderr. What's up?

jpakkane commented 11 months ago

The command that works for me is wix extension add WixToolset.UI.wixext, though I have only used it on my own machine and not Github Actions.

emanueljg commented 11 months ago

The command that works for me is wix extension add WixToolset.UI.wixext, though I have only used it on my own machine and not Github Actions.

Couldn't get that command to work either, same weird error. I tried installing wixl instead as the readme said msitools was supported as well, but when running it, it told me I still needed wix4.

jpakkane commented 11 months ago

The docs are out of date. Msitools is equivalent to WiX 3.

If you want to use either WiX 3 or Msitools, you can check out an older commit of the code that still supports those (before any of the WiX 4 work).

laggykiller commented 6 months ago

Make sure the versions match

dotnet tool install --global wix --version 4.0.4
wix extension add WixToolset.UI.wixext/4.0.4