Firefox
2
USUS XML Package File
Firefox
$checkurl = "https://www.mozilla.org/en-US/firefox/notes/"
$versions = $WebClient.DownloadString($checkurl)
IF($versions -eq $Null)
{
return
}
$versions -match '(data-latest-firefox=["0-9.]{6,12})' | Out-Null
$version = $Matches[0].TrimStart('data-latest-firefox="').TrimEnd('"')
$url = "https://download.mozilla.org/?product=firefox-latest&os=win&lang=en-US"
return $url, $version
-ms
$checkurl = "https://www.mozilla.org/en-US/firefox/notes/"
$versions = $WebClient.DownloadString($checkurl)
IF($versions -eq $Null)
{
return
}
$versions -match '(data-latest-firefox=["0-9.]{6,12})' | Out-Null
$version = $Matches[0].TrimStart('data-latest-firefox="').TrimEnd('"')
$url = "https://download.mozilla.org/?product=firefox-latest&os=win64&lang=en-US"
return $url, $version
-ms