24 lines
No EOL
873 B
Batchfile
24 lines
No EOL
873 B
Batchfile
@echo off
|
|
set dir=%~dp0
|
|
cd %dir%
|
|
|
|
set download_url=""
|
|
|
|
taskkill /f /t /im dislocker_client_shutdown.exe
|
|
taskkill /f /t /im dislocker_client.exe
|
|
|
|
curl -L %download_url% -o %dir%\dislocker_client.zip
|
|
|
|
mkdir %dir%\temp_ds\
|
|
tar -xf %dir%\dislocker_client.zip -C %dir%\temp_ds\
|
|
|
|
rmdir /s /q C:\ProgramData\Dislocker\_internal\
|
|
xcopy /e %dir%\temp_ds\_internal\ C:\ProgramData\Dislocker\_internal\
|
|
xcopy /Y %dir%\temp_ds\dislocker_client.exe C:\ProgramData\Dislocker\dislocker_client.exe
|
|
xcopy /Y %dir%\temp_ds\dislocker_client_shutdown.exe C:\ProgramData\Dislocker\dislocker_client_shutdown.exe
|
|
xcopy /Y %dir%\temp_ds\shortcut.vbs C:\ProgramData\Dislocker\shortcut.vbs
|
|
xcopy /Y %dir%\temp_ds\setup.cmd C:\ProgramData\Dislocker\setup.cmd
|
|
rmdir /s /q %dir%\temp_ds\
|
|
del %dir%\dislocker_client.zip
|
|
echo アップデート完了。Defenderの警告を消すため、一度起動しておいてください。
|
|
pause |