@echo off
REM --------------------------------------------------------------
REM Mise en page de la fenêtre du script
REM --------------------------------------------------------------
COLOR 1F
TITLE Script d installation des programmes.
REM --------------------------------------------------------------
REM En-tête du programme
REM --------------------------------------------------------------
echo ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
echo ³ INSTALLATION DES COMPOSANTS ³
echo ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
echo.
echo Ce script va installer les logiciels les plus courant pour votre systŠme
echo d exploitation. Toutes les installations seront r‚alis‚es de maniŠre
echo automatique. Aucune actions de votre part ne vous sera demand‚es pendant
echo l installation des diff‚rents logiciels.
echo.
echo Liste des application qui vont ˆtre install‚es :
echo ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ
echo.
echo - Pack office 2003
echo - Nero 8
echo - Winrar
echo.
REM --------------------------------------------------------------
REM Variable pour Vérification de l insertion du CD N°2
REM --------------------------------------------------------------
IF EXIST D:\PRESENCE.txt set CDROM=D:
IF EXIST E:\PRESENCE.txt set CDROM=E:
IF EXIST F:\PRESENCE.txt set CDROM=F:
IF EXIST G:\PRESENCE.txt set CDROM=G:
IF EXIST H:\PRESENCE.txt set CDROM=H:
IF EXIST I:\PRESENCE.txt set CDROM=I:
IF EXIST J:\PRESENCE.txt set CDROM=J:
IF EXIST K:\PRESENCE.txt set CDROM=K:
IF EXIST L:\PRESENCE.txt set CDROM=L:
IF EXIST M:\PRESENCE.txt set CDROM=M:
IF EXIST N:\PRESENCE.txt set CDROM=N:
IF EXIST O:\PRESENCE.txt set CDROM=O:
IF EXIST P:\PRESENCE.txt set CDROM=P:
REM --------------------------------------------------------------
REM Début du script validation insertion CD
REM --------------------------------------------------------------
:debut
echo.Pour continuer l installation veuillez ins‚rer le DVD Nø2.
echo.Et appuyer sur "ENTRER"...
echo.Ou sur E pour quitter l assistant d installation.
set /p action=
IF "%action%"=="" GOTO INSTALLATION
IF "%action%"!="" GOTO QUIT
REM --------------------------------------------------------------
REM Vérification CD inséré
REM --------------------------------------------------------------
:INSTALLATION
IF "%CDROM%"=="" GOTO ERROR ELSE SUITE
REM --------------------------------------------------------------
REM Lancement de l installation des programmes si CD ok
REM --------------------------------------------------------------
:SUITE
echo.
echo Installation du Pack Office 2003
echo ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ
echo Installation en cours ! Veuillez patienter...
start /wait %CDROM%\SETUP.EXE TRANSFORMS=%systemdrive%\Programmes\
Office2003\Office.MST /qb
echo Installation termin‚e correctement.
echo.
echo Installation de Nero 8
echo ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ
echo Installation KB884016 v2 en cours ! Veuillez patienter...
start /wait %CDROM%\WindowsInstaller-KB884016-v2-x86.exe /passive /norestart
echo Installation termin‚e correctement.
echo Installation Nero 8 en cours ! Veuillez patienter...
start /wait %CDROM%\SetupX.exe /qb! /NORESTART
echo Installation termin‚e correctement.
echo.
echo Installation de Winrar
echo ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ
echo Installation en cours ! Veuillez patienter...
start /wait %CDROM%\APPS\Utilitaire\WINRAR\winrar.exe
echo Installation termin‚e correctement.
GOTO FIN
REM --------------------------------------------------------------
REM Traitement erreur si mauvais CD inséré
REM --------------------------------------------------------------
:ERROR
ECHO Le cd ins‚rer n est pas valide !
ECHO.
GOTO DEBUT
:QUIT
GOTO FIN
REM ---------------------------------------------------------------
REM Fin du script
REM ---------------------------------------------------------------
:FIN
echo.
echo ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ
echo.
echo Installation termin‚e, suppr‚ssion et relance de a machine.
rd /S /Q %systemdrive%\Programmes
echo Suupréssion Termin‚e
echo.
echo. Red‚marrage de la machine dans 10 s pour la prise en
echo. compte des modifications...
shutdown -r -t 10
echo.
pause
EXIT