[wix-users] WiX Burn - cached bundle is not removed on uninstall

Edwin Castro egcastr at gmail.com
Thu Jun 21 09:02:48 PDT 2018


Is it possible the bundle stays behind because it can't tell whether or not
the per-user package has been uninstalled for all possible users on the
system? In that case, it *must* stay behind so that other users can
uninstall properly.

--
Edwin G. Castro


On Thu, Jun 21, 2018 at 7:03 AM, Gronbach, Moritz via wix-users <
wix-users at lists.wixtoolset.org> wrote:

> I have the same problem with a minimal wix bundle & Msi, even after
> restarting after the first uninstall. And again, the problem disappears
> when I set ForcePerMachine="yes".
>
> Bundle:
> <?xml version="1.0" encoding="UTF-8"?>
> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
>         <Bundle Name="Bootstrapper1" Version="1.0.0.0"
> Manufacturer="Vector" UpgradeCode="0992eda9-2805-4f4f-8bad-63cd3ecaf00b">
>                 <BootstrapperApplicationRef Id="
> WixStandardBootstrapperApplication.RtfLicense" />
>
>                 <Chain>
>                   <MsiPackage SourceFile="$(var.Vector.DA.
> Deployment.RegistryRunDev.TargetPath)" Name="Prerequisites\
> VectorRegistryRunDev\VectorRegistryRunDev.msi"></MsiPackage>
>                 </Chain>
>         </Bundle>
> </Wix>
>
> Msi (copied from a tutorial): :
> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
>   <Product Id="*" UpgradeCode="12345678-1234-1234-1234-111111111111"
>
>            Name="Example Product Name" Version="0.0.1"
> Manufacturer="Example Company Name" Language="1033">
>     <Package InstallerVersion="200" Compressed="yes" Comments="Windows
> Installer Package"/>
>     <Media Id="1" Cabinet="product.cab" EmbedCab="yes"/>
>
>     <Directory Id="TARGETDIR" Name="SourceDir">
>       <Component Id="ApplicationFiles" Guid="12345678-1234-1234-1234-
> 222222222222"/>
>     </Directory>
>
>     <Feature Id="DefaultFeature" Level="1">
>       <ComponentRef Id="ApplicationFiles"/>
>     </Feature>
>   </Product>
> </Wix>
>
> -----Original Message-----
> From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf
> Of Gronbach, Moritz via wix-users
> Sent: Thursday, June 21, 2018 2:05 PM
> To: Rob Mensching <rob at firegiant.com>; WiX Toolset Users Mailing List <
> wix-users at lists.wixtoolset.org>
> Cc: Gronbach, Moritz <Moritz.Gronbach at vector.com>
> Subject: Re: [wix-users] WiX Burn - cached bundle is not removed on
> uninstall
>
> Doesn't clear the cache. I reduced the problem to two MSI packages in the
> bundle chain, both of them per-user packages we generate with WiX. The rest
> are permanent per-machine packages. Keeping any of the two per-user
> packages causes the leftover cache (even if the chain is reduced to just
> one of them). Removing them, OR setting ForcePerMachine="yes", makes the
> problem go away -- but they shouldn't be installed per-machine.
>
> -----Original Message-----
> From: Rob Mensching [mailto:rob at firegiant.com]
> Sent: Wednesday, June 20, 2018 5:49 PM
> To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
> Cc: Gronbach, Moritz <Moritz.Gronbach at vector.com>
> Subject: RE: WiX Burn - cached bundle is not removed on uninstall
>
> Restart?
>
> _____________________________________________________________
>  Short replies here. Complete answers over there:
> http://www.firegiant.com/
>
> -----Original Message-----
> From: wix-users <wix-users-bounces at lists.wixtoolset.org> On Behalf Of
> Gronbach, Moritz via wix-users
> Sent: Wednesday, June 20, 2018 12:48 AM
> To: wix-users at lists.wixtoolset.org
> Cc: Gronbach, Moritz <Moritz.Gronbach at vector.com>
> Subject: [wix-users] WiX Burn - cached bundle is not removed on uninstall
>
> Hi,
>
> I have the following problem related to caching and the ARP:
>
> 1) Install Bundle
> 2) Uninstall the Bundle from ARP -> cached bundle is not removed:
>
>    i001: Burn v3.11.1.2318, Windows v6.1 (Build 7601: Service Pack 1),
> path: C:\Users\username\AppData\Local\Package Cache\{956625c9-e05f-4513-a9a0-6c24b7f6de54}\My
> Setup.exe
>    i000: Initializing string variable 'Version' to value '3.0'
>    i009: Command Line: '"-burn.clean.room=C:\Users\username\AppData\Local\Package
> Cache\{956625c9-e05f-4513-a9a0-6c24b7f6de54}\My Setup.exe"
> -burn.filehandle.attached=212 -burn.filehandle.self=220 /uninstall'
>    [...]
>    i330: Removed bundle dependency provider: {956625c9-e05f-4513-a9a0-
> 6c24b7f6de54}
>    i352: Removing cached bundle: {956625c9-e05f-4513-a9a0-6c24b7f6de54},
> from path: C:\Users\username\AppData\Local\Package
> Cache\{956625c9-e05f-4513-a9a0-6c24b7f6de54}\
>    w354: Unable to remove cached bundle: {956625c9-e05f-4513-a9a0-6c24b7f6de54},
> from path: C:\Users\username\AppData\Local\Package
> Cache\{956625c9-e05f-4513-a9a0-6c24b7f6de54}\, reason: 0x80070091.
> Continuing...
>    i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\
> CurrentVersion\Uninstall\{956625c9-e05f-4513-a9a0-6c24b7f6de54}, resume:
> None, restart initiated: No, disable resume: No
>    i399: Apply complete, result: 0x0, restart: None, ba requested
> restart:  No
>
> "reason: 0x80070091" means that the directory is not empty. The only file
> in there is "My Setup.exe" (which is used for the ARP uninstall).
>
> 3) Reinstall the bundle -> no entry in ARP,  probably because of
> https://github.com/wixtoolset/issues/issues/5702
> Relevant line from the install log:
>
>    i370: Session begin, registration key: SOFTWARE\Microsoft\Windows\
> CurrentVersion\Uninstall\{956625c9-e05f-4513-a9a0-6c24b7f6de54}, options:
> 0x4, disable resume: No
>
> Where "options: 0x4" means that only the estimated size is updated in the
> registry entry. The first installation had 0x7, i.e. full ARP registry
> entry creation.
>
>
> I can provide more logs if it helps. However, I diff'ed successful and
> non-successful installation/uninstallations, and the lines mentioned seemed
> to be the only relevant differences.
>
>
> Any ideas why the bundle is not removed from the cache on uninstall?
>
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>



More information about the wix-users mailing list