windows - 以编程方式添加打印机 Windows 8

标签 windows printing cmd inno-setup rundll32

我正在使用虚拟打印机,但在安装打印机时卡住了。安装由 InnoSetup 完成

[run] Filename : rundll32.exe; Parameters: "printui.dll, PrintUIEntry /if /f ""{app}\ghostscript\ghostpdf.inf"" /r ""TitusVirtualPrinter:"" /m ""Ghostscript PDF"" /b ""Virtual Printer""  /u /Y "; StatusMsg: Installing PS Printer for Ghostscript; Description: Ghostscript PS Printer; Flags: waituntilterminated shellexec; 

该行运行完美,程序安装在 Windows 7 系统(Pro 32 和 64 位)上,但不能安装在 Windows 8 上。我没有收到任何错误消息。

最佳答案

可以这样吗:

http://www.jenovarain.com/2012/12/ghostscript-printer-on-windows-8-64-bit/

也许他们在那篇文章中与您的问题相关的关键信息是

you will want to select option #7 “Disable Driver Signature Enforcement”

关于windows - 以编程方式添加打印机 Windows 8,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18276437/

相关文章:

windows - 如何在 Windows 7 上停止 rabbitmq 服务器

windows - 信息正在等待与 npm 的连接...为 MoodleMobile_2 设置开发环境时出错

html - 如何打印适合定义纸张尺寸的内容?

windows - 获取屏幕分辨率作为cmd中的变量

batch-file - 由于某种未知原因,变量未插入另一个变量 : Converting text to binary

windows - 在 Windows 7 64 位上运行 16 位命令行应用程序

windows - WebSphere MQ 错误 MQRC_NOT_AUTHORIZED 2035 即使使用 CHLAUTH(DISABLED)

c++ boost asio 异步函数不能在 dll 中工作

c++ - Windows 上的 QPrintDialog::exec() 错误

javascript - 是否可以关闭打印对话框?