Anyway to check if a program is installed, if it is, skip the step?

0

I know I can use PDQ Inventory to take a scan of what applications are installed and create different groups based on that, but that's not what I want to do in this case, it wouldn't make sense.

What I'm looking for is, Step 1, install this program but check if it's installed already, if it is, then go to > Step 2, do other things etc etc..

Is this possible?

Cancel
login to comment
0

This would add a huge delay to the script, but something like this is probably the only option (assuming you prefer powershell)

Modified wrapper I use for powershell scripts to illustrate error codes in this case:

http://pastebin.com/3ja3XH2W

If you want to return error codes reliably (at least in PS v2) you have to use the function as illustrated in:

http://pastebin.com/YmVhb2J6

You could get your Package to "stop" if the error code returned isn't 0.

My big issue with this, however, is now you have a bunch of failed deployments. You're left to either write the computers that don't have a program installed to a UNC path like  \\pdqServer\PDQ\adobeReaderXNotInstalled.txt and then using another script to update your list of computers...

Really the only solution (that's maintainable) would be to wait for conditional steps or massage a list from PDQ Inventory.

I might be wrong in my understanding though.

Cancel
login to comment

0

Not at the present time, no, but we do have this as something we're planning on adding.  We have a number of conditions we want to add to the packages in addition to the Windows version and Architecture (64-bit, 32-bit). 

Cancel
login to comment

Reply