Tech Support Guy banner
Status
Not open for further replies.

Script to install program if it doesn't exit

905 views 0 replies 1 participant last post by  Cody24 
#1 ·
Needing a powershell script to install program A if it doesn't already exist.

Can't get the correct language down... keep getting errors.

Code:
if  ( -not  (Test-Path "C:\Program Files (x86)\programA" )

msiexec /qb /i "\\server\programA.msi"
 
Status
Not open for further replies.
You have insufficient privileges to reply here.
Top