rundll32.exe printui.dll,PrintUIEntry  -  Driver Location Problems

Posted on 2011-10-23
Last Modified: 2012-05-12
Experts - I'm attempting to script printer installation using rundll32.exe printui.dll,PrintUIEntry.  I've pasted the exact code in the block below.

When using the script, it starts copying, until (in this particular printer) it gets to "kyofont2.dll" and it can't locate it.

I've included a screenshot of that UNC path, as well as error.  For some reason, the installation is attempting to add "\i386" to the folder path...  But even me trying it by adding a folder called "i386" and then putting the file within that directory meets the same results.  =  The printer installation can't continue until that file is located.

Would anybody happen to have any insite on what's happening here?  I've already tried changing the registry key for "SearchPath" on drivers, but it aparently doesn't make any difference.
rundll32.exe printui.dll,PrintUIEntry /b "DPDO-103C-501CA" /n "DPDO-103C-501CA" /m "Kyocera Mita FS-C5016N" /if /f "\\DPDO-DS01\eXpress\PAC_Printer\Drivers\FS-C5016n\XP\x86\oemsetup.inf" /r "DPDO-103C-501CA"

Open in new window

Question by:usslindstrom
    LVL 5

    Accepted Solution

    Do not use UNC path it will not work.

    Some drivers, require during driver installation to do a native copy of other files that are hardcode referenced in the driver.

    Maybe a mapped drive could work as a workarround, but I would copy it locally so that the copy operation wouldn't fail. (try it first manually, it shouldt fail, i've tested this here just a moment ago)

    Hope this helps you further ;-)
    LVL 5

    Author Closing Comment


    Thank you very much for the information.  Much appreciated!

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Join & Write a Comment

    It is only natural that we all want our PCs to be in good working order, improved system performance, so that is exactly how programs are advertised to entice. They say things like:            •      PC crashes? Get registry cleaner to repair it!    …
    New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
    In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
    This Micro Tutorial will teach you how to change your appearance and customize your Windows 7 interface to your unique preference. This will be demonstrated using Windows 7 operating system.

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now