Questions tagged [wix]

The WiX Toolset (formerly known as Windows Installer XML) is a toolset that builds Windows installation packages and WiX bootstrappers 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 and EXE bootstrappers. For the cloud-based web development platform, use the [velo] tag.

Filter by
Sorted by
Tagged with
0 votes
0 answers
13 views

Reference Nuget Package in a WiX project

I am trying to add a Nuget package as a reference to a Wix project. I have found how to do exactly what I want to do here: How to Add Nuget package dlls to Wix installer But in this case the project ...
0 votes
0 answers
10 views

When I try to uninstall my software containing an NSSM service, it fails

For the following installer package, I have the service XXXService successfully installed and running, when I install my package. But uninstallation fails with an error and reverts. I suspect, that ...
  • 5,380
0 votes
2 answers
21 views

WiX how to define multiple HarvestPaths

I'm trying to build an installer using WiX. My software provides updates for different versions (V23, V22, V21, and so on). I'm using Heat to generate the list of required libraries (including my own) ...
  • 1,526
0 votes
0 answers
17 views

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. ...
  • 1
0 votes
0 answers
13 views

Can I use a msi property in a Feature title and description. The value of the property is being taken from MSI property [duplicate]

I want to get the MSI property value in the Feature title. But I'm unable to achieve it as I'm seeing the property name within the braces[] in the setup. I've tried something like this <Feature Id=&...
0 votes
0 answers
55 views

How do I resolve Wix form 'Couldn't submit due to temporary issue' error?

I started making a couple of Wix sites. A few weeks ago, the forms stopped working - I'd get an 'Couldn’t submit form due to a temporary issue' error. And they haven't worked since (same error). I'm ...
  • 13
0 votes
1 answer
35 views

When installing an MSI file, how can I take parameters and assign them to an application developed with ElectronJS?

I want to extract the msi file of the application I created with Electron and after the msi file runs, an input field such as url, ip address will be output to the user and the value entered here will ...
0 votes
1 answer
24 views

How do I disable downgrading in WiX Bundle installer

I have a WiX installer for my primary application, and I have created a bootstrapper project which holds two of the pre-requisites (ExePackages) for my primary application. Is there a way for me to ...
0 votes
0 answers
21 views

Wix v3 Installer: pass parameters to custom action [duplicate]

I am working on a rather large size wix v3 installer. I am required to add registry entries based on various conditions. For that, I will have to write elaborate logic in the C# side. I will do that ...
0 votes
0 answers
19 views

Is it possible to add custom dialogs in a JPackage generated MSI installer

I am building a Java application image with a runtime image using Jlink and Jpackage to be distributed for Windows via a MSI installer also generated by JPackage. I would like to add a step in the ...
  • 13
0 votes
0 answers
18 views

Wix MSI Doesn't Removes Folder

I have outlook add-in which is having 4 projects. Project1 (WPF class library) Project2 (WPF class library) Project3 (Shim project) Project4 (WPF project) I have successfully created Project1.msi. ...
0 votes
1 answer
37 views

How do I add a 32bit/64bit reference file based on Platform in Visual Studio

I'm trying to build a project and based on the platform I'm building in, I want a reference file to be added from the allocated location. When I build in x86, I want the program to use the file ...
  • 35
1 vote
1 answer
35 views

Wix V4 - CustomAction Condition only when updating

Details of the problem: I have an action that has to be executed when unistalling but not when updating the product to a new version. I have defined the UpgradeVersion like this: <UpgradeVersion ...
  • 41
0 votes
1 answer
15 views

wix bootstrapper not allowing feature change

I have a simple wix burn bootstrapper that installs an msi. The msi has two features, one of which can be enabled/disabled. If I set Visible="no" and DisplayInternalUI="yes" in ...
  • 1,364
0 votes
1 answer
28 views

how to launch a customized exe file as administartor at the end of the Wix installation

All I create a wix installer to do following task: at the end of the installation (before clicking Finish), launch the customized "Run.exe" to install "VS Redistributable" and ...
  • 327
0 votes
0 answers
18 views

Install condition for WiX using CPack

I want to generate an installer for a hot-patch to an existing application, and I want the installer to fail if the application is not installed (or at the least, if certain environment variable doesn'...
  • 5,700
0 votes
1 answer
24 views

Preventing package installation on ARM processors

I'm tinkering with an installer for keyboard layout drivers (derived from MSKLC), and, just like any other drivers, these are architecture-specific, thus I want to prevent users from installing them ...
0 votes
1 answer
27 views

WIX CNDL0001 System.EntryPointNotFoundException in Linux

I trying use candle.exe in Alpine Linux with dactiv/wix docker image. Command to test docker run --rm dactiv/wix candle Error message latest: Pulling from dactiv/wix 86205afa28f6: Pull complete ...
0 votes
0 answers
26 views

Trigger custom action on Upgrade with product id ="*"

I am using a wix installer which should trigger a custom action on upgrading the product. It does work with hardcoding the guid in the product code "GUID". However not with product id="&...
0 votes
1 answer
27 views

WixSharp: how to package a large folder into a single MSI file without getting 'The system cannot open the device or specified file' error

I'm using WixSharp v1.9.2 to create an MSI file. Since I need to package a very large folder, I create the project like this: var project = new Project( ProjectName, ... new MediaTemplate {...
0 votes
1 answer
30 views

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/...
  • 1,208
0 votes
1 answer
49 views

How install only files from sourceDir with no directories

I have two source folders "hml" and "prod" with files that has the same name. source-files\hml\prop.txt source-files\prod\prop.txt According to an environment variable, the hml ...
0 votes
1 answer
31 views

Msiexec a MSI package with passive got different results in administrator command prompt and normal command prompt

I tried to make up wxs to build a MSI package. The target is to passive install in Standard User account. This MSI copies files, writes HKCU registry, creates folder under %LOCALAPPDATA% and creates a ...
  • 165
0 votes
0 answers
20 views

Application Shortcut created with Advertise='yes' does not show ICON for the shortcut, but shortcut works fine

we have WIX installer script that has been working fine for almost few years now. with recent upgrades to the system running Windows defender, firewall ON, Windows 10, Build: 19044.2673, 21H2 the ...
0 votes
1 answer
36 views

Why does WiX Toolset MSI installer not start a Windows Service via Terminal Services, but does locally?

Use case I was asked to write a WiX Toolset MSI installer for a piece of software (let's call it Z from now on). Z was developed atop of ASP.NET Web API Core 6.0 and it basically exchanges data ...
0 votes
1 answer
24 views

Show Application Launcher Check box For Wix Installer After Repair

I was able to successfully launch application Following this guide. But this check box does not appear for the repair option. <Publish Dialog="ExitDialog" Control="Finish&...
  • 71
0 votes
1 answer
31 views

Post-installation script in Jpackage for Windows

I have been exploring jpackage to create installers for an app and I have already created installers for both MacOs and Linux. Now that I'm trying to create an installer for Windows I came across a ...
0 votes
1 answer
34 views

Ignore a folder when harvesting a folder with heat

I am trying to run heat.exe to harvest a folder. The folder contains 3 sub folders, but I want to ignore one of them 'config'. I tried the following as said in this answer How can I exclude SVN files ...
0 votes
1 answer
46 views

How to change the temporary folder used by WixSharp when building an MSI file?

I am using WixSharp v1.9.2.0 to build an MSI file, but when I call the project.BuildMsi() method, WixSharp creates temporary files in the %Temp% folder of Windows. However, my project is quite large, ...
0 votes
0 answers
24 views

Add External DLL Reference To WIX

I am having 4 projects. Project1 (Depends on Project2 & Project4) Project2 (Depends on Project4) Project3 (Shim Project) Project4 I have Project5.dll which I have to add as reference of Project2....
0 votes
0 answers
51 views

WiX Toolkit / MSI - Combine InstanceTransforms with localization

I am attempting to build a .msi file that supports setup UI localization as well as multiple instances. With WiX 3.11.2, I succeeded using the following in my .wxs to allow side-by-side installs using ...
0 votes
1 answer
29 views

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 ...
0 votes
0 answers
40 views

Why does my WiX installer show two entries in Control Panel

I have created an msi installer using the WiX setup project, and I also have a Bootstrapper project where I have all the other pre requisites for the installation of the msi installer. When I install ...
1 vote
2 answers
55 views

Wix: Accessing properties in a deferred action by setting them in an immediate action: The given key was not present in the dictionary

I am following several sources/SO posts and even the Wix installer book and this is how I am currently setting two properties in an immediate custom action then trying to read it in a deferred action. ...
  • 17
1 vote
0 answers
78 views

Visual Studio 2019 - debugging CustomAction throws exception

I have a Windows Installer Project in my Visual Studio 2019 solution, using Wix Toolset 3.11.2. Wix toolset is installed via Nuget package into solution. I have a Custom-Action which is called by the ...
  • 103
0 votes
0 answers
15 views

WiX Multi-instance installer and Installation Directory

I'm trying to get a multi-instance installer working, based on the information in this blog post by @yan-sklyarenko I'm having trouble understanding how the installation directory should be set when a ...
0 votes
1 answer
29 views

How to create custom VerifyReadyDlg with Wix?

How to create a such dialog in Wix Setup? It was implemented by default in Inno Setup but I am thinking now how to do same in Wix. My main question is how to create disabled text area with describing ...
  • 21
0 votes
0 answers
13 views

installing dotnet 4.8 using windows Installer XML (WIX) [duplicate]

I Just started learning about wix and due to very less learning resources and very less time i was only able to learn little bit about wix i have been assigned a task where i have to install dotnet 4....
  • 1
0 votes
0 answers
10 views

How does the balutil condition evaluate Windows DisplayVersion?

I have a bundle with a registry search fragment below it to find the Windows DisplayVersion. This seems to be the preferred way Microsoft does versioning after Windows 8.1. The comparison between ...
0 votes
1 answer
78 views

How to fetch BIOS details of the system in WIX installer

I am trying to create an installer with Wix. I am a Wix newbie.For our software we checked few pre-requisites like the BIOS version. My requirement is if the BIOS version is suitable for my software ...
0 votes
1 answer
35 views

In a WiX installer how do you determine which features have been selected for installation?

I am using WiX Toolset v3.11 and would like to find out the state of the features after the user has made selections by using a Selection Tree in the Custom dialog. For example, I have this feature: ...
0 votes
1 answer
36 views

Install ends prematurely with error "must be launched with administrative privileges."

I'm using Wix to create an installer to deploy a simple .NET 6 web API in IIS. When I launch the .msi it displays an error popup with the message "The [application] must be launched with ...
0 votes
0 answers
20 views

WIX based MSI does not self elevate

I just watched at a customer site the execution of an MSI of ours that needs elevation, because it is a per machine install. The operator at the customer site was logged in as a consent administrator (...
0 votes
1 answer
19 views

Wix - schedule custom action between StopServices and StartServices

I would like to add a custom action in my Wix installer that runs between the StopServices and the StartServices. So that the service is down when the custom action is running. If I do the following ...
0 votes
1 answer
28 views

How to set wix property in custom action of vbs?

I need to check if C:\Windows\System32\vcruntime*.dll exist before any other custom actions written by QT c++. <CustomAction Id="prechecksystem" Script="vbscript" ...
  • 113
0 votes
1 answer
27 views

How to properly import WixBalExtension in wixproj file?

I am trying to import the WixBalExtension.dll. I confirmed that the path is correct, but I'm running into the following error: The extension 'Wix\WixBalExtension.dll' could not be loaded because of ...
  • 189
0 votes
1 answer
36 views

How to package vcruntime140.dll for a wix custom action DLL written by native c++?

My wix wxs has a CustomAction written by c++: HSRInstall.dll. Inside this dll, windows swdevice.lib, new.lib are linked. So it requires running with vcruntime140.dll. When user execute this msi ...
  • 113
0 votes
1 answer
32 views

How to uninstall exepackage where separate uninstaller executable to be invoked in wix

I am new to Wix. I have an exe package that installs fine while installing the wix bundle. While uninstalling the bundle exe package uninstall path is setting to the program data cache path but this ...
  • 51
0 votes
1 answer
34 views

DirectoryRef: use in 2 different folders

In my installer project I have a harvested output of a referenced project which creates a fragment and, inside it, DirectoryRef element. <?xml version="1.0" encoding="utf-8"?>...
  • 1,208
0 votes
1 answer
40 views

How to conditionally install third party applications in WiX Bundle

I have a WiX installer and I have created a bootstrapper project for the same in order to install my pre requisites. However, I would like pre-requisites to only get installed if they are not already ...

1
2 3 4 5
203