Questions tagged [wix4]

For issues relating to deployment using WiX Toolset version 4

The WiX Toolset builds Windows installation packages from XML source code. The toolset supports a command-line environment that developers may integrate into their build processes to build MSI and MSM setup packages.

75 questions
0
votes
1 answer

How to log stderr from Windows bat files in Wix 4

Is there a way to get Wix 4 to log stderr (and stdout) from bat files executed during a Bundle installation? Scenario: I have a Wix Bundle that executes a bat file to create a database using SqlLocalDB:
Jørn Wildt
  • 4,274
  • 1
  • 21
  • 31
0
votes
0 answers

Upgrade of WiX4 generated MSI does not work

I have a WiX MSI project that is upgraded from WiX3 to WiX4 using HeatWave. When I install the MSI it works fine, but when I want to upgrade the installed MSI with a new version generated with WiX4 it does not work and the following dialog is…
Marcel V.
  • 53
  • 9
0
votes
1 answer

WiX v4 Bundle: How to create a localizable bootstrapper application with multiple languages?

I am working with a WiX Toolset v4-based Burn installer bundle, and I want to provide the installer in multiple languages, specifically German and English. I have a slightly modified version of the HyperlinkTheme and two separate localization files,…
Lucas
  • 373
  • 1
  • 9
0
votes
1 answer

Performing a fresh WiX Toolset 4.0 installation?

I'm trying to install the recently released WiX Toolset v4 and not having any luck. According to the docs, "The wix.exe tool requires the .NET SDK, version 6 or later." I installed the .NET SDK 7.0 via winget and ran the command to install WiX only…
0
votes
0 answers

Wix4 getting error 1053 when trying to install a batch as service

I'm trying to build an MSI installer for a nodejs application that needs to run on a windows machine as a service. The issue is I have multiple environment variables that need to be set for the service to start like a database uri. This is why I've…
0
votes
2 answers

Use XSLT to move a node into a sibling node as a child, while adding an attribute (WiX V4)

I am generating a .wxs file using Wix Toolset v4, but it's producing an invalid output. It's trivial to fix manually, but I'd like to fix it automatically if possible. It produces XML of this form:
Kira
  • 3
  • 1
0
votes
1 answer

Wix 4 PackageReference are not resolved to Extensions

EDIT: This was resolved by using "dotnet build [wixproj]" instead of msbuild, but I'll leave the question here for while because I'm curious if I have misunerstood something with how this is supposed to work. I didn't think HeatWave would come into…
Anders Forsgren
  • 10,827
  • 4
  • 40
  • 77
0
votes
1 answer

Basic folder creation with single file .wxs

So I keep getting multiple errors thrown in trying to use wixV4 as a stand-alone command line tool. I’m coming at this having written a .exe in something OTHER than Visual Studio and for the life of me I can’t see why folders don’t show up. Can v4…
0
votes
0 answers

Bundle WiX4 does not install

I have a WiX3.x bundle project and just upgraded it to WiX4 (latest release candidate) using HeatWave. The created bundle does not install (100% reproducible). The log file contains these lines: Error 0x80070057: Failed to initialize data in…
Marcel V.
  • 53
  • 9
0
votes
2 answers

Package/@Languages in WiX 4

In WiX 3 there is Package/@Languages element to specify a list of language the MSI package supports. When using wix convert tool to upgrade to WiX4, this element just gets removed. How do you specify languages in WiX 4 project?
Alex I
  • 2,078
  • 3
  • 18
  • 24
0
votes
1 answer

harvesting Projects in wix4 does not work

I am working on a project for an installer with wix4. Even if wix4 is still a release candidate, my team wants it to work. To harvestthe project, which will be installed, I use HarvestProject. Although the structure of the target project contains…
Flori
  • 1
  • 1
0
votes
1 answer

Harvesting a project in WiX 4: HarvestFileAutogenerateGuids seems to be ignored

I have an installer project made in WiX 3.x and I would like to convert it to WiX 4. It harvests a number of projects in a solution. As specified in the manual (https://wixtoolset.org/docs/reference/heat/) I enabled the harvesting and added some…
ElDog
  • 1,230
  • 1
  • 10
  • 21
0
votes
1 answer

UI validation in WiX custom action proceeds to server mode / installation

Trying to verify user input in a custom dialog using wix4 (same behavior with rc2, rc3 and latest builds). I found various examples of how it's supposed to work, but unfortunately I cannot get it right here. There's a dialog to pick a folder,…
Benjamin Podszun
  • 9,679
  • 3
  • 34
  • 45
0
votes
0 answers

Unable to launch custom .NET 6 BA with WixDotNetCoreBootstrapperApplicationHost in x64

I'm converting a WIX3/.NET4.8 installer to WIX4/.NET6. At the moment, I'm trying to see from the bundle our custom BA, which was converted to .NET6. See previous question with more background With the BA set to win-x64 (for both build and publishing…
PBY
  • 3
  • 3
0
votes
1 answer

wix4 wixproj document element name 'Project' is invalid

When trying to build a wix4 project using a the new wix toolset provided like this: wix build -d Configuration=Debug MySetup.wixproj I get this error: error WIX0048: The document element name 'Project' is invalid. A WiX source file must use 'Wix'…
juagicre
  • 1,065
  • 30
  • 42