# Update a Custom App

*Applies to: Custom Apps*

Once you have created and deployed a Custom App, you will probably need to update it at some point to a later version.

{% hint style="info" %}
Note

See [Modifying a Custom App](https://docs.patchmypc.com/patch-my-pc-cloud/custom-apps/modify-a-custom-app) for details on how to make other changes to an existing Custom App.
{% endhint %}

To update a Custom App using Patch My PC (PMPC) Cloud:

1. Sign in to the PMPC portal <https://portal.patchmypc.com/>.
2. On the **App Catalog** page, search for the relevant app.

<figure><img src="https://3773699522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX7dvS0r_4fc0AikgJS%2Fuploads%2F83GMOu29TLtOFPxKvRRM%2Fimage.png?alt=media&#x26;token=5805f931-68f8-42d7-8499-2e71f17bd395" alt="Searching for your Custom App" width="563"><figcaption></figcaption></figure>

3. Click the app to open it.
4. On the app’s properties page, click **Add Version**.

<figure><img src="https://3773699522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX7dvS0r_4fc0AikgJS%2Fuploads%2FZIWqyw2N497vKtx0EHUF%2Fimage.png?alt=media&#x26;token=8635ce8e-14fa-4e44-90cc-0502f96cfaeb" alt="Clicking “Add Version”" width="563"><figcaption></figcaption></figure>

The Custom Apps Deployment Wizard starts.

<figure><img src="https://3773699522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX7dvS0r_4fc0AikgJS%2Fuploads%2FUeyMnuN4qXgU3zH4tspg%2Fimage.png?alt=media&#x26;token=2f3ae5a3-df3e-42cb-b896-51e631f055f2" alt="Custom Apps Deployment Wizard" width="563"><figcaption></figcaption></figure>

5. On the **Add Version** page, either:
   1. Click **Add Primary Install File** and browse to the location containing the updated version of the app’s installer (EXE or MSI).
   2. Drag and drop the installer file onto this page.

<figure><img src="https://3773699522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX7dvS0r_4fc0AikgJS%2Fuploads%2F91sthTbBsRywCxMZ9gnp%2Fimage.png?alt=media&#x26;token=983a572f-97cd-423b-ba8b-c8b255efb9cd" alt="Clicking “Add Primary Install File” on the “Add Version” page " width="563"><figcaption></figcaption></figure>

The hash for the file is calculated as the file is uploaded to your portal.

<figure><img src="https://3773699522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX7dvS0r_4fc0AikgJS%2Fuploads%2FiBew5GmIsQp3hBf6Gl1R%2Fimage.png?alt=media&#x26;token=287019b3-c80f-4c0d-bd2f-a656b51bfca3" alt="Calculating the hash for the file as its uploaded to your portal." width="563"><figcaption></figcaption></figure>

6. If the installer does not require any additional files or folders, go to Step 8.
7. If the installer does require additional files or folders, either:
   1. Click the relevant **Add** button and browse to the location containing the additional files/folders.
   2. Drag and drop the files onto this page.

<figure><img src="https://3773699522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX7dvS0r_4fc0AikgJS%2Fuploads%2FAFyRxglBwQ2hXJFuIEZQ%2Fimage.png?alt=media&#x26;token=a051dab2-1118-4ade-a2a8-25df228f71a7" alt="Adding additional files or folders" width="563"><figcaption></figcaption></figure>

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

If you choose to upload additional folders, you will be prompted to confirm you trust this site:

![Trust prompt](https://3773699522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX7dvS0r_4fc0AikgJS%2Fuploads%2F4972tyuuVYygYCcm6INR%2Fimage.png?alt=media\&token=08737ff4-4c70-4c88-ab4d-72250703496d)
{% endhint %}

8. Once the files/folders have uploaded, click **Next**.

<figure><img src="https://3773699522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX7dvS0r_4fc0AikgJS%2Fuploads%2FqLtNLSReGj6O0agbbWpn%2Fimage.png?alt=media&#x26;token=870c50af-a695-405d-b894-a7b20567166a" alt="Clicking “Next”" width="563"><figcaption></figcaption></figure>

9. On the **Configuration** page, enter the version number and update any other fields as required.

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

If a Return Code defined in a Custom App has the same value but a different **Code type** to that defined in the deployment, the settings in the deployment take precedence.
{% endhint %}

<figure><img src="https://3773699522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX7dvS0r_4fc0AikgJS%2Fuploads%2FtCMICdBnfUUSU7qslyov%2Fimage.png?alt=media&#x26;token=cc62b9e1-567e-4638-903f-3c7ebac65b3f" alt="Entering the version of the “Configuration page”" width="563"><figcaption></figcaption></figure>

10. If you are happy you have entered all of the details for the app correctly, click **Save** otherwise, click **Next**.

<figure><img src="https://3773699522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX7dvS0r_4fc0AikgJS%2Fuploads%2FJqyjXHgUDittliJytpPH%2Fimage.png?alt=media&#x26;token=1687ae32-8789-40b9-aa45-3b2eba04885d" alt="Clicking “Next”" width="563"><figcaption></figcaption></figure>

11. On the **Detection Rules** page, make any required changes.

<figure><img src="https://3773699522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX7dvS0r_4fc0AikgJS%2Fuploads%2FtUi8xEgzswG12VaKnPym%2Fimage.png?alt=media&#x26;token=a8ff9009-f08a-49a0-8a3d-eaf031156cf6" alt="Making any required changes on the &#x22;Detection Rules&#x22; page" width="563"><figcaption></figcaption></figure>

12. If you are happy you have entered all of the details for the app correctly, click **Save** otherwise, click **Next**.

<figure><img src="https://3773699522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX7dvS0r_4fc0AikgJS%2Fuploads%2FtAK8U9q1pptYqR1MLPNn%2Fimage.png?alt=media&#x26;token=8e4d331c-e80b-46a9-8dba-4a4fbeee07ca" alt="Clicking &#x22;Next&#x22;" width="563"><figcaption></figcaption></figure>

13. On the **Summary** page, review you have configured the app correctly.
    1. If you are happy, click **Create**.
    2. If you need to change something, click **< Prev** to backtrack through the Deployment Wizard to the relevant setting. Make the change, then step back through the wizard to this page. If everything is now correct, click **Create**.

<figure><img src="https://3773699522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX7dvS0r_4fc0AikgJS%2Fuploads%2FuiCny5VE8kjHCiI1bG8Y%2Fimage.png?alt=media&#x26;token=cafb6b24-4e8f-4f76-8dcb-a27c9098c31b" alt="Clicking “Save” on the “Summary” page" width="563"><figcaption></figcaption></figure>

11. The App Catalog is displayed showing the version of the app along with the following notification:\
    \
    **Success Version <*****version\_number*****> has been successfully added to <*****app\_name*****>**.

<figure><img src="https://3773699522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX7dvS0r_4fc0AikgJS%2Fuploads%2FBF1gqctI6Es9hdjAk5xj%2Fimage.png?alt=media&#x26;token=1483c454-0144-4d73-87bf-b05078d79112" alt="Success Version <version_number> has been successfully added to <app_name>" width="563"><figcaption></figcaption></figure>

If the previous version of the app was deployed successfully, depending on the configured assignments, the new version will be installed the next time the daily sync runs.

Alternatively, you can use the [Sync Now](https://docs.patchmypc.com/patch-my-pc-cloud/deployments/manage-deployments/updates/sync-now) process to update the app immediately without waiting for the next daily sync to run.
