PowerShell – Install Firefox
My solution installs a particular version and language of Firefox. If the language is not specified, it will check for a current install and match that language, defaulting to en-US.
InstallFirefox.ps1 22.0 'es-ES'
I know the code isn’t commented, but I just use the `Write-Debug` lines as comments. To see the debug output, you’ll need to set the DebugPreference variable:
Thought about, allowing “latest” for the version, but that would be a bit more complex since you would have to parse the page to get the version number from the latest version. Not dificult, but beyond the scope of this solution.