Is there a flag you can set for a firefox install to cancel if it sees that firefox is already installed? I found out if it installs over your installation you loose all your bookmarks, cookies, themes..... the hard way
hinkdad
Sep 14 2006, 12:31 PM
hmmmmmm I gues no one knows anything... or my topic description suxors :-(
ironside
Sep 14 2006, 02:13 PM
CODE
IF EXISTS "%SystemDrive%\Program Files\Firefox\firefox.exe" goto EXIT
EXIT
or something like that
hinkdad
Sep 14 2006, 02:49 PM
Thanks Ironside!!!
Worked like a charm..... is there a way to make it just go to the next line instead of exit though? The "go to exit" command skips to the end.
hinkdad
Sep 15 2006, 08:55 AM
bump
MHz
Sep 15 2006, 09:30 AM
This example may suit you.
CODE
If Not Exist "not_here.exe" ( "msiexec.exe" )
or do it on one line
CODE
If Not Exist "not_here.exe" "msiexec.exe"
So if firefox.exe does not exist, then run the installation.
hinkdad
Sep 15 2006, 09:38 AM
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.
CODE
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
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
MHz
Sep 15 2006, 10:16 AM
Exist, not Exists
CODE
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 )