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

# 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](https://docs.xbox.com/home/setup-install/concepts/deployment.md)

## See also

[Overview of Packaging](https://docs.xbox.com/build/core-features/common/packaging/overviews/packaging.md)\
[Streaming Installation and Intelligent Delivery](https://docs.xbox.com/build/core-features/common/packaging/overviews/streaming_install-intelligent_delivery.md)\
[XPackage](https://docs.xbox.com/reference/system/xpackage/xpackage_members.md)


## Related topics

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