ken_nogi/bat/Rustdesk_nextgroup/RustDesk1.3.5_自動インストールバッチ.bat
Kenichiro NOGI 88a402ce0f up
2026-07-10 18:13:30 +09:00

58 lines
1.4 KiB
Batchfile
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@echo off
REM #管理者として実行する処理
echo ■■■■■■■■■■■■■■■■■■■■■■
echo ■■■■■■■■■■■■■■■■■■■■■■
net session >NUL 2>nul
if %errorlevel% neq 0 (
echo ■■■■■■■■■■■■■■■■■■■■■■
echo.
echo このアプリがデバイスに変更を加えることを許可しますか?
echo ポップアップメッセージが出た場合は、「はい」をクリックしてください。
echo.
echo ■■■■■■■■■■■■■■■■■■■■■■
echo.
@powershell start-process %~0 -verb runas
exit
)
REM #Rustdesk.exe のプロセスが稼働している場合は強制終了
echo Rustdesk.exe プロセスを強制停止します...
taskkill /IM rustdesk.exe /F >nul 2>nul
REM #5秒待機
timeout /t 5 /nobreak >nul
REM #Rustdesk.exe プロセスが停止できたか確認
tasklist | findstr /I "rustdesk.exe" >nul
if %errorlevel%==0 (
echo Rustdesk.exe のプロセスがまだ動作しています。手動で終了してください。
pause
exit /b 1
) else (
echo Rustdesk.exe のプロセスは正常に停止しました。
)
REM #ファイルサーバのRustdesk実行ファイルをコピー
set TARGET=%~dp0
set RUSTDSK=rustdesk-nextgroup-1.3.5-x86_64.exe
echo %TARGET%\%RUSTDSK%
echo ■■■■■■■■■■■■■■■■■■■■■■
echo RUSTDESKをインストールしています
echo.
REM #サイレントインストール
%TARGET%\%RUSTDSK% --silent-install
echo
echo.
echo.
echo RUSTDESKをインストールしました
echo ■■■■■■■■■■■■■■■■■■■■■■
echo.
pause