diff --git a/script/update_online.cmd b/script/update_online.cmd index 66c9d6a..4b72f06 100644 --- a/script/update_online.cmd +++ b/script/update_online.cmd @@ -6,13 +6,16 @@ set download_url="" curl -L %download_url% -o %dir%\dislocker_client.zip -mkdir %dir%\temp_ds -tar -xf %dir%\dislocker_client.zip -C %dir%\temp_ds +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 +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 -rmdir /s /q %dir%\temp_ds +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 \ No newline at end of file