InstallShield添加了x86和x64的差异前提条件 [英] InstallShield adding diffrerent prerequisite for x86 and x64

查看:199
本文介绍了InstallShield添加了x86和x64的差异前提条件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想根据平台使用InstallShield添加不同版本的Crystal Reports作为安装先决条件.对于x86,应安装32位版本,对于x64-应安装64位版本. 我应该添加哪种条件?我发现我可以选择特定的操作系统作为条件,但是没有选择仅选择32位或64位的选项. 预先感谢.

I want to add different version of Crystal Reports as a setup prerequisite using InstallShield depending on platform. For x86 32bit version should be installed, for x64 - 64bit. What kind of condition should I add to do so? I've found that I can select particular OS as condition but there is no option to just select 32 or 64 bit. Thanks in advance.

UPD1:在InstallShield中,我可以选择以下条件类型:

UPD1: In InstallShield I can choose the following types of condition:

  1. 检查注册表项是否存在.我想检查一下WoW6332Node 但是后来我发现可以在32位操作系统中列出该节点: http://support.microsoft.com/kb/2582176 另外我发现我可以 检查一些注册表项 https://superuser.com/questions/290906/check-if-32-or-64-bit-windows-os-via-via-registry/290929 但我不确定它们是否存在于所有Windows版本中.

  1. Check if registry entry exists. I wanted to check for WoW6332Node but then I found that this node can be listed in 32bit OS: http://support.microsoft.com/kb/2582176 Also I found that I can check some registry entries https://superuser.com/questions/290906/check-if-32-or-64-bit-windows-os-via-registry/290929 but I'm not sure that they present in all windows versions.

检查某些文件是否存在.我可以在程序文件"中检查某些文件 (x86)文件夹以检测64位操作系统,但这不是我的好主意 意见.

Check if certain file exists. I can check some file in Program Files (x86) folder to detect 64bit OS, but it's not a good idea in my opinion.

推荐答案

我认为您可以为此使用VersionNT64属性. 更多详情可在这找到: http://msdn.microsoft.com/zh- us/library/aa372497(v = vs.85).aspx

I think you can use the VersionNT64 property for this. More details can be found here: http://msdn.microsoft.com/en-us/library/aa372497(v=vs.85).aspx

从文档中可以看出,此属性仅在64位计算机上设置,否则为空.

As it can be seen in the documentation, this property is only set on a 64-bit computer otherwise it is empty.

2014年8月13日 选择前提条件以将其添加到安装软件包后,便已分配了功能. 因此,您可以进入功能"视图并选择创建的功能.我看到它有一个Condition字段,很可能在那里您可以使用VersionNT64属性.

13.VIII.2014 After the prerequisite has been selected to be added to your installation package, a feature has been assigned. So, you can go in the "Features" view and select the created feature. I can see it has a Condition field, most likely there you can use the VersionNT64 property.

这篇关于InstallShield添加了x86和x64的差异前提条件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆