---
name: "MsiGetMode"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/MsiGetMode"
---

# MsiGetMode(3w)

## NAME

**MsiGetMode** (MSI.@)

## SYNOPSIS

BOOL MsiGetMode\
  (\
   MSIHANDLE  *hInstall*,\
   MSIRUNMODE *iRunMode*\
  )

## DESCRIPTION

Returns an internal installer state (if it is running in a mode *iRunMode*).

## PARAMS

*hInstall* **\[In\]**  Handle to the installation.

hRunMode **\[In\]**  Checking run mode **MSIRUNMODE\_ADMIN** Administrative mode **MSIRUNMODE\_ADVERTISE** Advertisement mode **MSIRUNMODE\_MAINTENANCE** Maintenance mode **MSIRUNMODE\_ROLLBACKENABLED** Rollback is enabled **MSIRUNMODE\_LOGENABLED** Log file is writing **MSIRUNMODE\_OPERATIONS** Operations in progress?? **MSIRUNMODE\_REBOOTATEND** We need to reboot after installation completed **MSIRUNMODE\_REBOOTNOW** We need to reboot to continue the installation **MSIRUNMODE\_CABINET** Files from cabinet are installed **MSIRUNMODE\_SOURCESHORTNAMES** Long names in source files is suppressed **MSIRUNMODE\_TARGETSHORTNAMES** Long names in destination files is suppressed **MSIRUNMODE\_RESERVED11** Reserved **MSIRUNMODE\_WINDOWS9X** Running under Windows95/98 **MSIRUNMODE\_ZAWENABLED** Demand installation is supported **MSIRUNMODE\_RESERVED14** Reserved **MSIRUNMODE\_RESERVED15** Reserved **MSIRUNMODE\_SCHEDULED** called from install script **MSIRUNMODE\_ROLLBACK** called from rollback script **MSIRUNMODE\_COMMIT** called from commit script.

## RETURNS

In the state: **TRUE** Not in the state: **FALSE**

## IMPLEMENTATION

Declared in **"msiquery.h"**.

Implemented in **"dlls/msi/install.c"**.

Debug channel **"msi"**.
