Solved

Silent install with IF statement

Posted on 2008-06-18
2
345 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 84

Accepted Solution

by:
oBdA earned 500 total points
ID: 21820009
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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

TOMORROW TOMORROW.BAT is inspired by a question I get asked over and over again; that is, "How can I use batch file commands to obtain tomorrow's date?" The crux of this batch file revolves around the XCOPY command - a technique I discovered w…
VALIDATING DATES One method of validating dates is to jam the date into the DATE command and see if it accepts it by examining the system's errorlevel value. A non-zero result indicates failure. A typical example might look something like the fol…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
Suggested Courses

734 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