简体   繁体   English

ZeroMQ Windows Installer NSIS错误

[英]ZeroMQ Windows Installer NSIS Error

I want to install ZeroMQ for Ratchet/PHP and I downloaded the installer from http://zeromq.org/distro:microsoft-windows . 我想为Ratchet / PHP安装ZeroMQ,我从http://zeromq.org/distro:microsoft-windows下载了安装程序。 But I keep getting "NSIS error" whenever I try to install it. 但是,无论何时尝试安装它,我都会不断收到“ NSIS错误”。

测试

It immediately shows after I run the installer. 运行安装程序后,它将立即显示。 Different versions, x64 or x86 ones, none of them works. x64或x86不同的版本,它们都不起作用。 This problem only shows up with ZeroMQ installers. 仅使用ZeroMQ安装程序会出现此问题。

Does anyone have any idea why does this happen? 有谁知道为什么会这样?

PS I use Windows 8.1. PS我使用Windows 8.1。 (Up to date) (最新)

This question does not belong here on Stackoverflow but since you posted it here anyway I will give you the technical answer: NSIS needs to open a file handle to itself so it can read the compressed data, it does this by calling GetModuleFileName to get the path and CreateFile to open the file. 这个问题并不在Stackoverflow上,但无论如何您都会在这里给我一个技术答案:NSIS需要为其自身打开一个文件句柄,以便它可以读取压缩数据,它可以通过调用GetModuleFileName来获取路径。和CreateFile打开文件。 If this step fails it displays the _LANG_CANTOPENSELF message ("Error launching installer", the text in your screenshot). 如果此步骤失败,它将显示_LANG_CANTOPENSELF消息(“错误启动安装程序”,即屏幕快照中的文本)。

A) GetModuleFileName can return a "incorrect" path when filesystem redirection is involved, this is most commonly seen when psexec is used to execute the program from the Windows directory on a remote 64-bit computer and this is probably not the case here? A)涉及文件系统重定向时, GetModuleFileName可能返回“错误”路径,这在使用psexec从远程64位计算机上的Windows目录执行程序时最常见,这可能不是吗?

B) The call to CreateFile can fail, this is most often caused by Anti-Virus software holding a lock/denying access to the file. B)CreateFile的调用可能失败,这通常是由防病毒软件持有对该文件的锁定/拒绝访问引起的。 Try to disable/uninstall any 3rd-party Anti-Virus software... 尝试禁用/卸载任何第三方反病毒软件...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM