Uniprint Suite - Rundll32 Printui Error: Operation could not completed
  • 10 Apr 2024
  • 1 Minute to read
  • Dark
    Light
  • PDF

Uniprint Suite - Rundll32 Printui Error: Operation could not completed

  • Dark
    Light
  • PDF

Article summary

When the following is run in a custom module:

RUNDLL32 PRINTUI.DLL,PrintUIEntry /Sr /n "Printer Name" /a c:\file.dat

It returns the error "Operation could not complete"

The following checks have been completed:

  1. Checked the batch file

  2. Checked the Rundll command

  3. Tested the drivers

  4. It seems to only happen with this particular driver

  5. Error does not occur on the machine where you create the .dat file


Complete the workaround (run a registry key from the batch file):

  1. You will need to export the printer setting from the registry into a file (you perform this on an XP machine that has the correct settings).
    Registry location: [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers\”Printers name”\PrinterDriverData]
    If this is the wrong location for the setting, perform the following:

    1. Run Reg Mon.

    2. Apply the setting to driver.

    3. Check Reg Mon to see which key was updated.

  2. Create a batch file to install the registry. Batch file command to load the registry is: Reg import
    Type this command in the DOS prompt. The batch file will run as part of the custom package. The printer will be installed, then the batch file will apply the registry key.
    Registry key command help: http://www.computerhope.com/reg.htm


Was this article helpful?


Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.