> For the complete documentation index, see [llms.txt](https://docs.patchmypc.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.patchmypc.com/patch-my-pc-publisher/customizations/list-customizations/manage-conflicting-processes/process-restart-prevention.md).

# Process Restart Prevention section of Manage Conflicting Processes in Patch My PC Publisher

*Applies to: Patch My PC Publisher V3.x*\
*Available at level: All Custom Products, All Products, Vendor, Product*\
*Available on tab: WSUS Updates, ConfigMgr Apps, Intune Apps, Intune Updates*

The **Process Restart Prevention** option prevents the end user from reopening the application whilst the update is in progress. This helps avoid scenarios where the application is closed for the update but immediately relaunched, which could cause the installation to fail or be delayed.

<figure><img src="/files/aexIptWwBcGo8X83U1O2" alt="&#x27;Process Restart Prevention&#x27; setting" width="501"><figcaption></figcaption></figure>

This option is only available at the Product level and should be used for applications where restarting the process during installation is likely to interfere with a successful update.

{% hint style="danger" %}
**Important**

This setting is **not recommended** in most scenarios due to the potential for user disruption and residual system changes if the update process does not complete cleanly.

For some applications, such as **Google Chrome**, enabling this setting can prevent the application from updating. These applications rely on helper processes or self update mechanisms that must be able to launch during the update process. Blocking the executable using Image File Execution Options can interfere with this behavior and cause the update to fail consistently.
{% endhint %}

## How the setting works

When Prevent the end user from opening an application while the application is updating is enabled, Patch My PC uses the Windows Image File Execution Options feature to block the application from launching.

A temporary registry entry is created for the application executable under the Image File Execution Options path. If the user attempts to launch the application during the update, they may see a message such as:

> "An update is currently being installed on your computer. Please do not try to start the application"

or

> "The requested operation requires elevation"

<figure><img src="/files/M2cqXxEZIQUGm5IG4Dm4" alt="Prevent the end user from opening an application" width="479"><figcaption></figcaption></figure>

## Potential Risk

If the ScriptRunner process is forcefully terminated or exits unexpectedly, the Image File Execution Options registry entries may not be cleaned up correctly. When this occurs, users may continue to see the blocking message even though no installation or update is actively running.\
If this happens, the registry entry for the affected process must be removed manually.

Depending on the operating system architecture and the application being blocked, you may need to check one or both of the following registry paths:

```
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows NT\CurrentVersion\Image File Execution Options
```

Look for subkeys named after the blocked executable, such as `notepad++.exe`.

<figure><img src="/files/OJ6h3wo3KYDjucnUaOK0" alt="Image File Execution Options registry entries" width="563"><figcaption></figcaption></figure>

{% hint style="info" %}
**Note**

When Patch My PC ScriptRunner executes on a device, it checks for legacy Image File Execution Options entries that were created by previous Patch My PC update attempts that were not cleaned up correctly. If these entries are detected, ScriptRunner will remove them automatically.

This cleanup only occurs when another Patch My PC application or update is executed on the device. If no further Patch My PC deployments run, the stale registry entries may remain in place.

For this reason, if users are blocked from launching an application due to leftover Image File Execution Options entries, a manual registry cleanup or [PowerShell based remediation](#powershell-based-remediation) is often required to immediately restore application access.
{% endhint %}

## **PowerShell-based Remediation**

If required, the following PowerShell commands can be used to locate and remove all Image File Execution Options entries created by Patch My PC ScriptRunner for process blocking:

```powershell
Get-ChildItem "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options" -ea SilentlyContinue |
Where-Object {
    if ($_.Property -contains "Debugger") {
        ($_ | Get-ItemProperty).Debugger -like "*PreventStart*"
    }
} | Remove-Item -Force -Recurse;

Get-ChildItem "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options" -ea SilentlyContinue |
Where-Object {
    if ($_.Property -contains "Debugger") {
        ($_ | Get-ItemProperty).Debugger -like "*PreventStart*"
    }
} | Remove-Item -Force -Recurse;

```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.patchmypc.com/patch-my-pc-publisher/customizations/list-customizations/manage-conflicting-processes/process-restart-prevention.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
