> 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-cloud-api/powershell/set-pmpccustomapplication.md). Agents can also search and read this documentation through its [MCP server](https://docs.patchmypc.com/~gitbook/mcp).

# Set-PmpcCustomApplication

Edits an application's current version in place.

[Back to the Cloud Customer API overview](https://docs.patchmypc.com/patch-my-pc-cloud-api)

## Synopsis

Edits an application's current version in place.

## Syntax

### Properties (Default)

{% code collapsedlinecount="10" %}

```powershell
Set-PmpcCustomApplication [-ProductId] <Guid> [-UpdateId <Guid>] [-DisplayName <String>]
  [-Description <String>] [-Publisher <String>] [-Owner <String>] [-Developer <String>]
  [-IntuneNotes <String>] [-PrivacyUrl <String>] [-InformationalUrl <String>]
  [-IconPath <String>] [-FolderPath <String>] [-PrimaryInstallerFile <String>]
  [-UploadOption <ChunkUploadOptions>] [-ChunkSize <Int32>] [-MaxChunkConcurrency <Int32>]
  [-MaxFileConcurrency <Int32>] [-MaxHashingConcurrency <Int32>]
  [-UploadTimeout <TimeSpan>] [-RetryAttempt <Int32>] [-ArpDisplayNameMatch <String>]
  [-CmdArguments <String>] [-SilentUninstallArg <String>] [-MsiProductCode <Guid>]
  [-ConflictingProcess <String[]>] [-DetectionRules <DetectionRulesDto>]
  [-CustomRequirements <CustomRequirementsDto>] [-WhatIf] [-Confirm] [<CommonParameters>]
```

{% endcode %}

### Metadata

{% code collapsedlinecount="10" %}

```powershell
Set-PmpcCustomApplication [-Metadata] <ApplicationEditMetadata>
  [-UploadOption <ChunkUploadOptions>] [-ChunkSize <Int32>] [-MaxChunkConcurrency <Int32>]
  [-MaxFileConcurrency <Int32>] [-MaxHashingConcurrency <Int32>]
  [-UploadTimeout <TimeSpan>] [-RetryAttempt <Int32>] [-WhatIf] [-Confirm]
  [<CommonParameters>]
```

{% endcode %}

## Description

Corrects an already-published application without publishing a new version: fixes a display name, changes an owner or developer, replaces an icon, or amends detection rules.

Only what you specify changes. Every unspecified property keeps its current value, and specifying nothing about files uploads nothing at all. To ship new content under a new version number, use Update-PmpcCustomApplication instead; that is the one thing this cannot do.

When -FolderPath is supplied, the folder is hashed and compared against the version's current files, and only files that are new or whose content changed are uploaded.

## Parameters

### -ArpDisplayNameMatch

Pattern matched against the application's Add/Remove Programs display name. Used for detection when no custom detection rules are supplied.

| Attribute      | Value           |
| -------------- | --------------- |
| Type           | `System.String` |
| Required       | False           |
| Position       | Named           |
| Pipeline input | False           |
| Aliases        | None            |
| Parameter sets | Properties      |

### -ChunkSize

Size of each upload chunk, in bytes. Defaults to 8 MB. Only applies to files large enough to be chunked.

| Attribute      | Value          |
| -------------- | -------------- |
| Type           | `System.Int32` |
| Required       | False          |
| Position       | Named          |
| Pipeline input | False          |
| Aliases        | None           |
| Parameter sets | All            |

### -CmdArguments

Arguments passed to the installer for a silent install.

| Attribute      | Value           |
| -------------- | --------------- |
| Type           | `System.String` |
| Required       | False           |
| Position       | Named           |
| Pipeline input | False           |
| Aliases        | None            |
| Parameter sets | Properties      |

### -Confirm

Prompts you for confirmation before running the cmdlet.

| Attribute      | Value                                          |
| -------------- | ---------------------------------------------- |
| Type           | `System.Management.Automation.SwitchParameter` |
| Required       | False                                          |
| Position       | Named                                          |
| Pipeline input | False                                          |
| Aliases        | cf                                             |

### -ConflictingProcess

Processes that must not be running when the application installs.

| Attribute      | Value                |
| -------------- | -------------------- |
| Type           | `System.String[]`    |
| Required       | False                |
| Position       | Named                |
| Pipeline input | False                |
| Aliases        | ConflictingProcesses |
| Parameter sets | Properties           |

### -CustomRequirements

Custom system requirements. Supplying them replaces the default single-architecture requirement.

| Attribute      | Value                   |
| -------------- | ----------------------- |
| Type           | `CustomRequirementsDto` |
| Required       | False                   |
| Position       | Named                   |
| Pipeline input | False                   |
| Aliases        | None                    |
| Parameter sets | Properties              |

### -Description

Description shown to end users.

| Attribute      | Value           |
| -------------- | --------------- |
| Type           | `System.String` |
| Required       | False           |
| Position       | Named           |
| Pipeline input | False           |
| Aliases        | None            |
| Parameter sets | Properties      |

### -DetectionRules

Custom detection rules. Supplying them replaces the default detection derived from -MsiProductCode or the ARP match patterns.

| Attribute      | Value               |
| -------------- | ------------------- |
| Type           | `DetectionRulesDto` |
| Required       | False               |
| Position       | Named               |
| Pipeline input | False               |
| Aliases        | None                |
| Parameter sets | Properties          |

### -Developer

Developer recorded against the application.

| Attribute      | Value           |
| -------------- | --------------- |
| Type           | `System.String` |
| Required       | False           |
| Position       | Named           |
| Pipeline input | False           |
| Aliases        | None            |
| Parameter sets | Properties      |

### -DisplayName

Name shown to end users.

| Attribute      | Value           |
| -------------- | --------------- |
| Type           | `System.String` |
| Required       | False           |
| Position       | Named           |
| Pipeline input | False           |
| Aliases        | None            |
| Parameter sets | Properties      |

### -FolderPath

Folder whose contents replace the application's files. Omitting it keeps the current file list exactly as it is and uploads nothing.

| Attribute      | Value           |
| -------------- | --------------- |
| Type           | `System.String` |
| Required       | False           |
| Position       | Named           |
| Pipeline input | False           |
| Aliases        | None            |
| Parameter sets | Properties      |

### -IconPath

Replacement icon file to upload. Omitting it keeps the current icon.

| Attribute      | Value           |
| -------------- | --------------- |
| Type           | `System.String` |
| Required       | False           |
| Position       | Named           |
| Pipeline input | False           |
| Aliases        | None            |
| Parameter sets | Properties      |

### -InformationalUrl

Information URL shown to end users.

| Attribute      | Value           |
| -------------- | --------------- |
| Type           | `System.String` |
| Required       | False           |
| Position       | Named           |
| Pipeline input | False           |
| Aliases        | None            |
| Parameter sets | Properties      |

### -IntuneNotes

Notes surfaced on the application in Intune.

| Attribute      | Value           |
| -------------- | --------------- |
| Type           | `System.String` |
| Required       | False           |
| Position       | Named           |
| Pipeline input | False           |
| Aliases        | None            |
| Parameter sets | Properties      |

### -MaxChunkConcurrency

Number of chunks uploaded in parallel for a single file. Defaults to 4.

| Attribute      | Value          |
| -------------- | -------------- |
| Type           | `System.Int32` |
| Required       | False          |
| Position       | Named          |
| Pipeline input | False          |
| Aliases        | None           |
| Parameter sets | All            |

### -MaxFileConcurrency

Number of files uploaded in parallel. Total in-flight requests is roughly this multiplied by -MaxChunkConcurrency.

| Attribute      | Value          |
| -------------- | -------------- |
| Type           | `System.Int32` |
| Required       | False          |
| Position       | Named          |
| Pipeline input | False          |
| Aliases        | None           |
| Parameter sets | All            |

### -MaxHashingConcurrency

Number of files hashed in parallel before upload. Defaults to the processor count.

| Attribute      | Value          |
| -------------- | -------------- |
| Type           | `System.Int32` |
| Required       | False          |
| Position       | Named          |
| Pipeline input | False          |
| Aliases        | None           |
| Parameter sets | All            |

### -Metadata

A fully-built SDK metadata object, for callers that already construct one (for example when driving the module from existing SDK code). Mutually exclusive with the individual property parameters.

| Attribute      | Value                     |
| -------------- | ------------------------- |
| Type           | `ApplicationEditMetadata` |
| Required       | True                      |
| Position       | 0                         |
| Pipeline input | True (ByValue)            |
| Aliases        | None                      |
| Parameter sets | Metadata                  |

### -MsiProductCode

MSI product code. Its presence is what marks the application as an MSI rather than an EXE, so it cannot be used to clear the value on an existing MSI application.

| Attribute      | Value         |
| -------------- | ------------- |
| Type           | `System.Guid` |
| Required       | False         |
| Position       | Named         |
| Pipeline input | False         |
| Aliases        | None          |
| Parameter sets | Properties    |

### -Owner

Owner recorded against the application.

| Attribute      | Value           |
| -------------- | --------------- |
| Type           | `System.String` |
| Required       | False           |
| Position       | Named           |
| Pipeline input | False           |
| Aliases        | None            |
| Parameter sets | Properties      |

### -PrimaryInstallerFile

The installer to run, relative to -FolderPath. Omitting it keeps the current primary installer.

| Attribute      | Value           |
| -------------- | --------------- |
| Type           | `System.String` |
| Required       | False           |
| Position       | Named           |
| Pipeline input | False           |
| Aliases        | None            |
| Parameter sets | Properties      |

### -PrivacyUrl

Privacy policy URL.

| Attribute      | Value           |
| -------------- | --------------- |
| Type           | `System.String` |
| Required       | False           |
| Position       | Named           |
| Pipeline input | False           |
| Aliases        | None            |
| Parameter sets | Properties      |

### -ProductId

ID of the application. Accepted from the pipeline by property name, so results from Find-PmpcCustomApplication and Get-PmpcCustomApplication can be piped straight in.

| Attribute      | Value                 |
| -------------- | --------------------- |
| Type           | `System.Guid`         |
| Required       | True                  |
| Position       | 0                     |
| Pipeline input | True (ByPropertyName) |
| Aliases        | Id                    |
| Parameter sets | Properties            |

### -Publisher

Publisher or vendor name.

| Attribute      | Value           |
| -------------- | --------------- |
| Type           | `System.String` |
| Required       | False           |
| Position       | Named           |
| Pipeline input | False           |
| Aliases        | None            |
| Parameter sets | Properties      |

### -RetryAttempt

Number of times a failed chunk is retried before the upload fails. Defaults to 3.

| Attribute      | Value          |
| -------------- | -------------- |
| Type           | `System.Int32` |
| Required       | False          |
| Position       | Named          |
| Pipeline input | False          |
| Aliases        | None           |
| Parameter sets | All            |

### -SilentUninstallArg

Arguments passed to the uninstaller for a silent uninstall.

| Attribute      | Value           |
| -------------- | --------------- |
| Type           | `System.String` |
| Required       | False           |
| Position       | Named           |
| Pipeline input | False           |
| Aliases        | None            |
| Parameter sets | Properties      |

### -UpdateId

The version to edit. Resolved automatically when omitted, because the application lookup does not return an update ID.

| Attribute      | Value                 |
| -------------- | --------------------- |
| Type           | `System.Guid`         |
| Required       | False                 |
| Position       | Named                 |
| Pipeline input | True (ByPropertyName) |
| Aliases        | None                  |
| Parameter sets | Properties            |

### -UploadOption

A pre-built ChunkUploadOptions object. The individual upload parameters are applied over it, so both can be combined.

| Attribute      | Value                |
| -------------- | -------------------- |
| Type           | `ChunkUploadOptions` |
| Required       | False                |
| Position       | Named                |
| Pipeline input | False                |
| Aliases        | None                 |
| Parameter sets | All                  |

### -UploadTimeout

Timeout for each individual HTTP request, not for the upload as a whole. Defaults to 30 minutes.

| Attribute      | Value             |
| -------------- | ----------------- |
| Type           | `System.TimeSpan` |
| Required       | False             |
| Position       | Named             |
| Pipeline input | False             |
| Aliases        | None              |
| Parameter sets | All               |

### -WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

| Attribute      | Value                                          |
| -------------- | ---------------------------------------------- |
| Type           | `System.Management.Automation.SwitchParameter` |
| Required       | False                                          |
| Position       | Named                                          |
| Pipeline input | False                                          |
| Aliases        | wi                                             |

### CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about\_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).

## Inputs

### ApplicationEditMetadata

A pre-built metadata object, bound to -Metadata.

## Outputs

### ApplicationData

The edited application's IDs and upload statistics.

## Examples

### Example 1: Correct a display name

{% code collapsedlinecount="10" %}

```powershell
Set-PmpcCustomApplication -ProductId $productId -DisplayName '7-Zip (x64)'
```

{% endcode %}

Changes only the display name; every other property, and the whole file list, is left untouched.

### Example 2: Replace the icon

{% code collapsedlinecount="10" %}

```powershell
Set-PmpcCustomApplication -ProductId $productId -IconPath .\icons\7zip.png
```

{% endcode %}

Uploads the new icon and leaves the application's files alone.

### Example 3: Replace the application's files

{% code collapsedlinecount="10" %}

```powershell
Set-PmpcCustomApplication -ProductId $productId -FolderPath .\7zip-fixed -PrimaryInstallerFile '7z2408-x64.msi'
```

{% endcode %}

Hashes the folder and uploads only the files whose content actually changed.

### Example 4: Clear the conflicting-process list

{% code collapsedlinecount="10" %}

```powershell
Set-PmpcCustomApplication -ProductId $productId -ConflictingProcess @()
```

{% endcode %}

An explicitly empty array clears the list; omitting the parameter would keep it.

## Notes

The underlying endpoint is a full replacement, but this cmdlet is not. The SDK reads the application's current metadata and file list, lays your changes over the top, and submits the complete payload, so changing one field means supplying one parameter.

-MsiProductCode cannot be used to clear a product code. Its presence is what tells the broker the installer is an MSI, so dropping it reads as a switch to EXE and the edit is rejected.

-ConflictingProcess is the one parameter where an explicitly empty array is meaningful: it clears the list, whereas omitting the parameter keeps it.

## Related links

* [Update-PmpcCustomApplication](https://docs.patchmypc.com/patch-my-pc-cloud-api/powershell/update-pmpccustomapplication.md)
* [Get-PmpcCustomApplication](https://docs.patchmypc.com/patch-my-pc-cloud-api/powershell/get-pmpccustomapplication.md)
* [Get-PmpcApplicationFile](https://docs.patchmypc.com/patch-my-pc-cloud-api/powershell/get-pmpcapplicationfile.md)
* [PowerShell module](https://docs.patchmypc.com/patch-my-pc-cloud-api/powershell.md)

## See also

* SDK method: [EditCustomApplicationAsync](https://docs.patchmypc.com/patch-my-pc-cloud-api/sdk/custom-applications.md#editcustomapplicationasync)
* REST operation: [`POST /v1/api/apps/custom/edit-draft`](https://docs.patchmypc.com/patch-my-pc-cloud-api/rest-api/applications.md#create-custom-edit-draft)
* REST operation: [`PUT /v1/api/apps/custom/edit-complete`](https://docs.patchmypc.com/patch-my-pc-cloud-api/rest-api/applications.md#complete-custom-application-edit)
* REST operation: [`GET /v1/api/apps/{productId}`](https://docs.patchmypc.com/patch-my-pc-cloud-api/rest-api/applications.md#get-application-details)
* REST operation: [`GET /v1/api/apps/{productId}/files`](https://docs.patchmypc.com/patch-my-pc-cloud-api/rest-api/applications.md#get-application-files)
* [Cross-reference: cmdlets, SDK methods, and REST operations](https://docs.patchmypc.com/patch-my-pc-cloud-api/cross-reference.md)


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.patchmypc.com/patch-my-pc-cloud-api/powershell/set-pmpccustomapplication.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
