Closed Blu3ish closed 6 years ago
Add a '}' at line ~259 and it should fix this as far as I can tell. I had the same issue and this seemingly resolved it.
Beginning, or end of line?
On Mon, Oct 1, 2018, 2:44 PM dohlin notifications@github.com wrote:
Add a '}' at line ~259 and it should fix this as far as I can tell. I had the same issue and this seemingly resolved it.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Sycnex/Windows10Debloater/issues/49#issuecomment-426018577, or mute the thread https://github.com/notifications/unsubscribe-auth/ApuyGA-owyHT3uuTBHwgK4faugRIle0yks5ugmKfgaJpZM4XCFd- .
Shouldn't matter, it just needs to close the "FixWhitelistedApps" function as far as I can tell. Mine looks like this:
Function FixWhitelistedApps {
Param([switch]$Debloat, [switch]$SysPrep)
Write-Verbose -Message ('Starting Fix Whitelisted Apps')
#Credit to abulgatz for the 4 lines of code
Get-AppxPackage -allusers Microsoft.Paint3D | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
Get-AppxPackage -allusers Microsoft.MSPaint | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
Get-AppxPackage -allusers Microsoft.WindowsCalculator | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
Get-AppxPackage -allusers Microsoft.WindowsStore | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
Get-AppxPackage -allusers Microsoft.Windows.Photos | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
}
I added a } and the problem disapeared indeed.
This is fixed in the latest commit.
While testing the latest (sysprep) debloater :