Solved

Silent install with IF statement

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Using dates in 'DOS' batch files has always been tricky as it has no built in ways of extracting date information.  There are many tricks using string manipulation to pull out parts of the %date% variable or output of the date /t command but these r…
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…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
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…

809 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