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

Microsoft Configuration Manager and Intune (Enterprises/Paid) => Support and General Questions (Enterprises Using ConfigMgr and Intune) => Topic started by: mlafifi on April 18, 2024, 10:37:54 AM

Title: Hide desktop shortcut for custom apps
Post by: mlafifi on April 18, 2024, 10:37:54 AM
Hello
I am using the Patch My PC Custom Apps feature (side note: it works so well!) and the MSI leaves a desktop shortcut for the app.  We would rather this not occur.  The option to "Delete desktop shortcut(s) created by this application" that we normally choose in the pmpc app is greyed out/disabled.  The MSI is not made in-house, it is vendor provided.  (The MSIs that we make in-house we do not choose to leave the desktop shortcut).  What is the best practice for ensuring these desktop shortcuts are either not created or removed after install?

tia!:)
Title: Re: Hide desktop shortcut for custom apps
Post by: Andrew Jimenez (Patch My PC) on April 18, 2024, 01:34:50 PM
Hello,

The best option at the moment is probably to add a post-install script to remove the shortcut, or check if there is a property that can be passed to disable the creation of the shortcut.

A quick Powershell Script with the following could probably do the trick:
Remove-Item C:\Users\*\Desktop\[shortcut.lnk]

Should do the trick, you could also target just the default profile's path to skip removing the shortcut from every user's desktop.