Skip to main content

Check Software Installed on Worklet

  • October 29, 2021
  • 4 replies
  • 256 views

I have a worklet that installs a software. But every time i push the worklet it re-installs each the time the schedule matches to push or i push it manually on all devices.

My question is, is there way when it detects that’s installed it should not install and exit while if it doesn’t detect, it should install it.

4 replies

Forum|alt.badge.img

I use this:

if (Test-Path -Path “C:\Program Files\SoftwareName”)
{
exit 0
}
else
{
Exit 1
}

You’ll have to make sure you add the correct location for 32 or 64 bit software


  • Author
  • November 1, 2021

Also,

If it’s a particular version how would that work?


Forum|alt.badge.img

Do you have a software in mind you are trying? Off the top of my head, I am not sure.


  • Author
  • November 1, 2021

You can take in Pulse Secure mind.