[wpkg-users] Checking Edge...

Marco Gaiarin gaio at sv.lnf.it
Thu Jun 10 11:50:24 CEST 2021


I've setup a recipe that 'cleanup' W10 of many 'bloatware' apps; the
hard work seems not cleaning up,  but checkig that effectively cleanup
was done.

For example, a check like:

	<check type="execute" condition="exitcodeequalto" path='%COMSPEC% /c powershell -Command "Get-AppxPackage -AllUsers Microsoft.MicrosoftEdge | Select Status" | find "    Ok"' value="1"/>

seems does not work for edge, because disinstallation via:

	<install cmd='powershell -Command "Get-AppxPackage -AllUsers Microsoft.MicrosoftEdge* | Remove-AppxPackage -AllUsers | Out-Null"' >
                <exit code='any' />
        </install>

does not work (return error 0x80070032).


I can effectively uninstall Edge via a script like:

 if exist "%ProgramFiles32%\Microsoft\Edge\Application\" (
        for /f "delims=" %%a in ('dir /b "%ProgramFiles32%\Microsoft\Edge\Application\"') do (
                cd /d "%ProgramFiles32%\Microsoft\Edge\Application\%%a\Installer\"
                if exist "setup.exe" (
                        start /w setup.exe --uninstall --system-level --force-uninstall
                )
        )
 )

but effectively a list of user installed apps via:

	powershell -Command "Get-AppxPackage -AllUsers Microsoft.MicrosoftEdge | Select Status"

list app as installed.


Someone have found a way? Thanks.

-- 
dott. Marco Gaiarin				        GNUPG Key ID: 240A3D66
  Associazione ``La Nostra Famiglia''          http://www.lanostrafamiglia.it/
  Polo FVG   -   Via della Bontà, 7 - 33078   -   San Vito al Tagliamento (PN)
  marco.gaiarin(at)lanostrafamiglia.it   t +39-0434-842711   f +39-0434-842797

		Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA!
      http://www.lanostrafamiglia.it/index.php/it/sostienici/5x1000
	(cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)


More information about the wpkg-users mailing list