dgalbraith / chocolatey-packages

Automatic and manual Chocolatey packages
MIT License
4 stars 20 forks source link

Remote Desktop installer broken #519

Open ArcasCZ opened 1 year ago

ArcasCZ commented 1 year ago

Microsoft recently did a breaking change to Remote Desktop app - currently the name is localised. Therefor Get-UninstallRegistryKey with SoftwareName parameter $packageArgs.SoftwareName (which is Remote Desktop) will not work on other than English OS.

For me (Czech localisation) the app is called Vzdálená plocha, so the Get-UninstallRegistryKey returns nothing.

There is more reliable and stable way to get the app install folder and that is to se MSI GUID, which does not change between versions and is unique (however it's different for x64 and x86 installer).

ArcasCZ commented 11 months ago

The GUID changes depending on the installed language. I was also not able to determin the GUID from the MSI file.

For me the fix was to use --install-args="'ProductLanguage=1033'", so the package install well, but that also removes the possibility of localised installation.