This package seems to be trying to determine of it's being run on a 64-bit machine, but setting the install directory to the 32-bit Program Files if it is.
If this is being run on a 64-bit machine, this line will return "Program Files (x86)" which is then set as $programFiles. This should not be correct. If the system is 64-bit, it should be installed to "Program Files".
This package seems to be trying to determine of it's being run on a 64-bit machine, but setting the install directory to the 32-bit Program Files if it is.
$programFiles = (${env:ProgramFiles(x86)}, ${env:ProgramFiles} -ne $null)[0]
If this is being run on a 64-bit machine, this line will return "Program Files (x86)" which is then set as $programFiles. This should not be correct. If the system is 64-bit, it should be installed to "Program Files".