Home
About
Search
Welcome to M-Files Empower – our new support experience. We'd love to hear what you think!Give feedback
Home/Support and troubleshooting/Examples and how to

How to re-install PDFTron Viewer (Hubshare On-Premise)

Last updated on 9 December 2024 · 2 min read

Admin
M-Files Hubshare

Overview

PDFTron Viewer is used in M-Files Hubshare to preview the files you will have in your M-Files widgets or in the Files module.

Sometimes, you could have some issues with the viewer or some slowness in your environment. This article will show you how to run a script to uninstall and reinstall PDFTron viewer (along with its service).

Solution

  1. Open Windows PowerShell as an administrator
  2. Change directory to the version you're currently using and go inside \Automation\Scripts\
    Here's an example: C:\Hubshare\Packages\4.0.5.9\Automation\Scripts.image.png
  3. Now run this command:
    .\EnsureViewerInstalled.ps1 -AllowUpgrade
    The PowerShell script will now proceed to uninstall the PDFTron viewer (service and application) and do a fresh reinstallation.
    This process can take a few minutes, as it should begin to look like this:image.png
  4. If you see a line mentioning "http://xxx:8090/demo seems reachable" like in the screenshot below it means the re-installation was a success.
    image.png
    You can go to that URL and test the viewer there if you want to.

Note: 

If the process fails, please open a new case with M-Files Support and send us the log file generated inside C:\Hubshare\Logs\Webviewer\ (you should see the path in the PowerShell window)

If the process succeeds and you're still encountering issues, grab your recent logs (Here's how to do it: /article/Hubshare-How-to-get-product-logs-On-Premise) and open a new case with M-Files Support.

Still need help?

On this page