[DllImport("msi.dll", SetLastError=true)]
static extern int MsiSetInternalUI(int dwUILevel, ref IntPtr phWnd);
or (and define enum INSTALLUILEVEL)
[DllImport("msi.dll", SetLastError = true)]
static extern int MsiSetInternalUI(INSTALLUILEVEL dwUILevel, ref IntPtr phWnd);
<DllImport("msi.dll", SetLastError:=True)> _
Private Function MsiSetInternalUI(dwUILevel As INSTALLUILEVEL, ByRef phWnd As IntPtr) As Integer
End Function
public enum INSTALLUILEVEL
{
INSTALLUILEVEL_NOCHANGE = 0, // UI level is unchanged
INSTALLUILEVEL_DEFAULT = 1, // default UI is used
INSTALLUILEVEL_NONE = 2, // completely silent installation
INSTALLUILEVEL_BASIC = 3, // simple progress and error handling
INSTALLUILEVEL_REDUCED = 4, // authored UI, wizard dialogs suppressed
INSTALLUILEVEL_FULL = 5, // authored UI with wizards, progress, errors
INSTALLUILEVEL_ENDDIALOG = 0x80, // display success/failure dialog at end of install
INSTALLUILEVEL_PROGRESSONLY = 0x40, // display only progress dialog
INSTALLUILEVEL_HIDECANCEL = 0x20, // do not display the cancel button in basic UI
INSTALLUILEVEL_SOURCERESONLY = 0x100, // force display of source resolution even if quiet
}
Do you know one? Please contribute it!
None.
Please add some!
IntPtr hwnd = IntPtr.Zero;
MsiUtils.MsiSetInternalUI(MsiUtils.INSTALLUILEVEL.INSTALLUILEVEL_NONE , ref hwnd);