File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) {
437434Write-LogFile - InputObject " Previous commandline arguments $previousCommandLineArguments ." - Severity 1
438435
439436if ( ($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;
You can’t perform that action at this time.
0 commit comments