InstallShield工程打包安裝32/64-bit組件

When at least one component has been marked as a 64-bit component, use one of the following resolutions.

32-bit Setups

If you do not wish to support 64-bit systems and have no 64-bit files in your project, follow these steps to ensure all components are not marked as 64-bit:

  1. Select the "Components" view.
     
  2. Click a component in the center panel.
     
  3. In the property sheet at right, make sure the "64-Bit Component" property is set to "No".
     
  4. Repeat steps 2 through 3 for each component listed in the "Components" view. This will ensure that the project does not contain any 64-bit components.
     
  5. Rebuild the project.
64-bit Setups

An application that only targets 64-bit operating systems requires the following:

  1. Make sure the components that contain 64-bit files have the "64-Bit Component" property set to "Yes":

    1.1. Select the "Components" view.

    1.2. Click a component in the center panel

    1.3. .In the property sheet at right, make sure the "64-Bit Component" property is set to "Yes"

    1.4. .Repeat steps 1.2 through 1.3 for each component that contains 64-bit files
     
     
     
  2. Make sure the template of the Summary Stream contains a value of Intel64 or x64. To verify this, follow these steps:

    2.1. Select the "General Information" view.

    2.2. Go to the "Summary Information Stream" section.

    2.3. In the "Template Summary" property, set the platform to Intel64 or x64.

    Example: If the value was originally set to:

    Intel;1033

    the value should be changed to:

    x64;1033

Note: In general, use Intel64 for 64-bit Intel systems and x64 for all other 64-bit systems. For additional information on setting the proper value for this property, see the InstallShield Help Library topic Using the Template Summary Property.

Hybrid Setups
 
If you wish to create a hybrid setup, one that supports both 32-bit and 64-bit architecture machines, follow these guidelines to ensure a working setup:
  1. Do not mix 32-bit and 64-bit files within components. Separate them into unique components. For example, add file 32bit.exe to one component called 32-bit, and add file 64bit.exe to a different component called 64-bit.
     
  2. All features should have the appropriate 32-bit or 64-bit components associated with them. For example, feature 64-bit should have the component 64-bit associated with it, while feature 32-bit should have the component 32-bit associated with it. In no instance should feature 32-bit have any 64-bit components associated with it.
     
  3. As you will not be able to mix 32-bit files with 64-bit files in the same build, use release flags to build the two into separate releases. Follow these steps to accomplish this:

    3.1. Select the Features view.

    3.2. Click the first feature in the list in the center panel.

    3.3. In the property sheet at right, note the Release Flags Setting:

    3.3.1. If feature has 32-bit components associated with it, provide a unique value, such as 32-bit.

    3.3.2. If feature has 64-bit components associated with it, provide a unique value, such as 64-bit.

    3.4. Repeat step 3.3 for each feature in the project, until all features containing 32-bit components have a release flag of 32-bit and all features containing 64-bit components have a release flag of 64bit.

    3.5. In the Release Wizard or Releases View, specify 32-bit or 64-bit in the Release Flags field. This ensures that only features containing that particular release flag are included in the build. This will resolve the 5008 build error, as 32-bit and 64-bit files are not be mixed.

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章