Enable Searching for Pwsh in the "Program Files (Arm)" directory on Windows Arm64
PR Summary
- Begin searching for Pwsh in the "Program Files (Arm)" directory on windows arm64.
- Note this will only look for the "Program Files (Arm)" directory if the default "Program Files" directory does not contain a PowerShell install.
- Add tests case documenting expected load order.
- Update test cases to refer to v7 instead of v6.
- I realize that this doesn't actually matter as its just looking for the first integer it finds, but since PS6 has been out of support for several years I thought it was time to update.
PR Checklist
Note: Tick the boxes below that apply to this pull request by putting an x between the square brackets.
Please mark anything not applicable to this PR NA.
- [x] PR has a meaningful title
- [x] Summarized changes
- [x] PR has tests
- [x] This PR is ready to merge and is not work in progress
- If the PR is work in progress, please add the prefix
WIP:to the beginning of the title and remove the prefix when the PR is ready
- If the PR is work in progress, please add the prefix
@microsoft-github-policy-service agree
Thanks! Do we have a way to meaningfully test this? Do we need to spin up/add ARM to the testing matrix?
Honestly I wasn't sure what the options were there.
I would certainly recommend spinning up an arm CI pipeline if its possible as the related PSES changed I linked doesn't seem to impact my x64 builds but I'm really not sure why tbh.
I did add the unit tests to describe the expected order as interim support.
Bah, I thought I re-ran the formatter before committing. Sorry about that, I'll get that fixed later tonight
Hi, we looked at this in triage, but we are trying to find an ARM64 device to test this on to confirm it.
@andyleejordan you can get an ARM64 Windows VM on Azure. If we wanted automated tests we could set it up as a github action onprem runner. https://learn.microsoft.com/en-us/windows/arm/create-arm-vm
EDIT: As of April 2025 Windows ARM runners are available