The Microsoft Store installer script now will check whether the cached files are up to date before using them, and if not it will download the latest and warn the user to update the cache.
Also added ForceCachedFilesOnly and NoCheckLatestVersion to control this behavior. ForceCachedFilesOnly still checks and warns the user about a newer version but still uses the cache, while NoCheckLatestVersion uses the cache without even checking.
- Add parameters to support using a local cache (-ExistingInstallerFilesPath) and control behavior (-ForceCachedFilesOnly, -NoCheckLatestVersion).
- Change download target to the user's Downloads folder under "VCRedist Install"
- Detect remote installer version and choose between cached installers or downloading updated files.
The `Expand-Archive` cmdlet fails in localized Windows Sandbox environments (e.g., de-DE) because the `Microsoft.PowerShell.Archive` module cannot find its localization resources (`ArchiveResources.psd1`) in the minimal OS image.
Install VC Redist.ps1: use $env instead of System.Runtime
this script now works on my VMware Fusion install on M4 (should work on arm windows sandbox now...?)
- Adds line to automatically silently accept msstore terms after winget install to avoid the annoying prompt.
- Add 'last updated' line to winget and microsoft store installer scripts