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

LGHT0094 bundling .NET 4.6.1. standalone installer

I need to create an installation package that includes the .NET 4.6.1. standalone installer. I’ve followed the \WixSharp\Samples\Bootstrapper\WixBootstrapper_NoUI sample – it works for the .NET 4.6. standalone installer NetFx46Redist: var…
Palo Mraz
  • 625
  • 5
  • 16
0
votes
1 answer

I would like to set a features directory path dynamically using wix#

I am trying to dynamically set the paths of a wix project created in wix#. None of the directories should be configurable by the user. Two of the directories should be set in either one of the wix# events, or a custom action. The main directory will…
SpaceGhost440
  • 460
  • 4
  • 17
0
votes
2 answers

WiX Bootstrapper WPF custom UI

I read and run sample from here. Some questions: How I can get actions names during the install/uninstall/remove process? How I can pass variables and parameters to embedded MSI? Is any way to get additional information from the embedded MSI…
ZedZip
  • 5,794
  • 15
  • 66
  • 119
0
votes
1 answer

How to implement rollback using Wixsharp (Wix#) installer

I'm new in MSI installers, wix and wixsharp. I need to implement installer with some actions during the installation process (like call some *.exe or set up task scheduler and so on). Bu in case of any problems and exceptions I need a rollback all…
Artem A
  • 2,154
  • 2
  • 23
  • 30
0
votes
1 answer

Create WiX Msi with WiX Sharp

my WiX Sharp program for Creating msi: static public void BuildMsi(string FolderPath) { string InstallationDirectoryPath = @"D:\Program"; var project = new Project("MyProduct", new Dir(InstallationDirectoryPath, …
Raj
  • 33
  • 1
  • 1
  • 8
0
votes
1 answer

wix # script for creating a installer

I have a wpf application which helps user to selects the directory path and when he click create installer button then I want to create installer for user selected directory(inside directory there may me more than one file). I came to know that I…
Raj
  • 33
  • 1
  • 1
  • 8
0
votes
2 answers

In Wix#, how to avoid creating a physical folder on the target system, when deploying only registry entries?

I have several related Windows registry entries that I want packaged inside an MSI, so that 1) there is an uninstall process, and 2) The fact that these registry entries have been applied to a given computer is documented by an Add/Remove Programs…
Developer63
  • 640
  • 7
  • 19
0
votes
2 answers

vsdrfCOMSelfReg equivalent for WixSharp

I am trying to recreate the functionality of a legacy installer using WixSharp. In the legacy Setup Project, some of the third party DLL's were marked "vsdrfCOMSelfReg". I have seen in various places that you can add to the File tag…
TaRDy
  • 999
  • 1
  • 8
  • 21
-1
votes
1 answer

C# Wix Execute CA After Install

Hi i'm trying to execute a custom action after the installation is finished, but only execute when uninstall the program. i try this: new ManagedAction(CustomActions.SayHi, Return.check, When.After, Step.InstallFinalize,…
Jorge Luis
  • 99
  • 3
-1
votes
1 answer

Wix / WixSharp installer. Track user cancel installation event

I'm developing the installer using WixSharp. I want to track (catch, subscribe etc) the event when user clicks the cancel button (cancel / abort installation). I want to track during the stage user inputs the data and during the installation files…
constant
  • 57
  • 1
  • 6
1 2 3 4 5 6
7