Using 32-Bit vs. 64-Bit Managed-Code Custom Actions

InstallShield 2015

Project: This information applies to the following project types:

Basic MSI
DIM
InstallScript MSI
Merge Module

When you build a release that includes a managed-code custom action in your project, InstallShield attempts to determine the target architecture (32 bit or 64 bit) of the main .NET assembly that is associated with the custom action. InstallShield does this by examining the portable executable (PE) file for the assembly and determining if the PE file is 32 bit or 64 bit. If the PE file uses Microsoft intermediate language (MSIL) code, InstallShield treats it as 32 bit. InstallShield configures the release so that the appropriate version of the .NET Framework—32 bit or 64 bit—is used to run your managed code at run time.

If you want to override the built-in default behavior, use the Direct Editor view to add a new record with the following fields to the ISClrWrap table.

Overriding the Default Architecture for a Managed-Code Custom Action

ISClrWrap Table Column

Description

Action_

Enter the name of the managed-code custom action that you want to modify.

Name

Enter the following: TargetPlatform

Value

Specify the appropriate architecture.

To use a 32-bit version of the .NET Framework, enter the following: x86
To use a 64-bit version of the .NET Framework, enter the following: x64

See Also