Wixsharp bootstrapper for webapp

Elinguate

New member
Joined
Jun 19, 2025
Messages
1
Programming Experience
Beginner
I have a wixsharp project to install 3 different MSI. This works properly but the last project is a webapp that needs to be installed locally.
I have a .bat file that installs "IIS", "SSMS", "adds users with permission" etc
I cant seem to find any examples of how to implement this.

would i be best to continue down this road or to create an installer for the web app and just use that on the wixsharp project ?
 
This sounds more like a WixSharp question rather than a C# question...
 
Anyway, do you really need IIS, specially for a local web app? Even the very first .NET Core applications were capable of self-hosting a web application using Kestrel (and it's predecessor whose name currently escapes me) without needing IIS?
 
My understanding is that WixSharp is just built on top of Wix. Even though you would write C# code like scripts instead of the XML expected by Wix, this still doesn't absolve you of the need to understand how the MSI system works, and how Wix works as a representation of the MSI system.

Anyway, the recommended approach is to first see if MSI (and therefore Wix) supports the various operations within the batch file. If it does, then use the appropriate MSI table(s) for them. If it doesn't, then that's when you opt to implement a Custom Action.
 
Back
Top Bottom