Skip to content

Commit ec20948

Browse files
committed
Fixed missing paramter
1 parent 735e5e8 commit ec20948

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

Refresh-WingetConfiguration.ps1

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ function Invoke-WAURefresh {
171171
param(
172172
$configuration
173173
)
174-
$WAUConfigLocation = "HKLM:\Software\Romanitho\Winget-Autoupdate"
174+
$WAUConfigLocation = "HKLM:\Software\Romanitho\Winget-AutoUpdate"
175175

176176

177177
Set-ItemProperty -Path $WAUConfigLocation -Name "WAU_ListPath" -Value $DataDir;
@@ -237,9 +237,6 @@ function Invoke-WAURefresh {
237237
Set-ItemProperty -Path $WAUConfigLocation -Name "WAU_StartMenuShortcut" -Value 0;
238238
}
239239

240-
# if ( $configuration.DoNotUpdate -ne 0) {
241-
# $commandLineArguments += " -DoNotUpdate";
242-
# }
243240

244241
if ( $configuration.InstallUserContext ) {
245242
Set-ItemProperty -Path $WAUConfigLocation -Name "WAU_UserContext" -Value 1;
@@ -437,7 +434,7 @@ if ( Test-Path "$DataDir\LastCommand.txt" -PathType Leaf ) {
437434
Write-LogFile -InputObject "Previous commandline arguments $previousCommandLineArguments." -Severity 1
438435

439436
if ( ($configuration | ConvertTo-Json -Depth 1 -Compress) -ne $previousCommandLineArguments ) {
440-
Invoke-WAURefresh;
437+
Invoke-WAURefresh -configuration $configuration;
441438

442439
if ( $configuration.ReinstallOnRefresh ) {
443440
& "$scriptlocation\Winget-Autoupdate\config\WAU-MSI_Actions.ps1" -InstallPath "$($scriptlocation)\Winget-Autoupdate" -Uninstall;

0 commit comments

Comments
 (0)