Install wkhtmltox.dll on Windows 2019 Server Core

135 views
Skip to first unread message

Boson Boron

unread,
Jan 9, 2022, 6:39:54 PM1/9/22
to wkhtmltopdf General
Hi, 

I have installed wkhtmltox.dll version 12.1.2 on Windows 2012 R2 Server (classic Azure VM) using wkhtmltox-0.12.1.2_msvc2013-win64.exe.  The install GUI comes up and installs fine.

I've created a new Window 2019 Server Core Azure Resource Manager VM (10.0.17763 N/A Build 17763 ), which is command line only.  I've tried running wkhtmltox-0.12.1.2_msvc2013-win64.exe from the command line, but I just seem to get a file C:\windows\Temp\99732341\8\0.12.2.1\wkhtmltox.dll and that's it.  Attempting to load TuesPechkin (a .NET wrapper DLL for wkhtmltox.dll) doesn't seem to work.

Is there a way to install via the command line with no GUI, or should I just copy the DLL to a directory and put that directory on the DLL path?

Thanks.

Boson Boron

unread,
Jan 11, 2022, 12:48:16 PM1/11/22
to wkhtmltopdf General
Solved it.  So apparently TuesPechkin includes a copy of wkhtmltox.dll in it's resources, and dynamically unzips it to the file system, and loads it.  wkhtmltox.dll depends on "Visual C++ Redistributable Packages for Visual Studio 2013", which TuesPechkin does not provide.  After downloading "Visual C++ Redistributable Packages for Visual Studio 2013" I was able to install it from the command line with the quiet switch "vcredist_x64.exe /Q".
Reply all
Reply to author
Forward
0 new messages