RunSetupCommandW(3w)

RunSetupCommandW3w

Usage

HRESULT RunSetupCommandW
(
HWND hWnd,
LPCWSTR szCmdName,
LPCWSTR szInfSection,
LPCWSTR szDir,
LPCWSTR lpszTitle,
HANDLE* phEXE,
DWORD dwFlags,
LPVOID pvReserved
)

Overview

Executes an install section in an INF file or a program.

Params

hWnd [In] Handle to parent window, NULL for quiet mode.

szCmdName [In] Inf or EXE filename to execute.

szInfSection [In] Inf section to install, NULL for DefaultInstall.

szDir [In] Path to extracted files.

szTitle [In] Title of all dialogs.

phEXE [Out] Handle of EXE to wait for.

dwFlags [In] Flags; see include/advpub.h.

pvReserved [In] Reserved.

Returns

S_OK Everything OK S_ASYNCHRONOUS OK, required to wait on phEXE ERROR_SUCCESS_REBOOT_REQUIRED Reboot required E_INVALIDARG Invalid argument given HRESULT_FROM_Win32(ERROR_OLD_WIN_VERSION) Not supported on this Windows(tm) version E_UNEXPECTED Unexpected error HRESULT_FROM_Win32(GetLastError()) Some other error

Implementation

Declared in "advpub.h".

Implemented in "dlls/advpack/install.c".

Debug channel "advpack".

Releases

4 releases since Debian 4.0 (Etch); the text changed 3 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7

From libwine-dev 1.4.1-4 in Debian 7 (Wheezy). Parsed by carta from the page's man source.