Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic RDP Wrapper installer and updater (autoupdate.bat **bugfix) #860

Open
asmtron opened this issue Aug 12, 2019 · 23 comments
Open

Automatic RDP Wrapper installer and updater (autoupdate.bat **bugfix) #860

asmtron opened this issue Aug 12, 2019 · 23 comments

Comments

@asmtron
Copy link

@asmtron asmtron commented Aug 12, 2019

autoupdate-v07.09.2019.zip

Pull request: #859

The new batch file "autoupdate.bat" check, install and update the RDP Wrapper automatically in the background. For example very useful after a windows update reboot ...

{ Special thak to binarymaster, saurav-biswas and all other contributors }

 -------------------------------------------------------------------

                        autoupdate.bat

 Automatic RDP Wrapper installer and updater // asmtron (07-09-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-v07.09.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 the folling autoupdate batch file as administrator:

   "%ProgramFiles%\RDP Wrapper\autoupdate.bat"

@asmtron asmtron changed the title new autoupdate.bat - Automatic RDP Wrapper installer and updater Automatic RDP Wrapper installer and updater (autoupdate.bat, very useful) Aug 12, 2019
@asmtron asmtron changed the title Automatic RDP Wrapper installer and updater (autoupdate.bat, very useful) Automatic RDP Wrapper installer and updater (autoupdate.bat) Aug 12, 2019
@junkwes

This comment has been minimized.

Copy link

@junkwes junkwes commented Aug 12, 2019

Thank you but I am getting Listener state: Not listening. Everything else seems supported and fine.

@asmtron asmtron changed the title Automatic RDP Wrapper installer and updater (autoupdate.bat) Automatic RDP Wrapper installer and updater (autoupdate.bat **bugfix) Aug 13, 2019
@asmtron

This comment has been minimized.

Copy link
Author

@asmtron asmtron commented Aug 13, 2019

Important -> autoupdate.bat **bugfix!

  1. bug: normal copy with admin right of the file "rdpwrap_new.ini" to "rdpwrap.ini" will not work properly (file locked)
  2. fix: we need to stream the data line by line from "rdpwrap_new.ini" to "rdpwrap.ini"
  3. add: listener check

With this bugfix autoupdate.bat works now as expected...

@luisBSBDATA

This comment has been minimized.

Copy link

@luisBSBDATA luisBSBDATA commented Aug 13, 2019

Works like a charm! Incredible work, there's a way to propose that tool to be integrated on RDPWrap? That's a game changer, main problem I have since I'm using RDPWrap is Windows Update handling but with this that's no longer a problem. Thanks!

@StarfighterJ

This comment has been minimized.

Copy link

@StarfighterJ StarfighterJ commented Aug 14, 2019

Ok I just got a update today going from 18362.267 to 18362.295 not sure if rdpwrap is effected yet I hope this Autoupdate.bat works.
Looks like terms.dil didn't change in this 295 update no way to know if autoupdate.bat work yet

@PocketSam

This comment has been minimized.

Copy link

@PocketSam PocketSam commented Aug 15, 2019

Awesome! Thanks a lot!

@gitgotgone

This comment has been minimized.

Copy link

@gitgotgone gitgotgone commented Aug 17, 2019

Woot woot! I got Windows Defender warnings the first time just because it was an unknown app, but after that no problem. Thanks!

@PocketSam

This comment has been minimized.

Copy link

@PocketSam PocketSam commented Aug 19, 2019

On Windows 7 Corporate x64 with termsrv 6.1.7601.24402 Remote Desctop often crashes. :(
termsrv.dll

@smyle10

This comment has been minimized.

Copy link

@smyle10 smyle10 commented Aug 20, 2019

cool, it solved my no-listener problem on 17134.885

@shippj

This comment has been minimized.

Copy link

@shippj shippj commented Aug 26, 2019

hey Asmtron, I love the work you have done to create that awesome BAT to update the INI, but why not just modify the source code of RDPWInst.exe in your fork to make the native update function (-w) pull the INI from your fork? Seems like you reinvented the wheel. Also, I couldn't find a place to send you a message via your github page - did you disable comments or something? I have a delphi7 compiler if that would be of any help to you. thanks!

@asmtron

This comment has been minimized.

Copy link
Author

@asmtron asmtron commented Aug 26, 2019

Hi shippj, thanks for your offer. With the batch file we avoid hard coded links in a binary file and the download links are always visible for everyone. It is also very easy for everyone to modify/add new ini download sources. The batch file is an addon for the RDP Wrapper and it does no touch the RDP Wrapper binaries (it's intended).

@s0nic9

This comment has been minimized.

Copy link

@s0nic9 s0nic9 commented Aug 29, 2019

@NetE1

This comment has been minimized.

Copy link

@NetE1 NetE1 commented Aug 29, 2019

@asmtron Have a look at this #872 (comment)

@strarsis

This comment has been minimized.

Copy link

@strarsis strarsis commented Aug 29, 2019

@s0nic9: Thanks! I just added your config to an ini file and manually reinstalled rdpwrap with the custom ini and it works now.

@RsRough

This comment has been minimized.

Copy link

@RsRough RsRough commented Sep 28, 2019

I have done the steps listed. Here are my issues:
Service State: Starting... Ver. 10.0.18362.53
Listener: Not Listening [Fully Supported]

I bring up Remote Desktop Services in services.msc and it shows "Starting" and I am unable to Stop, Restart, or Start it.

@vlciho

This comment has been minimized.

Copy link

@vlciho vlciho commented Nov 2, 2019

Awesome!! This recover my install of RDPwrap! Thank you, man! :-)

@RDPGREX2019

This comment has been minimized.

Copy link

@RDPGREX2019 RDPGREX2019 commented Nov 8, 2019

@vlciho Hello sir, I hope you are well, could you please help me with the solution you applied to solve the problem of the rdpwrap_10.0.18362.267 version

@RDPGREX2019

This comment has been minimized.

Copy link

@RDPGREX2019 RDPGREX2019 commented Nov 8, 2019

HELPPPPPPPPPPPPPPPP!!!!!!!!!!!!!!!!!!
I couldn't solve this problem

Captura de pantalla (224)
Captura de pantalla (225)
Captura de pantalla (226)

@vlciho

This comment has been minimized.

Copy link

@vlciho vlciho commented Nov 9, 2019

@vlciho

This comment has been minimized.

Copy link

@vlciho vlciho commented Nov 9, 2019

Log here.
autoupdate.log
note1
note2

@actanner

This comment has been minimized.

Copy link

@actanner actanner commented Nov 23, 2019

Please forgive my github ignorance. How do I get the most recent version of the autoupdate.bat file? Thank you.

@shippj

This comment has been minimized.

Copy link

@shippj shippj commented Nov 23, 2019

Please forgive my github ignorance. How do I get the most recent version of the autoupdate.bat file? Thank you.

here ya go:
https://github.com/asmtron/rdpwrap/tree/master/bin

@actanner

This comment has been minimized.

Copy link

@actanner actanner commented Nov 23, 2019

Well, I still have lots to learn about github. I see the autoupdate.bat listing, but I still don't know how to download the .bat file directly so that I can execute it. Thanks in advance, and I hope to learn lots more about github soon.

@actanner

This comment has been minimized.

Copy link

@actanner actanner commented Nov 23, 2019

Well, I clicked on the "Raw" button and downloaded but wound up with a strange "overdrive" extension. Once I renamed the file, it looks like it would properly execute as a batch file, but it has the 07/09/2019 date in the remarks section, leading me to believe that it is not the most recent, since bugs were fixed on 12 Aug. I think I am getting closer, but....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
You can’t perform that action at this time.