cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
austin2359
Level 6

custom action condition to reveal if operating system (not cpu necessarily) is 64 bit

Does anyone know of a conditional to put into an if statement which executes if the OS is 64 bit, but does not execute otherwise, in installscript?

I haven't found anything yet.
Labels (1)
0 Kudos

(2) Replies
Reureu
Level 10

Your question is misleading. There is no Custom Action in a pure InstallScript project.

Anyway, the answers are:

  • In a pure InstallScript project: You can use SYSINFO.bIsWow64. If the installation is running on a 64-bit platform, this value is non-zero.

  • In an MSI project, either Basic MSI or InstallScript MSI: you can use the property VersionNT64. If this property is set, then you are running a 64 bit OS.
0 Kudos
austin2359
Level 6

Custom actions can use installscript. That is what I meant. In MSI.
0 Kudos