Solved

Silent install with IF statement

Posted on 2008-06-18
2
301 Views
Last Modified: 2008-07-20
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
Comment
Question by:Priscilla_Hora
2 Comments
 
LVL 82

Accepted Solution

by:
oBdA earned 500 total points
Comment Utility
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Being a system administrator some time we require to do things remotely, one of them is installing software. Here I am going to tell you how to install software through wmic (Windows management instrument console). I am not at all saying that this i…
Introduction: Recently, I got a requirement to zip all files individually with batch file script in Windows OS. I don't know much about scripting, but I searched Google and found a lot of examples and websites to complete my task. Finally, I was ab…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now