Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 354
  • Last Modified:

Silent install with IF statement

Im running the below script from my KIX. It works fine. The problem is that it runs everytime a user logs in. I need an IF statement to check if the program already exists under:C:\Program Files\Avaya\lvp32

If yes, skip install. if no continue install.
Start \\server\netlogon\Avaya\setup_lvp32.exe /s

Open in new window

0
Priscilla_Hora
Asked:
Priscilla_Hora
1 Solution
 
oBdACommented:
You can do the check either in the batch or in the kix file:
For the batch file:
 
if not exist "C:\Program Files\Avaya\lvp32\TheProgramName.exe" (
  start \\server\netlogon\Avaya\setup_lvp32.exe /s
)
 
Or to check in the kix file itself:
 
IF NOT EXIST ("C:\Program Files\Avaya\lvp32\TheProgramName.exe")
  RUN "something"
ENDIF

Open in new window

0

Featured Post

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now