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

# AdvInstallFileW(3w)

## NAME

**AdvInstallFileW** (ADVPACK.@)

## SYNOPSIS

HRESULT AdvInstallFileW\
  (\
   HWND    *hwnd*,\
   LPCWSTR *lpszSourceDir*,\
   LPCWSTR *lpszSourceFile*,\
   LPCWSTR *lpszDestDir*,\
   LPCWSTR *lpszDestFile*,\
   DWORD   *dwFlags*,\
   DWORD   *dwReserved*\
  )

## DESCRIPTION

Copies a file from the source to a destination.

## PARAMS

*hwnd* **\[In\]**  Handle to the window used for messages.

*lpszSourceDir* **\[In\]**  Source directory.

*lpszSourceFile* **\[In\]**  Source filename.

*lpszDestDir* **\[In\]**  Destination directory.

*lpszDestFile* **\[In\]**  Optional destination filename.

*dwFlags* **\[In\]**  See advpub.h.

*dwReserved* **\[In\]**  Reserved. Must be **0.**

## RETURNS

**Success:** **S\_OK**.

**Failure:** **E\_FAIL**.

## NOTES

If *lpszDestFile* is **NULL**, the destination filename is the same as lpszSourceFIle.

## IMPLEMENTATION

Declared in **"advpub.h"**.

Implemented in **"dlls/advpack/files.c"**.

Debug channel **"advpack"**.
