I'm using WixSharp
for building an installer.
How can I NOT show the user custom error messages during silent install
only?
I mean - running via GUI
will show the errors, only via silent install
not.
For example adding this custom message of disabling repair:
installer.Load += e =>
{
if (e.IsRepairing)
{
MessageBox.Show("Repair is not supported");
e.Result = ActionResult.UserExit;
}
};
I'm getting the error above while running repair
either via GUI or via silent mode.
I want to get this via GUI mode only.