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
2
votes
2 answers

Why installer runs after click on shortcut?

I created a simple bootstrapper for my application using WixSharp. namespace TestBootstrapper { class Program { static void Main() { var package = new MsiPackage("../testmsi.msi") { …
2
votes
1 answer

WixSharp - Specifying order for a ManageAction to run when there are multiple

I've been using ManagedActionand and ElevatedManagedAction for sometime and everything has been great; however, I have a need now to execute actions in a particular order, or at least ensure actions are done first/last as may be necessary. I assumed…
Rick
  • 119
  • 1
  • 7
2
votes
2 answers

How to install multiple subdirectories under ProgramFiles64Forder with WixSharp?

I have made a WixSharp 64bit installer that should install files under two different directories under "Program Files". Here is a stripped down version of the code: using System; using WixSharp; using File = WixSharp.File; public class Script { …
Jan Mattsson
  • 143
  • 1
  • 7
2
votes
1 answer

IniFileSearch using WixSharp

I am new to both Wix and WixSharp. I recently learnt Wix and created a basic installer with it. One of the properties I used was 'IniFileSearch' which helped me search a value from an IniFile and use that to find an install location for my files. I…
aniketgade
  • 83
  • 2
  • 7
2
votes
1 answer

WixSharp inject multiple Custom CLR Dialogs

Using WixSharp, we can insert a custom System.Windows.Forms window as dialog . project.InjectClrDialog("ShowCustomDialog", Dialogs.InstallDirDlg, Dialogs.VerifyReadyDlg); [CustomAction] public static ActionResult ShowCustomDialog(Session…
dan_l
  • 1,692
  • 2
  • 23
  • 40
2
votes
2 answers

How to use WixSharp to install a website and associate an AppPool

I am trying to find examples of how to use WixSharp (managed code interface to WiX) to install a website and associate an AppPool. The steps I want to achieve are: If the website exists in IIS 6, delete it. If the AppPool exists in IIS 6, delete…
Andrew
  • 21
  • 2
1
vote
0 answers

Windows Service won't run as a 32 bit process

I have a Windows Service, written in C# (.Net Framework 4.8) and installed using an installer built with WixSharp. The service needs to run as 32bit (because it references a COM component which needs to run in 32 bit). I have tried the…
J S
  • 901
  • 8
  • 15
1
vote
0 answers

Code Signing Wix installer in the pipeline using azure key vault

I'm trying to code sign a Wix installer package that was developed by another company (I have limited knowledge of Wix). As a proof of concept piece of work we did I signed the MSIs and EXE using WixSharp.DigitalSignature as below, which seemed to…
1
vote
1 answer

Is launch Condition shown in silent mode?

Using WixSharp to build installer, Is LaunchCondition shown when running in silent mode? (e.g "msiexec /i /qn /quiet")
R.P
  • 171
  • 1
  • 11
1
vote
0 answers

How can I NOT to display custom error messages in silent install?

I'm using WixSharp for building an installer. How can I NOT show the user custom error messages during silent install only? I mean - running via GUI will show the errors, only via silent install not. For example adding this custom message of…
R.P
  • 171
  • 1
  • 11
1
vote
1 answer

Wixsharp custom ManagedUI after bootstrapper bundle install prerequisites

I want to install prerequisites and then display custom UI, with ManagedUI. So far I noticed that doesn't work. It works if I use Wix prebuild UI (WixUI_FeatureTree) but not with ManagedUI. I have bootstrapped bundle that installs .Net Framework 4.8…
Jure Beton
  • 137
  • 1
  • 9
1
vote
2 answers

Upgrade is not working at all, installing another version of application (Wixsharp, custom Bootstrapper)

I'm new to wix/wixsharp and bootstrapper. I created an installer and providing ProductID, UpgradeCode and version. Installer is working fine but when I'm creating new installer and giving different version it is simply allowing user to install the…
Mayank Tripathi
  • 809
  • 1
  • 7
  • 11
1
vote
0 answers

How can I register an ActiveX Control with WixSharp?

I am re-creating an old installer in Wix for my organization. We need to make changes to it, and during the process improve it. One of the improvements I suggested is to register our COM objects through Windows Installer instead of self-registering.…
sonicbhoc
  • 434
  • 3
  • 15
1
vote
0 answers

Upgrade from older Wix project won't uninstall older instance

I've upgraded an old Wix based installer that has both an MSI generating project and a bootstrapper project (in Visual Studio). The bootstrapper sequences the MSI with a check for .Net pre-requisite/download. The new Wix# project just produces an…
DennisWelu
  • 788
  • 13
  • 26
1
vote
1 answer

Install two mutually-exclusive files with the same name to the same directory

My program deploys with a configuration option that I've chosen to expose as a feature. This option can be one of two values. Each configuration changes a set of settings files. They have different input file names (for the sake of example, let's…
sonicbhoc
  • 434
  • 3
  • 15