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

Experiences with Wix# WixSharp compared to WiX

We are using Inno Setup and are planning to replace this with WiX. But when evaluating and playing around with WiX, I felt the declarative manner has some limitations compared to programmatic setup solutions. Moreover I found out that the WiX…
MrCube
  • 245
  • 2
  • 9
4
votes
1 answer

Set default installation directory depending on rights

I'm trying to use Wix# to build an MSI installer and I'm quite satisfied with the easy-to-use syntax compared to Wix. Now, I'm trying to do something off-standard and I'm a bit lost, as I'm not really acquainted with Wix. Basically, I wanted to set…
Aleph0
  • 5,816
  • 4
  • 29
  • 80
4
votes
2 answers

Recursive DirFiles to build MSI using Wix#

I'm exploring the features of Wix# and I'm stunned with it's simplicity in comparison to Wix. We are already using the QT Installer Framework, but our customers are also in need for a MSI installation package. I already have a directory containing…
Aleph0
  • 5,816
  • 4
  • 29
  • 80
4
votes
2 answers

WIxsharp debug custom action in console

I have a custom action project which compiles to a .dll, I want to be able to step through my custom actions, i know the package can be changed to wixsharp.bin but this dosn't seen very practical. Regardless, I still tried this method but it didn't…
Chris
  • 367
  • 2
  • 18
4
votes
1 answer

Wixsharp how to reference custom action project

I currently have two projects in my solution, a deployment project which builds the msi and another project which contains my custom actions. I am having trouble referencing my custom actions the same two errros keep appearing: ..\WixSharp…
4
votes
1 answer

Can I install a Windows Service with Wixsharp

I've been working with WIX# (wixsharp) for creating an MSI and I can't see how to install a windows service. I've gone through the whole CHM file but I'm not seeing anything specific for Windows Services. TIA, Brent...
Brent...
  • 43
  • 5
3
votes
4 answers

Wix# create shortcut in common startup folder using C# not XML

I am trying to create a shortcut in the common startup folder so when any user logs on my application is run. I am using the nuget package WinSharp version 1.0.36.2 to create an MSI installer. Below is my Main from the WinSharp project. The idea is…
Zathos
  • 43
  • 8
3
votes
1 answer

specifying custom license file for project in wixsharp

To start with, I am new to WixSharp. For several hours now I have been trying to specify a custom file, License.rtf, for my setup project like this: project.LicenceFile = "License.rtf"; But I keep getting this error: C# Script execution engine.…
Jimmy
  • 41
  • 5
2
votes
1 answer

Update app.config after installation usng Wix#

I am totally new to Wix and wix#, I am trying to update the app.config after the installation is finished. I am able to achieve it by using the Wix Util extension util:XmlFile, but I want it to be done by wix# CustomDialog UI. Below is the code…
DevProf
  • 794
  • 2
  • 9
  • 20
2
votes
1 answer

Wixsharp upgrade is not retaining previous settings like DB data and other configurations

I'm using wixsharp to build my installer. Everytime I give a new build I want to update all my exe, dlls and other binaries but I want to retain manually changed settings like we have an option to store some keys in database that will create some…
Mayank Tripathi
  • 809
  • 1
  • 7
  • 11
2
votes
1 answer

Post Build event is executing before the msi is built in visual studio with wix sharp

I have several projects which generates several references. and in the installer project which ultimately generates a MSI file; using WIX sharp. There are pre build events written to copy the reference from different folder to the packaging folder…
skoley
  • 311
  • 2
  • 7
2
votes
0 answers

How can I install a root certificate using Wix Burn?

I am installing my application in a fully offline environment. Our machines will be completely incapable of connecting to the internet during production scenarios. I am writing a WiX Burn custom bootstrapper, and part of the reason was to install a…
sonicbhoc
  • 434
  • 3
  • 15
2
votes
2 answers

Wix#: how to bind custom UI decision to actual installation steps?

We have two installation modes: service and app. Using Wix#, I couldn't find a way to present this simple two-radio buttons dialog to the user: Choose your installation: (*) App [default] ( ) Service And then choose which files (and action) to…
Tar
  • 8,529
  • 9
  • 56
  • 127
2
votes
0 answers

Wixsharp set file association in setup

I'm trying to figure out how to set file association in "Wixsharp", basically I need to create a setup with option to select a checkbox for associating the files types. Question is : how do I do this ?
MINIKAS
  • 57
  • 7
2
votes
0 answers

How to change wixsharp bootstrapper InstallDir

I have the following code in my HyperlinkLargeTheme.xml: [InstallDir]
1
2 3 4 5 6 7