I have a simple C# application which I need to create a silent installer for. I am using Visual Studio Installer (MSI-based). Since it is C# application, installer must install .NET framework as prerequisites.
Setup project in my solution produces 2 files: setup.exe
, and app.msi
, a bootstrapper and MSI files respectfully.
Also: installation would always be under elevated privileges, this is a safe assumption.
So I was trying to launch both setup.exe
and app.msi
in a way that installation is completely silent for cases when .NET is installed and not installed.
msiexec /i app.msi /qn
This works silently on machine that has .NET installed and silently fails on machine that does not have .NET installed.
Other combinations work non-silently or display some popups.
So is it possible to make such installation process silent? Or, at least, let .NET installation show popups but the application itself must be silent (also, there should be no other popups like "Setup is initializing components" etc, that are not related to .NET installation)