Link to home
Start Free TrialLog in
Avatar of cloil
cloilFlag for United States of America

asked on

Batch file to install software -- only if not already installed

Is there a way to write a batch file to locate a particular EXE?  If not present it will proceed with the setup of a program... if present it will simply terminate?
ASKER CERTIFIED SOLUTION
Avatar of Frosty555
Frosty555
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
How can you modify this to make it install the program if it is not already installed?
Under the :doit list the path to the setup.exe???
Yes, in the :doit label is where you would execute the installer. Either run the setup.exe, or run the MSI using msiexec.exe, or run whatever you would normally have to run to install the software.