Detection rule required for Application uninstallation
I have a requirement to uninstall 7 applications through a single VB script. The script is ready and I need the best possible detection rule to push it via Intune.
At the end of uninstall the script will delete all the copied folders/files.
Answers ( 5 )
You can unde the same method for uninstallation as well… no problem with this IMHO
As Anoop mentioned, File and Folder would work well. I’m not sure what the 7 applications are since you didn’t mention, but some may need Registry as detection and some may require the MSI guid. If you end up using File and Folder, then make sure you can target a specific file in a folder path and then use the file version or something that makes sense as a value.
Thanks for the details,
Yes, if it is for a single application installation I can choose registry, file / folder as detection method. But in my case I am uninstalling 7 applications (Few might be installed and few may not). So my VB script was made such to trigger the Uninstall.
Those 7 applications include (Oracle_12G client, SQl developer, JDA Apps etc.,), so each application has separate dependency and as I am calling everything in a single VB script, I am confused to use what could be the detection logic
Use File or Folder as detection rule as I explained in the following blog
Try this method for your vb script
Thanks for sharing.
But in my scenario, I am uninstalling 7 applications (through a single VB script). Once pushed through Intune it should copy the .vbs file under intunecache and at the end of uninstall it will delete the .vbs from the copied folder.
So my concern is as it is not specific to one single application Uninstallation, I am not able to choose the correct detection logic. can we achieve this through PS script. Any help would be much appreciated!