> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XPackageIsPackagedProcess

> XPackageIsPackagedProcess

# XPackageIsPackagedProcess

Returns a Boolean that indicates whether the current process has an installation identity.

## Syntax

```cpp theme={null}
bool XPackageIsPackagedProcess(  
)  
```

### Parameters

None.

### Return value

Type: bool

If the process has an installation identity, it returns true. Otherwise, it returns false.

## Remarks

You can determine whether a game is fully installed. The following code example works for packaged MSICVC games and for loose deployments. The return value `bool *isInstalled` is set to true if the game is fully installed.

```cpp theme={null}
HRESULT IsPackageCompletelyInstalled(bool *isInstalled)
{
    if (XPackageIsPackagedProcess())
    {
        char id[XPACKAGE_IDENTIFIER_MAX_LENGTH];
        HRESULT hr = XPackageGetCurrentProcessPackageIdentifier(_countof(id), id);
        if (FAILED(hr)) return hr;

        XPackageInstallationMonitorHandle monitor;
        hr = XPackageCreateInstallationMonitor(id, 0, nullptr, 0, nullptr, &monitor);
        if (FAILED(hr)) return hr;

        XPackageInstallationProgress progress;
        XPackageGetInstallationProgress(monitor, &progress);

        *isInstalled = (progress.completed);

        XPackageCloseInstallationMonitorHandle(monitor);
    }
    else
    {
        *isInstalled = true;
    }

    return S_OK;
}
```

## Requirements

**Header:** XPackage.h

**Library:** xgameruntime.lib

**Supported platforms:** Windows, XBOX One family consoles and XBOX Series consoles

## Conceptual documentation

* [Deploying your title to your XBOX Development Kit](/home/setup-install/concepts/deployment)

## See also

[Overview of Packaging](/build/core-features/common/packaging/overviews/packaging)<br />[Streaming Installation and Intelligent Delivery](/build/core-features/common/packaging/overviews/streaming_install-intelligent_delivery)<br />[XPackage](/reference/system/xpackage/xpackage_members)


## Related topics

- [XPackage](/reference/system/xpackage/xpackage_members.md)
- [Debugging PC projects using Visual Studio](/tools/tools-pc/visualstudio/gr-vs-debugging-with-visualstudio.md)
- [Localization of packaged resources](/build/game-principles/localization/localization-of-packaged-resources.md)
- [PC Bootstrapper](/build/gdk-and-engines/guides/pc-bootstrapper.md)
- [Packages](/publishing/game-publishing/concepts/game-package-management.md)
