How to install ABCpdf without Admin Privs?

107 Views Asked by At

I have a project in visual studio written in C# that uses ABCpdf to create a PDF page count. I set the install to be instanced as the project is deployed on a server and the project is run without admin rights as our IT department does not want to have a GMSA with admin privs to run it (it runs as a nightly windows task schedule). My issue is the application fails when it tries to generate the PDF due to access denied when installing the license. If I run the application as administrator on the server it runs fine, so it's definitely something to do with no admin rights when installing the license (or other aspects perhaps to run).

My code for installing looks like this:

try  {  string sResult; 
        if (WebSupergoo.ABCpdf11.XSettings.InstallRedistributionLicense("<license string>"))
                {
                    sResult = "License Installed Successfully: " + WebSupergoo.ABCpdf11.XSettings.LicenseDescription;
                }

                else
                {
                    sResult = "License Installation Failed";
                }
       <does other formatting things for the pdf creation after this in the try catch>

Does anyone know how to get this working without admin rights, or do you know the specific task or registry item it modifies so I can give the GMSA access just to that without full privs? Any help would be awesome. Thanks in advance!

0

There are 0 best solutions below