hinkdad Posted September 13, 2006 Share Posted September 13, 2006 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 Link to comment Share on other sites More sharing options...
hinkdad Posted September 14, 2006 Author Share Posted September 14, 2006 hmmmmmm I gues no one knows anything... or my topic description suxors :-( Link to comment Share on other sites More sharing options...
ironside Posted September 14, 2006 Share Posted September 14, 2006 IF EXISTS "%SystemDrive%\Program Files\Firefox\firefox.exe"goto EXITEXITor something like that Link to comment Share on other sites More sharing options...
hinkdad Posted September 14, 2006 Author Share Posted September 14, 2006 (edited) 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. Edited September 15, 2006 by hinkdad Link to comment Share on other sites More sharing options...
hinkdad Posted September 15, 2006 Author Share Posted September 15, 2006 bump Link to comment Share on other sites More sharing options...
MHz Posted September 15, 2006 Share Posted September 15, 2006 This example may suit you.If Not Exist "not_here.exe" ("msiexec.exe")or do it on one lineIf 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 More sharing options...
hinkdad Posted September 15, 2006 Author Share Posted September 15, 2006 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 offTITLE ETC Computer Solutions Recipe InstallECHO.ECHO Over the next few minutes you will see automated installations ECHO of various sofware applications. The computer will restart automaticallyECHO once the whole process has finished!ECHO.ECHO Starting installation of ApplicationsECHO.ECHO Installing Lavasoft Ad-Aware 6 Build 181ECHO Please wait...IF EXISTS %SystemDrive%\Program Files\Lavasoft\Ad-Aware SE Personal\Ad-Aware.exe goto next start /wait aawsepersonal.exe /s :nextECHO.ECHO Installing AVG Anti-Virus 7.1.782...start /wait avgsetup.exe /HIDE /DONT_START_APPS /NO_WELCOME /NO_AVGW_STARTUP /QUIT_IF_INSTALLEDECHO.ECHO Installing Mozilla FirefoxECHO 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 More sharing options...
MHz Posted September 15, 2006 Share Posted September 15, 2006 (edited) Exist, not ExistsCLS@echo offTITLE ETC Computer Solutions Recipe InstallECHO.ECHO Over the next few minutes you will see automated installations ECHO of various sofware applications. The computer will restart automaticallyECHO once the whole process has finished!ECHO.ECHO Starting installation of ApplicationsECHO.ECHO Installing Lavasoft Ad-Aware 6 Build 181ECHO 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_INSTALLEDECHO.ECHO Installing Mozilla FirefoxECHO Please wait...IF NOT EXIST "%ProgramFiles%\Mozilla Firefox\firefox.exe" (start /wait Firefox.exe -ms ) ELSE (ECHO Skipping install)EXIT Edited September 15, 2006 by MHz Link to comment Share on other sites More sharing options...
hinkdad Posted September 15, 2006 Author Share Posted September 15, 2006 DUDE!!!!I wish I could give you a HUGE hug!!!!Works like a charm man......... thanks a BILLION Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now