Jump to content

Firefox install cancel?


hinkdad

Recommended Posts


This example may suit you.

If Not Exist "not_here.exe" (
"msiexec.exe"
)

or do it on one line

If Not Exist "not_here.exe" "msiexec.exe"

So if firefox.exe does not exist, then run the installation.

Link to comment
Share on other sites

This is what I have right now.... and all it does is flash the window quickly and installs nothing even though now the programs are not installed. If I take out the "if" lines it will install all three apps no problem. I cant seem to find what I am missing here.

CLS
@echo off
TITLE ETC Computer Solutions Recipe Install

ECHO.
ECHO Over the next few minutes you will see automated installations
ECHO of various sofware applications. The computer will restart automatically
ECHO once the whole process has finished!

ECHO.
ECHO Starting installation of Applications
ECHO.
ECHO Installing Lavasoft Ad-Aware 6 Build 181
ECHO Please wait...
IF EXISTS %SystemDrive%\Program Files\Lavasoft\Ad-Aware SE Personal\Ad-Aware.exe goto next
start /wait aawsepersonal.exe /s

:next
ECHO.
ECHO Installing AVG Anti-Virus 7.1.782...
start /wait avgsetup.exe /HIDE /DONT_START_APPS /NO_WELCOME /NO_AVGW_STARTUP /QUIT_IF_INSTALLED

ECHO.
ECHO Installing Mozilla Firefox
ECHO Please wait...
IF EXISTS %SystemDrive%\Program Files\Mozilla Firefox\firefox.exe goto EXIT
start /wait Firefox.exe -ms

EXIT

Link to comment
Share on other sites

Exist, not Exists

CLS
@echo off
TITLE ETC Computer Solutions Recipe Install

ECHO.
ECHO Over the next few minutes you will see automated installations
ECHO of various sofware applications. The computer will restart automatically
ECHO once the whole process has finished!

ECHO.
ECHO Starting installation of Applications
ECHO.
ECHO Installing Lavasoft Ad-Aware 6 Build 181
ECHO Please wait...
IF NOT EXIST "%ProgramFiles%\Lavasoft\Ad-Aware SE Personal\Ad-Aware.exe" (
start /wait aawsepersonal.exe /s
) ELSE (
ECHO Skipping install
)

ECHO.
ECHO Installing AVG Anti-Virus 7.1.782...
start /wait avgsetup.exe /HIDE /DONT_START_APPS /NO_WELCOME /NO_AVGW_STARTUP /QUIT_IF_INSTALLED

ECHO.
ECHO Installing Mozilla Firefox
ECHO Please wait...
IF NOT EXIST "%ProgramFiles%\Mozilla Firefox\firefox.exe" (
start /wait Firefox.exe -ms
) ELSE (
ECHO Skipping install
)

EXIT

Edited by MHz
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...