austin2359
Pilgrim

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
Pilgrim

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

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
Pilgrim

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

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