Skip to content

Conversation

@subhobhai943
Copy link

Description

This PR addresses issue #451 by fixing the MSI installer to properly use 64-bit PowerShell instead of 32-bit PowerShell for running the permission.ps1 script.

Changes Made

  1. Updated RegistrySearch to use 64-bit registry: Added Win64="yes" attribute to the RegistrySearch element to ensure it looks up PowerShell path in the 64-bit registry hive instead of the 32-bit one.

  2. Changed CustomAction to use 64-bit PowerShell executor: Changed DllEntry from WixQuietExec to WixQuietExec64 to use the 64-bit PowerShell executor.

Technical Details

The changes are minimal but important:

  • Line 32: Added Win64="yes" to the RegistrySearch element
  • Line 179: Changed DllEntry="WixQuietExec" to DllEntry="WixQuietExec64"

These changes ensure consistency with the 64-bit environment that the CloudWatch Agent already targets, and avoid potential issues where 32-bit PowerShell may not be available or desirable in certain 64-bit environments.

Impact

  • Backward Compatibility: These changes maintain backward compatibility while improving consistency
  • Performance: Using 64-bit PowerShell may provide better performance in 64-bit environments
  • Reliability: Eliminates potential issues in environments where 32-bit PowerShell is not available

Testing

The changes follow the exact recommendations provided in the original issue and align with:

Resolves #451


Thank you to @ikavalio for identifying this issue and providing the exact solution!

This change addresses issue aws#451 by:
1. Updating the RegistrySearch to use Win64='yes' for proper 64-bit registry lookup
2. Changing CustomAction from WixQuietExec to WixQuietExec64 to use 64-bit PowerShell

These changes ensure consistency with the 64-bit environment and avoid potential
issues where 32-bit PowerShell may not be available or desirable.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MSI installer uses 32-bit powershell for running the permission.ps1 script

1 participant