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
1 answer

WixSharp: Is it Possible to set the Product(Msi)-Name dynamic?

for my WPF-Project I want to create an installer with WixSharp. But I also want to install the same Project with different Names and configuration-files (DEV, TEST, LIVE). Is this possible and how? Do I need different Project-Guid's for each…
StefanM
  • 49
  • 1
  • 5
1
vote
1 answer

WixSharp Borderless Custom UI

There is an issue I am facing. I am using Cutom Managed UI Dialogs. I want a borderless Windows form. I managed to create a borderless windows form, but when the dialog is displayed in the Installer there is a thin White bar over the top which is…
1
vote
1 answer

How do I generate a file based on user input in MSI created using WixSharp?

I created an installation MSI package using WixSharp. I have a custom dialog with language, server, etc. options. I want to generate an application config file based on these options and deploy it next to the .exe file as part of an installation…
Erik Parso
  • 194
  • 14
1
vote
0 answers

Difference between Session and Data in WixSharp?

I´m creating an installer with WixSharp and i´m having some issues while trying to understand the difference between Session and Data. When should i use each one and what are they used for? Thanks! I tried looking for Documentation but i only found…
Tigre1902
  • 31
  • 8
1
vote
1 answer

How to run exe file after installation servise with WIX.sharp (My objective - create msi for service)?

I`m use WIX.sharp for create msi. Please help me: how to run exe file after installation servise? Now it leads to an error (when I use my msi). My application starts for init cofiguration file of service. Now it seems like this: project.Binaries =…
1
vote
1 answer

Creating a dynamic install directory in WiXSharp

I am having trouble with with my directories, I want my InstallDir to be my top parent directory and for any other Dir to be contained within this folder structure. I have tried this multiple ways and can't seem to work it out but what I am aiming…
Chris
  • 367
  • 2
  • 18
1
vote
3 answers

how to create an internet shortcut with WixSharp

I'm using WixSharp to put together an installer. I'd like to have a shortcut in the Program Files\ menu to open a webpage. Can I do that with WixSharp?
Frank Schwieterman
  • 24,142
  • 15
  • 92
  • 130
1
vote
1 answer

build and deployment automation for msbuild EXE projects

I'm working on some automated build changes and have some questions as to the best approach for building/packaging EXE applications. Conceptually, there are two scripts. The first builds everything at puts the resulting binaries on a share so they…
Frank Schwieterman
  • 24,142
  • 15
  • 92
  • 130
1
vote
2 answers

Using WixSharp how to get the proper InstallDir path during a Custom Action which is executed at uninstall

I created a msi Setup with WiX using WixSharp. It includes several Custom Actions. For instance during installation time I am executing some batch files which are installing and starting a service. And during uninstall it should stop and uninstall…
NexX
  • 303
  • 3
  • 13
1
vote
1 answer

Creating auto-update by Wix Sharp

I have an installer created using Wix Sharp. Sometimes the application has to be updated, and it is important for me to find the way to do it. I think that the best way is to create one more app "App updater", which will check the version of the…
1
vote
2 answers

WixSharp: How to exclude files from copying to destination directory?

I am using a WixSharp to create Installer. I have a few custom UI created and one of them has simple checkbox to determine if installer should override config files. It is possible to create custom action or something else which would cause that the…
PolarisPlus
  • 11
  • 1
  • 3
1
vote
1 answer

WiX Upgrade with custom versioning

I got a problem. I want to upgrade my app during installation process, but I run into problem with versioning. I use version number in format e.g. 5.5.789.0, some new version has version number in format 5.5.12.1. I know that installer only works…
benderto
  • 896
  • 11
  • 39
1
vote
0 answers

can 'Program and Features' uninstall to call External UI?

Is it possible to get the uninstall request from 'program and features' to call the External UI? I want to add some uninstall options. At the moment, a basic prompt appears and the pre uninstall actions file, but it is possible to return to the…
Ron
  • 71
  • 2
  • 6
1
vote
3 answers

Wixsharp - Passing values from ManagedAction to ElevatedManagedAction

My MSI installation needs to be two-phase. In the first I collect data from user, and in the second one I want to run the actual installation using the collected values from the 1st phase. The 2nd phase needs to be run in elevated context. I found…
Michal.Jan008
  • 135
  • 11
1
vote
1 answer

Custom Logging information

I'm new to wix#, and wanted to know if you can either have a custom log file creation or if you can inject messages into the process. I find that the log files are not as detailed as I would like. Thanks for the help
Omnia9
  • 1,563
  • 4
  • 14
  • 39