Il y a test_RunOnce.reg et RunOnce.reg ?Owned67 a écrit :Ce n'est pas une partie mais ce que j'ai dans les fichiers, je n'ai rien enlevé ! Il n'y a pas plus ni moins
[Résolu] 5 MAJ après intégration updatePack....
Re: [Aide] 5 MAJ après intégration updatePack....
Re: [Aide] 5 MAJ après intégration updatePack....
Salut a tous , prend les kb.msu sur WinToolKit après pour les intégrer utiliser rt7lite => http://www.rt7lite.com/" onclick="window.open(this.href);return false;
Re: [Aide] 5 MAJ après intégration updatePack....
test_RunOnce.reg sors de la commande reg export pour tester si la clé est correctement ajouté après son exécution et RunOnce.reg contient la clé permettant de lancer apps.cmd après le redémarrage...Il y a test_RunOnce.reg et RunOnce.reg ?
edit: donc regedit /s ne prend pas mais reg add oui lol :s
SetupComplete est correctement exécuté par contre dans apps.cmd, il n'y a que quelques commandes qui sont prises en comptent...
apps.cmd (BatchGotAdmin trouvé sur la toile) :
Code : Tout sélectionner
@echo off
:: BatchGotAdmin
:-------------------------------------
REM --> Check for permissions
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
REM --> If error flag set, we do not have admin.
if '%errorlevel%' NEQ '0' (
echo Requesting administrative privileges...
goto UACPrompt
) else ( goto gotAdmin )
:UACPrompt
echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs"
"%temp%\getadmin.vbs"
exit /B
:gotAdmin
if exist "%temp%\getadmin.vbs" ( del "%temp%\getadmin.vbs" )
pushd "%CD%"
CD /D "%~dp0"
@echo %USERNAME% >> %systemdrive%\Usernames.txt
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 3 >nul
cmd /c start /wait %systemdrive%\UniversalThemePatcher.exe -silent
cmd /c start /wait %systemdrive%\AIO.exe
cmd /c start /wait %systemdrive%\FileZilla.exe
cmd /c start /wait %systemdrive%\Themes.exe
@ping localhost -n 3 >nul
cmd /c del /q /f %systemdrive%\Windows\Setup\Scripts\*
cmd /c del /q /f %systemdrive%\*.exe
cmd /c rd /q /s %systemdrive%\Windows\Setup\Scripts
@ping localhost -n 3 >nul
shutdown.exe /r /t 15
@ping localhost -n 3 >nul
exit
En testant dans une invite de commande, cmd /c start /wait %systemdrive%\FileZilla.exe fonctionne à merveille...