Skip to content

Commit

Permalink
Merge pull request #1932 from TheCakeIsNaOH/firefox-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AdmiringWorm authored Jun 30, 2022
2 parents d8fba5c + 90c1841 commit fe304ba
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions automatic/firefox/tools/chocolateyInstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,16 @@ else {

if (-Not(Test-Path ($installPath + "\distribution\policies.json") -ErrorAction SilentlyContinue) -and ($pp.NoAutoUpdate) ) {
if (-Not(Test-Path ($installPath + "\distribution") -ErrorAction SilentlyContinue)) {
new-item ($installPath + "\distribution") -itemtype directory
New-Item ($installPath + "\distribution") -ItemType directory
}

$policies = @{
policies = @{
"DisableAppUpdate" = $true
}
}
$policies | ConvertTo-Json | Out-File -FilePath ($installPath + "\distribution\policies.json") -Encoding ascii
$policies = @"
{
"policies": {
"DisableAppUpdate": true
}
}
"@
$policies | Out-File -FilePath ($installPath + "\distribution\policies.json") -Encoding ascii

}

0 comments on commit fe304ba

Please sign in to comment.