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
1
vote
0 answers

system.design reference issue of WixSharp on .net 4

I'm trying to use WixSharp with .net 4, but I got this warning: Warning The currently targeted framework ".NETFramework,Version=v4.0,Profile=Client" does not include "System.Design, Version=4.0.0.0, Culture=neutral,…
Felix
  • 2,673
  • 3
  • 30
  • 38
1
vote
2 answers

How to stop machine restart after update of the installed app? Wix installer

I have a wixsharp installer with Custom actions (where I start and stop tasks in Task scheduler and remove my custom certificate). If I install, uninstall or repair current version, then everything is OK. But if I just change(increase) the version…
Artem A
  • 2,154
  • 2
  • 23
  • 30
1
vote
2 answers

Pass user input from ManagedUI to CustomAction in WixSharp

Here is my code to fill my session in ManagedUI from: void next_Click(object sender, EventArgs e) { MsiRuntime.Session["PASSWORD"] = password.Text; MsiRuntime.Session["DOMAIN"] = domain.Text; Shell.GoNext(); } and here is my…
Ali Bahrami
  • 5,935
  • 3
  • 34
  • 53
1
vote
1 answer

Wix# Empty Directories sample does not work?

What I'm trying to do is to create an empty folder using wix# installer. I've found the "Empty Directories" sample ( "src/WixSharp.Samples/Wix# Samples/Empty Directories" ) which says that: When working with raw Wix you cannot have empty…
mt_serg
  • 7,487
  • 4
  • 29
  • 45
1
vote
2 answers

Custom action calling into .NET 4 assembly

I have a .NET library (dll) of helper methods specific to installing my product, that targets .NET 4. However, the "main" WIX project is targeting .NET 3.5 (as specified in the documentation) (meaning it runs on the 2.0 runtime). It has custom…
Cristian Diaconescu
  • 34,633
  • 32
  • 143
  • 233
1
vote
1 answer

Wix 3.9 installer - 'cs' file Vs. 'wxs' file

I am searching the web but can't find any good documentation regarding this: what definitions should be part of the 'cs' file and what should be part of the 'wxs' file ? I am editing an existing (and working) installer project, which is…
Nisim Naim
  • 151
  • 1
  • 15
1
vote
2 answers

run wix batch script as elevated/admin

I have written a WIX Installer using wixsharp that wraps a legacy installation procedure that used a batch file. When running the MSI as an non-admin I do get prompted to elevate (the UAC dialog) however the batch script is run as a non-admin var…
wal
  • 17,409
  • 8
  • 74
  • 109
0
votes
1 answer

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 { CompressionLevel =…
El_Merendero
  • 603
  • 3
  • 14
  • 28
0
votes
1 answer

WixSharp: Invalid characters in path error when adding ManagedAction to Project

I am using WixSharp v1.9.2 to create an MSI file, and I am trying to add a ManagedAction to my Project object. However, when I execute the project.BuildMsi() instruction, I get the error message "Invalid characters in the path." I am creating the…
El_Merendero
  • 603
  • 3
  • 14
  • 28
0
votes
1 answer

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, and soon my C drive is full, causing the MSI…
El_Merendero
  • 603
  • 3
  • 14
  • 28
0
votes
1 answer

Why is it possible to install two MSIs with the same upgrade code?

Building MSIs with WixSharp since years, I always followed this rule which basically says: For each new release of your application, change the ProductCode but never change the UpgradeCode. This always worked perfectly but recently I discovered…
Uwe Keim
  • 39,551
  • 56
  • 175
  • 291
0
votes
1 answer

Wix (Wixsharp) one msi in different bundles

I have two bundles. Both bundles contain 2 msis. One of these msis is shared between bundles so we have something like that: Bundle1 contains Product1.msi and Aux.msi Bundle2 contains Product2.msi and Aux.msi As you can see Aux.msi is part of both…
Grigoriy
  • 96
  • 6
0
votes
0 answers

C#- WixSharp: Sql Server/Windows Authentication for Sql Database

I'm using wixsharp to create database and currently don't know how to setup installation to work for both Sql Server and Windows Authentication. I created custom credentials dialog where I set Database Name, Catalogue Name, Username, password, and…
0
votes
1 answer

Run upgrade in is cmd not working wixsharp

I implemented the MajorUpgrade element, when I want to run the upgrade via the command line, I have to to run the msi of the higher version with /i .(e.g msiexec /i ) /u does nothing. (e.g does show no error/ no message at the…
R.P
  • 171
  • 1
  • 11
0
votes
1 answer

ProgramData environment variable not recognized wixsharp

I tried to delete a folder at uninstall but it does nothing. specifying the path though, get it to work. Not working: public void OnAfterInstall(SetupEventArgs e) { if (e.IsUninstalling) { …
R.P
  • 171
  • 1
  • 11