程序文件 (x86) 问题
我有一个安装程序包,在最后一步用户可以选择是否启动应用程序。安装的应用程序是32位的,在安装过程中我们选择安装文件夹为“c:\Program Files”,而它总是将应用程序安装到“c:\Program Files(x86)”文件夹,然后我们遇到问题,我们不能启动应用程序,我们已经测试过,如果我们选择默认安装文件夹(即c:\program files“),它运行良好。所以我猜问题是Windows将32位应用程序启动为64位,所以它失败了。如何解决它?
I have an installer package, at the last step user can select launch application or not. the installed application is 32bit, during the installation we select the installation folder to "c:\Program Files", while it will always install application to "c:\Program Files(x86)" folder, then we meet problem, we can not launch the application, we have tested that if we choose the default installation folder(which means c:\program files") it works well. so I guess the problem is that windows launch 32bit application as 64bit, so it failed. how to solve it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的安装程序应该知道应用程序的安装路径。你应该使用它,你的 EXE 文件密钥;有关 WiX 示例,请参阅教程的干得好部分。
如果您的安装程序包基于 MSI,则安装程序是 64 位进程,并且它可以识别 Program Files (x86) 和 Program Files。我认为这就是您无法启动程序的问题。 (32 位可执行文件只能看到 Program Files 名称下的 Program Files (x86))。
Your installer should know the path the application was installed to. You should use it, your EXE file key; for a WiX example see Well Done section of the tutorial.
If your installer package is MSI-based, then the installer is a 64 bit process, and it sees both Program Files (x86) and Program Files. I think it is the problem why you can't start your program. (A 32 bit executable will see only Program Files (x86) under the name of Program Files).