Using 32-Bit vs. 64-Bit .NET Core Custom Actions

InstallShield 2024

Project: This information applies to the following project types:

Basic MSI
InstallScript MSI

When you build a release that includes a .NET Core 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 Core—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 .NET Core Custom Action

ISClrWrap Table Column

Description

Action_

Enter the name of the .NET Core 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 Core, enter the following: x86
To use a 64-bit version of the ..NET Core, enter the following: x64

See Also