Installing Printers with .INF in Windows x64 and NSIS

1k views Asked by At

I create an Installer, with two printers netowrk with CUPS.

In Windows x86 (32 bits), the printers are installed without problems, with driver, and all ok.

But the problem is when i run the .exe in x64, i can detect the Arquitecture, i put the x64.nsh in the top, but not function the command.

The message is "Driver Invalid"

I check the Driver and is x64 Driver...

I use ExecWait: rundll32 printui.dll PrintUIEntry ... with corresponent name, .inf...

Anyone can help me with the problem to Install x64 Printers with Nsis installer?

Thanks! ;)

1

There are 1 answers

7
Anders On

Have you tried ExecWait '"$WinDir\SysNative\RunDll32.exe" printui.dll PrintUIEntry ...' on x64? (Will not work on 32-bit systems so you need to check with x64.nsh to see which RunDll32 path you want, on 32-bit you just need "$SysDir\RunDll32.exe")