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
|
@echo off
for /f "tokens=3" %%i in ('reg query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "EnableLUA" ^| find "EnableLUA" ') do set key=%%i
echo %key%
if %key% == 0x0 (
echo L'UAC est desactive, la procedure va continuer.
) else ( goto :enable_uac )
echo.
:uac_enabled
net use a: \\192.168.1.3\****\ressources\softs_install /persistent:no /user:****
copy "a:\Windows.jpeg" "%temp%"
copy "a:\kis15.0.0.463fr_6152.exe" "%homedrive%%homepath%\Desktop"
copy "a:\Team Viewer.exe" "%homedrive%%homepath%\Desktop"
echo.
echo.
echo CCleaner est en cours d'installation...
"a:\ccsetup415.exe" /S /L=1036
echo CCleaner a ete installe.
echo.
echo VLC est en cours d'installation...
"a:\vlc-2.1.3-win32" /S /L=1036
echo VLC a ete installe.
echo.
echo Firefox est en cours d'installation...
"a:\Firefox Setup 30.0.exe" -ms
echo Firefox a ete installe.
xcopy /E /Y /Q "A:\APPDATA_FF\*" "%appdata%" > nul
echo Et son AppData a ete copie.
echo.
echo Skype est en cours d'installation...
"a:\SkypeSetupFull.exe" /verysilent /norestart /nolaunch
reg delete HKCU\Software\Microsoft\Windows\CurrentVersion\Run /v Skype /f
echo Skype a ete installe.
echo.
echo Reader est en cours d'installation...
msiexec.exe /I "a:\AdbeRdr11000_fr_FR.msi" /qn
echo Reader a ete installe.
echo.
echo Flash est en cours d'installation...
msiexec.exe /I "a:\install_flash_player_14_plugin.msi" /qn
echo Flash a ete installe.
echo.
reg add "HKCU\Control Panel\Desktop" /v Wallpaper /d "%temp%\Windows.jpeg" /F
RUNDLL32.EXE USER32.DLL,UpdatePerUserSystemParameters ,1 ,True
echo Appuyez sur une touche pour redemarrer...
pause>nul
reg ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 1 /f
shutdown /r /t 0
goto :eof
:enable_uac
echo L'UAC doit se desactiver. Veuillez patienter...
reg ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f
echo Appuyez sur une touche pour redemarrer, puis relancez #INSTALLATION.bat.
pause>nul
shutdown /r /t 0 |
Partager