Subversion Repositories Aucun

Compare Revisions

Ignore whitespace Rev 90 → Rev 91

/trunk/update.cmd
1,27 → 1,32
@echo off
echo F | xcopy /y /q release\aucun.dll release\aucun2.dll
 
setlocal
rem ------------------------------
rem Take a chance with Aucun.dll
rem Make a time based file name
rem ------------------------------
echo.
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v GinaDLL /t REG_SZ /d aucun.dll /f > nul
xcopy /y /f release\aucun.dll %WINDIR%\system32\.
set AUCUN_DLL_NAME=AUCUN-%RANDOM%.dll
 
if not %ERRORLEVEL%==0 (
rem ------------------------------
rem Delete any old DLL, but one...
rem ------------------------------
del /q %windir%\system32\aucun*.dll
 
echo F | xcopy /v .\debug\aucun.dll "%windir%\system32\%AUCUN_DLL_NAME%"
 
rem ------------------------------
rem It must be aucun2.dll
rem Edit the registry
rem ------------------------------
echo.
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v GinaDLL /t REG_SZ /d aucun2.dll /f > nul
xcopy /y /f release\aucun2.dll %WINDIR%\system32\.
)
:SHUTUPANDREBOOT
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v GinaDLL /t REG_SZ /d "%AUCUN_DLL_NAME%" /f > nul
 
echo.
if %ERRORLEVEL%==0 (
 
reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v GinaDLL
dir /od %windir%\system32\aucun*.dll | findstr /I /c:aucun
reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v GinaDLL
 
shutdown /r /t 5 /f
 
)
 
endlocal