VSCode Format
parent
8ee90d8e54
commit
a7bd127c43
|
@ -11,11 +11,9 @@ function Add-ScopeMachine ($SettingsPath) {
|
|||
$ConfigFile.installBehavior.preferences.scope = "Machine"
|
||||
}
|
||||
else {
|
||||
Add-Member -InputObject $ConfigFile -MemberType NoteProperty -Name 'installBehavior' -Value $(
|
||||
New-Object PSObject -Property $(@{preferences = $(
|
||||
New-Object PSObject -Property $(@{scope = "Machine"}))
|
||||
})
|
||||
) -Force
|
||||
$Scope = New-Object PSObject -Property $(@{scope = "Machine" })
|
||||
$Preference = New-Object PSObject -Property $(@{preferences = $Scope })
|
||||
Add-Member -InputObject $ConfigFile -MemberType NoteProperty -Name 'installBehavior' -Value $Preference -Force
|
||||
}
|
||||
$ConfigFile | ConvertTo-Json | Out-File $SettingsPath -Encoding utf8 -Force
|
||||
|
||||
|
|
|
@ -2,7 +2,9 @@
|
|||
|
||||
#get xml notif config
|
||||
[xml]$NotifConf = Get-Content "$env:ProgramData\Winget-AutoUpdate\config\notif.xml" -Encoding UTF8 -ErrorAction SilentlyContinue
|
||||
if (!($NotifConf)) {break}
|
||||
if (!($NotifConf)) {
|
||||
break
|
||||
}
|
||||
|
||||
#Load Assemblies
|
||||
[Windows.UI.Notifications.ToastNotificationManager, Windows.UI.Notifications, ContentType = WindowsRuntime] | Out-Null
|
||||
|
|
Loading…
Reference in New Issue