1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107
|
@echo off
Y:
cd "00 - UPDATE PC"
REM Test de l'OS
ver | find "XP" > nul
if %ERRORLEVEL% == 0 goto ver_xp
@echo off
if defined ProgramFiles(x86) (
@echo Type 64-bit
@echo off
echo Windows 7 et plus 64 bits
echo.
@echo off
(
echo.
echo.
@echo off
echo Installation de Java en cours :
jre-8u131-windows-i586.exe /s SPONSORS=0 && echo Installation Java realisee || echo Pas d'installation Java
@echo off
REM test du format de pc (laptop/desktop) pour l'installation par le format de la mémoire
Echo Detection du type d'ordinateur :
for /f "delims=" %%a in ('wmic memorychip get FormFactor ^| findstr "[0-9]"') do echo %%a>"$"
set /p $val= <$&&del "$"
echo Type = %$val: =%
if "%$val: =%"=="12" goto portable64
if "%$val: =%"=="8" goto bureau
echo Erreur Type d'ordinateur indetermine !
goto exit
PAUSE
)
echo.
) else (
@echo Type 32-bit
@echo off
echo Windows 7 32 bits
echo.
@echo off
(
echo.
echo.
@echo off
echo Installation de Java en cours :
jre-8u131-windows-i586.exe /s SPONSORS=0 && echo Installation Java realisee || echo Pas d'installation Java
@echo off
REM test du format de pc (laptop/desktop) pour l'installation par le format de la mémoire
Echo Detection du type d'ordinateur :
for /f "delims=" %%a in ('wmic memorychip get FormFactor ^| findstr "[0-9]"') do echo %%a>"$"
set /p $val= <$&&del "$"
echo Type = %$val: =%
if "%$val: =%"=="12" goto portable32
if "%$val: =%"=="8" goto bureau
echo Erreur Type d'ordinateur indetermine !
goto exit
PAUSE
)
echo.
)
goto exit
:bureau
echo Cette machine est un Bureau
echo Pas d'installation de Pulse Secure
goto exit
:portable32
echo Cette machine est un portable
echo.
echo.
@echo off
echo Installation de VLC en cours :
vlc-2.2.6-win32.exe /L=1036 /S /qn /noreboot && echo Installation VLC realisee || echo Pas d'installation VLC
goto exit
:portable64
echo Cette machine est un portable
echo.
echo.
@echo off
echo Installation de VLC en cours :
vlc-2.2.6-win32.exe /L=1036 /S /qn /noreboot && echo Installation VLC realisee || echo Pas d'installation VLC
goto exit
:exit
echo Appuyez sur une touche pour mettre fin au programme
PAUSE |
Partager