Solved

Silent install with IF statement

Posted on 2008-06-18
2
324 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 83

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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

The following is a collection of cases for strange behaviour when using advanced techniques in DOS batch files. You should have some basic experience in batch "programming", as I'm assuming some knowledge and not further explain the basics. For some…
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…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

803 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