Alpha_95 Posted March 25, 2016 Share Posted March 25, 2016 (edited) Bonsoir, dans un batch, je veux redémarrer après que Wintool Kit installer est terminé mis il ne redémarre pas... le bat: @echo off REG ADD "HKCU\Console" /v "QuickEdit" /t REG_DWORD /d "1" /f ping localhost -n 1 >nul REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /v "c:\Windows\System32\cmd.exe" /t REG_SZ /d "RUNASADMIN" /f ping localhost -n 1 >nul REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /v "c:\Windows\SysWOW64\cmd.exe" /t REG_SZ /d "RUNASADMIN" /f ping localhost -n 1 >nul REG ADD "HKCU\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /v "c:\Windows\System32\cmd.exe" /t REG_SZ /d "RUNASADMIN" /f ping localhost -n 1 >nul REG ADD "HKCU\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /v "c:\Windows\SysWOW64\cmd.exe" /t REG_SZ /d "RUNASADMIN" /f ping localhost -n 1 >nul REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce /V Install /D "CMD /C START /W %windir%\Setup\Scripts\Install.cmd" ping localhost -n 1 >nul echo Red‚marrage dans 3 minutes shutdown -r -t 180 exit le redémarrage ne se fait pas, avez-vous une idée ? Les clés de registres sont bien modifiés. edit: install.ini = reboot modifier false à true et ça fonctionne Cordialement, Edited March 26, 2016 by Alpha_95 Quote Link to comment Share on other sites More sharing options...
Tifo71 Posted March 27, 2016 Share Posted March 27, 2016 (edited) J'essai moi aussi de faire un reboot après les silent install, j'ai fait un SFX avec winrar. Je pense avoir trouver pourquoi ça fonctionne pas. Il faut pas le décompresser dans un dossier temporaire. Mais tu peux faire un SFX seul pour le reboot Par contre l'installer de wintoolkit met du temps a se lancer. Je sais pas si c'est normal Edited March 27, 2016 by Tifo71 Quote Link to comment Share on other sites More sharing options...
Hellpell Posted July 12, 2016 Share Posted July 12, 2016 Salut, Moi dans mes batch je met : shutdown /R /T 5 Pourquoi ne pas mettre ton shutdown a la fin de ton fichier install.cmd ? Petite question : a quoi sert ces lignes : ping localhost -n 1 >nul Merci par avance. Quote Link to comment Share on other sites More sharing options...
Alpha_95 Posted July 13, 2016 Author Share Posted July 13, 2016 la ligne sert à mettre une pause d'une seconde entre chaque commande. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.