Sure. Script detection methods: If the script returns ANYTHING, the detection method believes the deployment type has been detected. So, for this, our script needs to check for the registry key, and if it DOES NOT exist, it should return something. If it DOES exist, the script needs to return nothing (and I mean absolutely nothing<http://www.david-obrien.net/2013/12/19/configmgr-powershell-application-detection-methods/>).
A PowerShell example might look like this: If (Test-Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Mouse and Keyboard Center") {} Else {Return $True} Or, you could use this to keep from being tempted to fill in that first {} with something: If (-Not (Test-Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Mouse and Keyboard Center")) {Return $True} Reminder: If you use this application in a Task Sequence, you'll need to make sure you change the script execution policy for the system before that step.) Nash From: listsad...@lists.myitforum.com [mailto:listsad...@lists.myitforum.com] On Behalf Of Brian Mason Sent: Tuesday, June 24, 2014 11:40 AM To: mssms@lists.myitforum.com Subject: [mssms] RE: Detection method for uninstalling Groupwise Messenger Can you show me an example of that? I've always heard it suggested but have never done it or seen it done. MMS MOA NOV<http://mms.mnscug.org/> _________________ Brian Mason MCTS, MS MVP ECM http://www.mnscug.org/ From: listsad...@lists.myitforum.com<mailto:listsad...@lists.myitforum.com> [mailto:listsad...@lists.myitforum.com] On Behalf Of Nash Pherson Sent: Tuesday, June 24, 2014 9:04 AM To: mssms@lists.myitforum.com<mailto:mssms@lists.myitforum.com> Subject: [mssms] RE: Detection method for uninstalling Groupwise Messenger Since the built in detection methods require something to exist (file, registry key, product code), you can't really evaluate that something does not exist. In this scenario where your 'install' is actually an uninstall, you can use a Script detection method. From: listsad...@lists.myitforum.com<mailto:listsad...@lists.myitforum.com> [mailto:listsad...@lists.myitforum.com] On Behalf Of Chris Carbone Sent: Tuesday, June 24, 2014 8:19 AM To: mssms@lists.myitforum.com<mailto:mssms@lists.myitforum.com> Subject: [mssms] Detection method for uninstalling Groupwise Messenger What is the best method when uninstalling software? I need to uninstall Groupwise Messenger on all workstations/servers and I'm getting stuck on detection method. How do I create a detection method that tells me the uninstall went through? Or should I just build a package with the uninstall command line and do it that way? This electronic mail transmission may contain confidential information intended only for the use of the individual(s) identified as addressee(s). If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of this electronic mail transmission is strictly prohibited. If you have received this transmission in error, please notify me by telephone immediately.