From 7c1461ff882b16d67599ae89490ca202a5bda026 Mon Sep 17 00:00:00 2001 From: himenlinamarbric Date: Wed, 28 Jul 2021 16:28:36 +0200 Subject: [PATCH] Set `SLInitHook.x64=0` in .ini file to fix Easy Print Remote printing only works if the host has exactly the same printer driver installed as the client. The Remote Desktop Easy Print driver is supposed to make any remote printer work. But with rdpwrap installed this driver is not used. https://github.com/stascorp/rdpwrap/issues/874 mentions a solution / workaround: set `SLInitHook.x64=0`. This works for me. I have no clue what `SLInitHook` does and if this change has any undesired effects. --- bin/autoupdate.bat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/autoupdate.bat b/bin/autoupdate.bat index f90edce1..81d439a0 100644 --- a/bin/autoupdate.bat +++ b/bin/autoupdate.bat @@ -245,8 +245,8 @@ if exist %rdpwrap_new_ini% ( echo -^> %rdpwrap_ini_url% echo -^> %rdpwrap_new_ini% echo -^> %rdpwrap_ini% - echo [+] copy %rdpwrap_new_ini% to %rdpwrap_ini%... - copy %rdpwrap_new_ini% %rdpwrap_ini% + echo [+] copy %rdpwrap_new_ini% to %rdpwrap_ini% and set `SLInitHook.x64=0`... + powershell -Command "(gc '%rdpwrap_new_ini%') -replace 'SLInitHook.x64=1', 'SLInitHook.x64=0' | Out-File -encoding ASCII '%rdpwrap_ini%'" echo. ) else ( echo [x] ERROR - File %rdpwrap_new_ini% is missing ^^!