<div dir="ltr"><div dir="ltr"><div>I also noticed that your HP Support package is a AppxBundle, so you might need to add "-PackageTypeFilter Bundle" for the removal.  <br></div><div><br></div><div>If it helps, here's one of my AppX recipes -- though it is for removing Dell-installed packages.  I use %ProgramFiles%\WindowsApps and HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\ (all sorts of stuff here) for the check conditions.<br></div><div><div><br></div><div> <package<br>            id="dell_digitaldelivery"<br>            name="Dell DigitalDelivery"<br>            revision="%VERSION%"<br>                    reboot="postponed"<br>            priority="0"><br><br>          <!-- <variable name="WMIC_NAME" value="Dell Digital Delivery Service" /> --><br>          <variable name="WMIC_NAME" value="Dell Digital Delivery Services" /><br>                <variable name="APPX_BUNDLE_NAME" value="*DellDigitalDelivery*" /><br>          <variable name="VERSION" value="2" /><br>        <variable name="PKG_EXE_VERSION" value="" /><br>        <variable name="PKG_DESTINATION" value="%ProgramFiles%\" /><br>        <variable name="PKG_DESTINATION" value="%ProgramFiles(x86)%\" architecture="x64"/><br><br>          <check type="logical" condition="or" ><br>                      <check type="uninstall" condition="exists" path="%WMIC_NAME%" /><br>                  <!-- Vostro 15 3500 --><br>                 <check type="logical" condition="and" ><br>                             <check type="file" condition="exists" path="%PROGRAMFILES%\WindowsApps\DellInc.DellDigitalDelivery_4.0.70.0_x64__htrsf667h5kn2" /><br>                                <check type="logical" condition="not" ><br>                                     <check type="registry" condition="exists" path="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\Deprovisioned\DellInc.DellDigitalDelivery_htrsf667h5kn2" /><br>                            </check><br>                        </check><br>                        <br>              </check><br>                <br>              <install include="remove" /><br>          <br>              <upgrade include="remove" /><br>                  <br>        <remove cmd='wmic /node:localhost product where name="%WMIC_NAME%" call uninstall /nointeractive' /><br>            <remove cmd='powershell "Get-AppxPackage -AllUsers -PackageTypeFilter Bundle -Name %APPX_BUNDLE_NAME% | Remove-AppxPackage -AllUsers" ' /><br>    </package></div><div><br></div><div>-----------</div><div><br></div><div>Having said that, apparently I use DISM for installing Appx, rather than powershell.</div><div><br></div><div><!-- Using Powershell to install/remove only adds to the running user.  --><br>             <!-- add-appxpackage -path "%TEMP%\wpkg\5E8FC25E.XodoDocs_4.0.3.0_neutral___3v3sf0k6w2rec.AppxBundle" --><br>             <install cmd='%COMSPEC% /C DISM.exe /Online /Add-ProvisionedAppxPackage /PackagePath:"%TEMP%\wpkg\Microsoft.RawImageExtension_%VERSION%_neutral___8wekyb3d8bbwe.AppxBundle" /SkipLicense' ></div><div><br></div><div>For this, I don't specify DependencyPackages (though registry shows that VCLibs Appx package is dependent), but I do have a <depends> command that points to my vcredist2015 package.  I don't know if the standard vcredist packages include Appx portions, though.<br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><br>Kris Lou<br><a href="mailto:klou@themusiclink.net" target="_blank">klou@themusiclink.net</a></div></div></div></div></div></div></div></div></div></div>