Implement log and perhaps reboot "yes or no" featu
Posted: 24 Aug 2009 10:26
Hi! Im writing this bat script to install 11 programs in silent mode...
What i don't know now, is how to log everything... im reading on choice and how to figure out "Do you want to reboot" - yes - no.. ect.. but I can't figure out what to do about the logging.. the *easy* way.
My "code" is like this:
@echo off & SetLocal
Set "SourcePath=%~0\.."
echo Starting installation of Adobe Reader...
start /wait adobereader.exe /sAll /rs /l /msi"/qb-! /norestart ALLUSERS=1 EULA_ACCEPT=YES SUPPRESS_APP_LAUNCH=YES"
echo Adobe Reader is installed... starting installation of Firefox
start /wait firefox.exe -ms
echo Firefox is installed... starting installation of Java Runtime
start /wait java.exe /qn ADDLOCAL=ALL SYSTRAY=0 EULA=0 IEXPLORER=1 JAVAUPDATE=0 MOZILLA=1 AUTOUPDATECHECK=0 JU=0 REBOOT=ReallySupress
echo Jave Runtime is installed... starting installation of VLC
start /wait vlc.exe /L=1044 /S /NCRC
echo VLC is installed... starting installation of 7zip
start /wait 7zip.exe /S
echo 7zip is installed... starting installation of internet plugins
start /wait flashfirefox.exe /S
start /wait flashie.exe /S
start /wait air.exe -silent
start /wait shockwave.exe /S
start /wait silverlight.exe /q
start /wait wmpplugin.exe
echo All is installed - reboot the machine!
***soon to come: log and reboot now yes-now.
is it possible to do a logging of each install in a single line of code?
Im thinking of
blablaapp is installed (and where)
blablaapp is installed (and where)
ect...
Thanks!
What i don't know now, is how to log everything... im reading on choice and how to figure out "Do you want to reboot" - yes - no.. ect.. but I can't figure out what to do about the logging.. the *easy* way.
My "code" is like this:
@echo off & SetLocal
Set "SourcePath=%~0\.."
echo Starting installation of Adobe Reader...
start /wait adobereader.exe /sAll /rs /l /msi"/qb-! /norestart ALLUSERS=1 EULA_ACCEPT=YES SUPPRESS_APP_LAUNCH=YES"
echo Adobe Reader is installed... starting installation of Firefox
start /wait firefox.exe -ms
echo Firefox is installed... starting installation of Java Runtime
start /wait java.exe /qn ADDLOCAL=ALL SYSTRAY=0 EULA=0 IEXPLORER=1 JAVAUPDATE=0 MOZILLA=1 AUTOUPDATECHECK=0 JU=0 REBOOT=ReallySupress
echo Jave Runtime is installed... starting installation of VLC
start /wait vlc.exe /L=1044 /S /NCRC
echo VLC is installed... starting installation of 7zip
start /wait 7zip.exe /S
echo 7zip is installed... starting installation of internet plugins
start /wait flashfirefox.exe /S
start /wait flashie.exe /S
start /wait air.exe -silent
start /wait shockwave.exe /S
start /wait silverlight.exe /q
start /wait wmpplugin.exe
echo All is installed - reboot the machine!
***soon to come: log and reboot now yes-now.
is it possible to do a logging of each install in a single line of code?
Im thinking of
blablaapp is installed (and where)
blablaapp is installed (and where)
ect...
Thanks!