Skip to content
Snippets Groups Projects
Commit 04367e44 authored by LABORIE Stéphane's avatar LABORIE Stéphane
Browse files

test avec download des fichiers

parent 77137e6f
No related branches found
No related tags found
No related merge requests found
......@@ -32,20 +32,11 @@ echo "Appuyez sur une touche pour continuer"
GOTO DRIVERS
:DRIVERS
:: On vérifie si on est connecté à internet
echo "Verification de la connection internet"
ping www.mri.cnrs.fr -n 1 -w 1000
if errorlevel 1 goto NOINTERNET
echo "Ok on continue"
:: On cherche le fabricant du PC
for /f "tokens=1* delims==" %%a in (
'wmic computersystem get manufacturer /value'
) do for /f "delims=" %%c in ("%%~b") do set "manufacturer=%%c"
:: On cherche la cle ventoy et on recupere sa lettre de lecteur
:: for /f %%D in ('wmic volume get DriveLetter^, Label ^| find "Ventoy"') do set usb=%%D
if not "x%manufacturer:Dell=%"=="x%manufacturer%" GOTO DELL
if not "x%manufacturer:HP=%"=="x%manufacturer%" GOTO HP
GOTO UNKNOWN
......@@ -57,9 +48,9 @@ GOTO DRIVERS
:DELL
curl -o %TEMP%\dotnet-4.8.exe -L https://go.microsoft.com/fwlink/?linkid=2088631
copy /Y "%usb%\Logiciels et drivers\DELL\Dell-Command-Update-Windows-Universal-Application_JCVW3_WIN_5.1.0_A00.exe" %TEMP%\
curl -o %TEMP%\dell-command-update.exe -L https://src.koda.cnrs.fr/stephane.laborie.7/windows-ventoy-auto-install/-/raw/main/Files/Dell-Command-Update-Windows-Universal-Application_JCVW3_WIN_5.1.0_A00.EXE
START /WAIT %TEMP%\dotnet-4.8.exe /passive /norestart
START /WAIT %TEMP%\Dell-Command-Update-Windows-Universal-Application_JCVW3_WIN_5.1.0_A00.exe /s
START /WAIT %TEMP%\dell-command-update.exe /s
START /WAIT "%programfiles%\Dell\CommandUpdate\dcu-cli.exe" /driverInstall
shutdown /r /F /T 0
GOTO EOF
......
......@@ -331,7 +331,7 @@
<FirstLogonCommands>
<SynchronousCommand wcm:action="add">
<Order>1</Order>
<CommandLine>cmd.exe /c "&gt;&gt;"C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\post_install.cmd" @echo off"</CommandLine>
<CommandLine>cmd.exe /c "&gt;&gt;"C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\post_install.cmd" \@echo off"</CommandLine>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>2</Order>
......@@ -347,7 +347,7 @@
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>5</Order>
<CommandLine>cmd.exe /c "&gt;&gt;"C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\post_install.cmd" echo echo Ok on continue"</CommandLine>
<CommandLine>cmd.exe /c "&gt;&gt;"C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\post_install.cmd" echo GOTO INTERNETOK"</CommandLine>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>6</Order>
......@@ -355,7 +355,7 @@
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>7</Order>
<CommandLine>cmd.exe /c "&gt;&gt;"C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\post_install.cmd" echo echo Pas de connection à internet, appuyez sur une touche quand la connection sera établie"</CommandLine>
<CommandLine>cmd.exe /c "&gt;&gt;"C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\post_install.cmd" echo echo Pas de connection internet, appuyez sur une touche quand la connection sera retablie"</CommandLine>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>8</Order>
......@@ -365,6 +365,18 @@
<Order>9</Order>
<CommandLine>cmd.exe /c "&gt;&gt;"C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\post_install.cmd" echo GOTO DRIVERS"</CommandLine>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>10</Order>
<CommandLine>cmd.exe /c "&gt;&gt;"C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\post_install.cmd" echo :INTERNETOK"</CommandLine>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>11</Order>
<CommandLine>cmd.exe /c "&gt;&gt;"C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\post_install.cmd" echo curl o %TEMP%\autoinstall.bat https://src.koda.cnrs.fr/stephane.laborie.7/windows-ventoy-auto-install/-/raw/main/Files/autoinstall.bat"</CommandLine>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>12</Order>
<CommandLine>cmd.exe /c "&gt;&gt;"C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\post_install.cmd" echo START %TEMP%\autoinstall.bat"</CommandLine>
</SynchronousCommand>
</FirstLogonCommands>
</component>
</settings>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment