From 71c87f1b41a61c01d7d8377c7563f3d1a6a15997 Mon Sep 17 00:00:00 2001 From: asmtron <49522124+asmtron@users.noreply.github.com> Date: Mon, 12 Aug 2019 00:19:57 +0000 Subject: [PATCH] Add autoupdate.bat Automatic RDP Wrapper installer and updater --- bin/autoupdate.bat | 264 ++++++++++++++++++ ...autoupdate__disable_autorun_on_startup.bat | 9 + .../autoupdate__enable_autorun_on_startup.bat | 9 + bin/helper/autoupdate__info.txt | 47 ++++ 4 files changed, 329 insertions(+) create mode 100644 bin/autoupdate.bat create mode 100644 bin/helper/autoupdate__disable_autorun_on_startup.bat create mode 100644 bin/helper/autoupdate__enable_autorun_on_startup.bat create mode 100644 bin/helper/autoupdate__info.txt diff --git a/bin/autoupdate.bat b/bin/autoupdate.bat new file mode 100644 index 0000000..06a5cfd --- /dev/null +++ b/bin/autoupdate.bat @@ -0,0 +1,264 @@ + + + + + \ No newline at end of file diff --git a/bin/helper/autoupdate__disable_autorun_on_startup.bat b/bin/helper/autoupdate__disable_autorun_on_startup.bat new file mode 100644 index 0000000..b18d7f7 --- /dev/null +++ b/bin/helper/autoupdate__disable_autorun_on_startup.bat @@ -0,0 +1,9 @@ +@echo off +if exist "%~dp0autoupdate.bat" ( + call "%~dp0autoupdate.bat" -taskadd +) else ( + if exist "%~dp0..\autoupdate.bat" ( + call "%~dp0..\autoupdate.bat" -taskadd + ) +) +pause \ No newline at end of file diff --git a/bin/helper/autoupdate__enable_autorun_on_startup.bat b/bin/helper/autoupdate__enable_autorun_on_startup.bat new file mode 100644 index 0000000..b18d7f7 --- /dev/null +++ b/bin/helper/autoupdate__enable_autorun_on_startup.bat @@ -0,0 +1,9 @@ +@echo off +if exist "%~dp0autoupdate.bat" ( + call "%~dp0autoupdate.bat" -taskadd +) else ( + if exist "%~dp0..\autoupdate.bat" ( + call "%~dp0..\autoupdate.bat" -taskadd + ) +) +pause \ No newline at end of file diff --git a/bin/helper/autoupdate__info.txt b/bin/helper/autoupdate__info.txt new file mode 100644 index 0000000..ffbe606 --- /dev/null +++ b/bin/helper/autoupdate__info.txt @@ -0,0 +1,47 @@ + ------------------------------------------------------------------- + + autoupdate.bat + + Automatic RDP Wrapper installer and updater // asmtron (11-08-2019) + ------------------------------------------------------------------- + Options: + -log = redirect display output to the file autoupdate.log + -taskadd = add autorun of autoupdate.bat on startup in schedule task + -taskremove = remove autorun of autoupdate.bat on startup in schedule task + + Info: + The autoupdater first use and check the official rdpwrap.ini. + If a new termsrv.dll is not supported in the offical rdpwrap.ini, + autoupdater first tries the asmtron rdpwrap.ini (disassembled and + tested by asmtron). The autoupdater will also use rdpwrap.ini files + of other contributors like the one of "saurav-biswas". + Extra rdpwrap.ini sources can also be defined... + + { Special thak to binarymaster, saurav-biswas and all other contributors } + + + + + INSTALL of RDP Wrapper and Autoupdater + ====================================== + + 1. Copy the files from the archive "RDPWrap-v1.6.2.zip" (or newer) to the "%ProgramFiles%\RDP Wrapper" directory + + DO NOT use other location to install/extract the RDP Wrapper files. + USE ONLY the "%ProgramFiles%\RDP Wrapper" directory (normally C:\Program Files\RDP Wrapper) + + + 2. Copy the files/folder from the archive "autoupdate-v11.08.2019.zip" (or newer) to the "%ProgramFiles%\RDP Wrapper" directory + + + 3. To enable autorun of autoupdate.bat on system startup, run the folling helper batch file as administrator: + + "%ProgramFiles%\RDP Wrapper\helper\autoupdate__enable_autorun_on_startup.bat" + + + 4. Set in your Antivirus/WindowsDefnder an exclusion on the folder "%ProgramFiles%\RDP Wrapper" to prevent the deletion of RDP Wrapper files + + + 5. Now you can use the autoupdate batch file to install and update the RDP Wrapper. Please run autoupdate.bat as administrator: + + "%ProgramFiles%\RDP Wrapper\autoupdate.bat"