Complete the PowerShell script to install or upgrade Mozilla Firefox using the official online MSI.
- Script should:
- Download latest Firefox MSI
- Detect currently installed Firefox version
- If
-Upgradeis specified, only install if remote version is newer - Log all activity to the Windows Application event log
- Focus on clean, modular code with robust error handling
https://download.mozilla.org/?product=firefox-msi-latest-ssl&os=win64&lang=en-US
.\Install-Firefox.ps1
.\Install-Firefox.ps1 -UpgradeSubmit your completed .ps1 file. Include any notes or assumptions.
- Parameter validation
- Implement detailed error logs or retry logic
- Cleanup downloaded files