Questions tagged [wixsharp]

For C# developers needing to create a Windows Installer MSI to deploy their app, Wix# is perhaps the best replacement for the "Packaging and Deployment" project type that Microsoft removed from Visual Studio starting with VS2012. Wix is a C# front end for the WiX toolset that allows building a complete Windows Installer MSI in the C# language.

For C# developers needing to create a Windows Installer MSI to deploy their app, Wix# is perhaps the best replacement for the "Packaging and Deployment" project type that Microsoft removed from Visual Studio starting with VS2012. Wix is a C# front end for the WiX toolset that allows building a complete Windows Installer MSI in the C# language. Wix# works by translating C# code to WiX XML (.wxs file), that is then processed by the WiX toolset, to produce a resulting MSI. Wix# is generally simpler to start creating installers with than using WiX XML directly. In the process of learning and using Wix# you will also want to learn more about the WiX toolset, to fully understand what Wix# is doing.

For WiX features that are not directly implemented in Wix#, it is possible to include them in your installs by using a feature known as XML injection, which injects the WiX XML for the feature into the .wxs file that Wix# produces, which is then processed by the WiX toolset compilers.

Wix# also removes the necessity to develop MSI Custom Actions in a completely different language (e.g. C++) from the main installer. Using Wix#, the MSI installer's components plus also any Custom Action behaviors can both be specified in the same language (C#), and in the same C# source file. This simplifies the creation of MSI installers and allows developers with a strong C# skill set to use their preferred skill set in creating MSI installers.

100 questions
0
votes
1 answer

Set service's version NOT by GUI, wix

How to set the service version as the installer version, using wix? How to set it by the installer's coding, NOT by GUI. For example : running service creates a .exe file in the bin folder.
R.P
  • 171
  • 1
  • 11
0
votes
1 answer

Multiple instances in Add/Remove program Wix

I'm using WixSharp to build an installer. Using Major Upgrade element works as excepted(upgrade and downgrade) I don't want multiple instances to be installed. I've copy msi file in two location in the PC, so I have two files: a.msi and b.msi with…
R.P
  • 171
  • 1
  • 11
0
votes
1 answer

How can I disable repair?

I'm using WixSharp for building a windows service installer. I want to disable repair option. using those properties remove the option from the Control Panel ONLY. "ARPNOREPAIR" , "ARPNOMODIFY" Is there a way to disable repair from the CMD and…
R.P
  • 171
  • 1
  • 11
0
votes
1 answer

error LGHT0103 : The system cannot find the file

Running a WixSharp Managed Setup up project I'm getting this error. Using WixUI_Common C:\agent\_work\66\s\src\ext\UIExtension\wixlib\Common.wxs(7) : error LGHT0103 : The system cannot find the file This location…
R.P
  • 171
  • 1
  • 11
0
votes
0 answers

How to read a json file that is embedded as part of an MSI package and populate the values in a combo box in the MSI UI?

I am developing an MSI installer using Wixsharp.Net and need to update the combo box in the custom managed UI with the data from (Serialized) JSON configuration file. Request to throw some light on how to implement this using .NET and Wixsharp
Anidil
  • 61
  • 1
  • 3
0
votes
1 answer

How to add all contents of build folder to installation using Wix#?

Im trying to add all output files of a given path to the installation that end in either .exe, .dll or .config, but the ways I have tried so far haven't worked. This is what I've tried: private static WixEntity[] getContents(string directory) { …
Felix t
  • 19
  • 6
0
votes
2 answers

My program folder only contains empty folders after installing with Wix#

Heres what i have var project = new ManagedProject(productName, new Dir($"%ProgramFiles%\\{companyName}", new Dir($"{productName}", new Files(clientFolderPath, …
Felix t
  • 19
  • 6
0
votes
2 answers

Provide the Installation directory location at runtime in wix sharp

I am using wix sharp to develop my installer and everything is working fine except I'm unable to provide the install directory location at run time. While installation, I'm taking input from user and storing them in environment variable as…
Mayank Tripathi
  • 809
  • 1
  • 7
  • 11
0
votes
2 answers

How can I execute parts of my setup between dialogs using Wix/Wix#

The program im installing using Wix requires a Database Server for its database, so I would like to give the user the option to run the Server setup before continuing with the setup. I know how to chain the setup using CustomActions, but how can I…
Felix t
  • 19
  • 6
0
votes
1 answer

How can I use WixUI to select a server to run a script on Installation

Im using Wix# to deploy our software which needs to run an SQL script to install the database on installation. However I would like to give the user the option to select the server to install the database on, or install a new server instance to run…
Felix t
  • 19
  • 6
0
votes
1 answer

Is it possible to build Wix/Wix# UI with MVVM?

I am currently reading into building a custom UI using Wix#, but since I have more experience with (WPF) MVVM than with WinForms i was wondering if it was possible to use that instead. Is it possible?
Felix t
  • 19
  • 6
0
votes
0 answers

Will my customers need SQL Server Express installed in order for my WiX installer to install the SQL Server database for my software?

I'm using Wix# to install my software and am running a script to install the database used by my software. Will users installing my software need to have SQL Server Express or some alternative installed in order for the script to run…
Felix t
  • 19
  • 6
0
votes
1 answer

How can we bundle and install lower version of dotnet core using Wix Sharp?

We developed our application and tested over DotNet core 3.1.101 and it was working fine but what happened is Microsoft updated dotnet core to 3.1.111 and it breaks our application and we are asking customer to downgrade the core version manually…
Mayank Tripathi
  • 809
  • 1
  • 7
  • 11
0
votes
2 answers

WixSharp including appsettings, regardless of predicate

Im using WixSharp to build my installer. In my project, I have this : new Files( new Feature("RootFilesFeature"), Path.Combine(C_SERVICE_RELEASE_PATH,"*.*"), (lFilename) => !lFilename.StartsWith("appsettings", true) ) Regardless of that…
WynDiesel
  • 1,104
  • 7
  • 38
0
votes
1 answer

Wixsharp - Could not load file or assembly

I am trying to include some reference files in Wix# managed project using DefaultRefAssemblies.Add method: ManagedProject project = new…
Sneijder
  • 1
  • 1