为32位和64位创建Installshield先决条件

时间:2021-10-13 11:30:08

I'm in the process of adding MySQL ODBC conector as a prerequisite in Installshield. Oracle provides two separate MSI for 32bit and 64bit and they dont support cross-architecture(32-64).

我正在添加MySQL ODBC conector作为Installshield的先决条件。 Oracle为32位和64位提供了两个独立的MSI,它们不支持跨架构(32-64)。

I'm able to add both of these modules as two separate prerequisite with two separate custom conditions to check for the exact architecture.(win32 or win64)

我可以将这两个模块作为两个单独的先决条件添加,并使用两个单独的自定义条件来检查确切的体系结构。(win32或win64)

when I used both of these prerequisite in a setup project I'm not able to build it for 32 bit. If I build it for 64 bit the setup will support only for 64 bit PCs.

当我在安装项目中使用这两个先决条件时,我无法为32位构建它。如果我将其构建为64位,则安装程序仅支持64位PC。

Is there any option to add both 32bit and 64 bit prerequisites to a single setup and make it run on both platforms and let it to decide to install the suitable version of the prerequisite.

是否有任何选项可以将32位和64位先决条件添加到单个设置中,并使其在两个平台上运行,并让它决定安装先决条件的合适版本。

prerequisite conditions are as below

前提条件如下

User is running a particular OS -> Custom(Platform Id=Any, Major Version=10,Minor Version1, Service Packs=-,Product Type=Any, Platform Architecture=Win32, CSDVersion="", Build No=)

User is running a particular OS -> Custom(Platform Id=Any, Major Version=10,Minor Version1, Service Packs=-,Product Type=Any, Platform Architecture=Win64, CSDVersion="", Build No=)

PS- I'm using Installshield 2015 premier edition (SP1) with VS2013

PS-我在VS2013上使用Installshield 2015高级版(SP1)

The error msg when I tried to build it or 32bit is:

我尝试构建它或32位时的错误信息是:

error -5008: intel64 or amd64 must be specified in the template of the summary

1 个解决方案

#1


1  

In the General Information view, Summary Information Stream section, set the Template Summary property to x64;1033. Note: If you live in a country where English is not the language, you will use a different language code from 1033.

在“常规信息”视图的“摘要信息流”部分中,将“模板摘要”属性设置为x64; 1033。注意:如果您居住的国家/地区不是英语,则您将使用1033中的其他语言代码。

This will make sure your installation if 64bit. In a 64bit installer, you can add 32bit components.

如果是64位,这将确保您的安装。在64位安装程序中,您可以添加32位组件。

#1


1  

In the General Information view, Summary Information Stream section, set the Template Summary property to x64;1033. Note: If you live in a country where English is not the language, you will use a different language code from 1033.

在“常规信息”视图的“摘要信息流”部分中,将“模板摘要”属性设置为x64; 1033。注意:如果您居住的国家/地区不是英语,则您将使用1033中的其他语言代码。

This will make sure your installation if 64bit. In a 64bit installer, you can add 32bit components.

如果是64位,这将确保您的安装。在64位安装程序中,您可以添加32位组件。