Jump to content

Winntool Kit SFX


Recommended Posts

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 by Alpha_95
Link to comment
Share on other sites

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 by Tifo71
Link to comment
Share on other sites

  • 3 months later...

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...