We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e70d961 commit 40c608bCopy full SHA for 40c608b
1 file changed
Refresh-WingetConfiguration.ps1
@@ -289,6 +289,13 @@ if ( Test-Path -Path $PolicyRegistryLocation ) {
289
$commandLineArguments = Get-CommandLine -configuration $configuration;
290
$commandLineArguments += " -ListPath `"$DataDir\`"" # Append path to the list file.
291
292
+ if ( Test-Path "$DataDir\excluded_apps.txt" ) {
293
+ Remove-Item -Path "$DataDir\excluded_apps.txt" -Force;
294
+ }
295
+ if ( Test-Path "$DataDir\included_apps.txt" ) {
296
+ Remove-Item -Path "$DataDir\included_apps.txt";
297
298
+
299
Write-LogFile -InputObject "Configuration received from $PolicyRegistryLocation" -Severity 1;
300
if ( Test-Path -Path $PolicyListLocation ) {
301
$list = Get-ItemProperty -Path $PolicyListLocation;
0 commit comments