FlorianSLZ / IntuneWin32Deployer

Create and deploy winget and chocolatey (win32) apps to Intune with one click!
GNU General Public License v3.0
49 stars 10 forks source link

Fix check.ps1 to detect winget also on ARM Windows #18

Closed the-project-group closed 1 year ago

the-project-group commented 1 year ago

x64: C:\Program Files\WindowsApps\Microsoft.DesktopAppInstaller_*_x64__8wekyb3d8bbwe\winget.exe

arm64: C:\Program Files\WindowsApps\Microsoft.DesktopAppInstaller_1.20.2201.0_arm64__8wekyb3d8bbwe\winget.exe

the-project-group commented 1 year ago

Oh no - this affects all generated detect (and probably also the install?) scripts for all packages we have deployed :)

the-project-group commented 1 year ago

Just checked ressources\template\winget files and yes, they need an update, right? Best regards, Flo.

the-project-group commented 1 year ago

Fixed it in pull request #19

Then I just noticed that also the path to powershell is different on arm64.

x64: C:\WINDOWS**sysnative**\WindowsPowerShell\v1.0\powershell.exe

sysnative doesn't exists on arm64.

https://oofhours.com/2020/02/04/powershell-on-windows-10-arm64/

I also noticed that the powerShell scripts are all UTF-8 BOM but MS recommends to set encoding to UTF-8. https://learn.microsoft.com/en-us/mem/intune/fundamentals/remediations#script-requirements