Support Forum: Get Support for Patch My PC Products and Services

Commercial Products: Support for Our Enterprise Product for Microsoft ConfigMgr and Intune => Commercial/Paid Products: Support and General Questions (ConfigMgr and Intune) => Topic started by: steadybird on April 14, 2025, 09:21:57 PM

Title: Custom Apps do not have uninstall options
Post by: steadybird on April 14, 2025, 09:21:57 PM
Hi Team,

When uploading a custom app to PMPC cloud, for later use in PMPC publisher, I noted that there is no method to define a custom uninstallation command.

Additionally, when viewing the app in publisher I am not able to define any pre/post uninstall scripts.

Why is this the case?
What are my options to work around if I need some custom uninstallation behaviour that PMPC doesnt natively perform by default?
Title: Re: Custom Apps do not have uninstall options
Post by: Raunak Desai (Patch My PC) on April 14, 2025, 11:49:54 PM
Hey SteadyBird,

Thank you for reaching out to support with your query.

https://docs.patchmypc.com/installation-guides/patch-my-pc-cloud/custom-apps/custom-apps-reference/uninstall-a-custom-app

Please refer this article on how to un-install the custom app you've created.

Regards,
Raunak
Title: Re: Custom Apps do not have uninstall options
Post by: steadybird on April 15, 2025, 12:44:00 AM
Hi Raunak,

Thanks for the input.
Unfortunately PMPC making assumptions about how the uninstall is to occur, whilst convenient typically, is causing me problems in this scenario.

We have an application that requires a number of conflicts to be kept closed for the duration. It is not a great user experience to have our uninstallations be silent for so long after the initial notification is sent to close the conflicts.

For the installation I got around this by leveraging serviceui.exe to push the installation progress window into the users session so they had a very visual way to know something was still happening and its relative progress.

I had hoped to do similar for the uninstallation.

Re the custom registry strings. I am aware they exist... Are you suggesting that I modify them during installation with my desired uninstall command instead of leaving the default there?

Do I need to manually manage the starting directories or anything like that? Or does PMPC/Intune automatically shift the starting directory to the package such that if i invoked uninstaller.bat I dont need to preface it with a path?
Title: Re: Custom Apps do not have uninstall options
Post by: Andrew Jimenez (Patch My PC) on April 15, 2025, 09:47:49 AM
Hello,

Yes, one option you can do is modify the uninstall string so that it launches your specified uninstallation command.

You will want to use fully qualified paths in the uninstall string as the uninstall will not change paths. If you need to use a batch file for uninstall, I would recommend dropping that batch file as a payload while installing as well (perhaps in C:\ProgramData), then you can reference that batch file during the uninstall.

Please note that such customizations touch the limits of official support, and we cannot guarantee that every app can be created as a custom app or guarantee that any custom app that you create can be uninstalled. However, we will do our best to guide you if you run into issues!
Title: Re: Custom Apps do not have uninstall options
Post by: steadybird on April 15, 2025, 06:19:04 PM
I understand and thank you. The reason we're trying to leverage custom apps is so that the users have a consistent look and feel for all applications. Rather than say me rolling something in PSADT and uploading this myself to Intune which would likely result in a difference in notifications dialogues for the user.

Thanks for your input.
Title: Re: Custom Apps do not have uninstall options
Post by: Michiel (Patch My PC) on May 01, 2025, 09:15:08 AM
Hi @steadybird, we do have a feature request for this that you might want to upvote:

Configure uninstall command line for exe installers | Patch My PC Ideas & Feedback (https://ideas.patchmypc.com/ideas/PATCHMYPC-I-3855)
Title: Re: Custom Apps do not have uninstall options
Post by: steadybird on May 01, 2025, 05:36:32 PM
Cheers mate. May I ask what the rationale for having different levels of voting is?
I can't think of a time I'd ever do anything less than 3!