Windows 安装程序自定义操作错误 1631
我正在为产品创建 msi 安装程序,安装后需要在浏览器中启动 web url。我使用 WIX 3.5 创建安装程序(但这可能并不重要)。 我在 http://www.tramontana.co.hu/wix/ 中找到的示例Lesson5.php#5.2 不起作用 - 安装程序日志说
“操作于 15:27:30 结束:LaunchBrowser。返回值 1631。”。
我看到了很多关于这个问题在互联网上,但没有人提供解决方案(有人在多语言中发现问题,有人联系微软来解决这个问题)。
我只能猜测问题出在 Windows 7 安全性的某个地方(我遇到了问题)。也许Windows安装程序被禁止启动exe文件(我尝试了许多其他带有其他exe文件的示例,但都得到了相同的结果)。
有人有通用的解决方案吗?
I'm creating msi-installer for a product and I need to launch web url in browser after installation. I use WIX 3.5 to create installer (but this probably doesn't important).
The example I found in http://www.tramontana.co.hu/wix/lesson5.php#5.2 not work - installer log say's
"Action ended 15:27:30: LaunchBrowser. Return value 1631.".
I saw many posts about this problem in the internet but nobody provides solution (somebody found problem in multilanguage, somebody contacted Microsoft to solve that).
I can only guess that the problem is somewhere in security of Windows 7 (I encountered problem with it). Maybe windows installer is forbidden to launch exe-files (I tried many other examples with other exe-s but all had the same result).
Has anybody a general solution?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为问题确实在于 UAC 安全性。
要给予自定义 Actinon 管理权限,我们应该使其延迟,如下所示:
我强烈推荐 这篇关于自定义操作的博客文章 - 它完全改变了我对它们的看法。
I suppose the problem was really with UAC security.
To give a custom actinon administrative permissions we should make it deffered, like this:
And I would highly recommend this blog post about custom actions - it completely changed my vision of them.
这是我对安装和卸载所做的操作。
起初我也得到了“返回值 1631”,并花了很多时间在 UAC 安全、提升权限、Impersonate="yes" 和 Execute="deferred" 上,但这些都不起作用。
但最终当我正确设置 Directory="TARGETDIR" 而不是 BinaryKey="WixCA" 时,它就被非常简单地修复了
Here is what I did for both install and uninstall.
At first I also got "Return value 1631" and spent a lot of time with UAC security, elevating privileges, Impersonate="yes" and Execute="deferred" which didn't work.
But in the end it was fixed very simply when I correctly set Directory="TARGETDIR" rather than BinaryKey="WixCA"