C
C#3mo ago
Elio

Project Installer

Hi, i've created a .Net 8.0 Wpf application and i'd like to know which project installer i should choose between wix Toolsets and Microsoft Visual Studio Installer Projects 2022 ? It seems likes Visual Studio Installer Projects 2022 are more .net Framework app oriented.
22 Replies
Jimmacle
Jimmacle3mo ago
WiX is a huge pain in the ass, frankly the documentation is basically just a schema reference and you have to figure pretty much everything out yourself
Elio
ElioOP3mo ago
So, Microsoft Visual Studio Installer Projects 2022 is good enough for basic installation right ? Because I'd like to execute some code during the installation to migrate some old data to the app I'm installing.
Jimmacle
Jimmacle3mo ago
probably, i've never used it i'm currently looking at velopack for my deployments
Elio
ElioOP3mo ago
I'll take a look if it meets my expectations. Just to specify my application is intended to be deployed from on offline PCs
Angius
Angius3mo ago
First and foremost, do you need an installer?
Elio
ElioOP3mo ago
yup because i'll have to install the app and be able to update it on every new machine that we will do
canton7
canton73mo ago
Oh hello! I've been looking for a nice installer framework for years
Angius
Angius3mo ago
Then yeah, Velopack should be nice
Jimmacle
Jimmacle3mo ago
it's very opinionated but in my case that's fine
Angius
Angius3mo ago
I asked because many people just assume they need an installer, while just a self-contained .exe would do
canton7
canton73mo ago
Ah, you can't customise the installer itself at all. That's a shame.
Elio
ElioOP3mo ago
i though it would be enough but to manage the update it will be much easier with an installer that why i'm looking for it ahah
canton7
canton73mo ago
I did manage to get Inno Setup to call into a C# DLL at one point, but it was a faff
Angius
Angius3mo ago
Could maybe use a private winget repository or something But yeah, an installer + updater combo will be easier
Jimmacle
Jimmacle3mo ago
i think you can get wix to call custom code, but like i said wix is a pain in the ass
Elio
ElioOP3mo ago
i have started with Microsoft Visual Studio Installer Projects 2022 but i feel like i won't be able to do everything i want with it
canton7
canton73mo ago
They're all a pain in the arse, quite frankly
Jimmacle
Jimmacle3mo ago
it's supposed to be easier than just writing a MSI yourself which makes me terrified of what writing a MSI is like
canton7
canton73mo ago
Except maybe Advanced Installer, which I haven't played with, and isn't free
Elio
ElioOP3mo ago
Thanks for your anwsers
canton7
canton73mo ago
I tend to go with Inno Setup because it isn't pure pain, and you can at least normally do the things you want to do in it, but be prepared to learn Pascal
Byron
Byron3mo ago
WIX is a PITA but it's pretty much the best option. If you go down that route I suggest you use the project WixSharp (https://github.com/oleg-shilo/wixsharp). This in a neat project that allows you to write the msi configuration in C#. It then compiles into an application, that post build runs itself to generate the .msi. For example writing custom actions in vanilla is a horrible experience but with this project you just write the static methods and it abstracts them into the action assemblies. I ship projects that go to thousands of users this way, so I know it's stable. This is still a bunch of random issues but it's workflows are so much better then hand editing xml files
Want results from more Discord servers?
Add your server