Hi Guys,

This is my first email to this list. I have already seen the very same
problem somewhere else, but there was no satisfying solution to it.

I have 7 installers created with WiX. 3 of them are windows services. Most
of them use post-install and pre-uninstall scripts in the form of batch
files (I know... I will get rid of them, but time was short, and the
applications need to be changed for this).
There is also a bundle installer, that installs/uninstalls/updates all 7
applications.

Most of the time I am able to install/uninstall/update without any
problems. Everything works just fine. Sometimes I am able to
install/uninstall/update 10+ times in a row. Then suddenly everything stops
working. When it does, I can't install or uninstall any msi installer
anymore. Not just my application, but anything that relies on the Windows
Installer, including the WiX bundle packages. This means that somehow the
Windows Installer service gets broken. I have been trying to solve this
issue for almost a month now, but with zero success.

I have seen the very same thing happening on many computers, that tried to
install my bundle.
The OSs I have seen the problem on are: Windows Server 2003 and 2008,
Windows XP and Windows 7.
I have upgraded to Windows Installer 4.5, that did not make any difference
either.

Typing msiexec /unregister and msiexec /regserver does not help either.

I have noticed one very strange thing. When I have checked the installer
log from msiexec, I have noticed that the ProgramFiles property was somehow
pointing to "F:\", which is obviously wrong.

Now I am able to fix the problem at least. I have my 7 applications plus
the bundle installer in my list of installed programs. When the problem
starts happening, I simply remove my 7 applications using msicuu.exe (the
bundle installer is not listed by msicuu). At this point the problem is not
fixed yet, because the "MyBundle" installer is still in the list of
installed programs. So I go to "Add or Remove Programs", and remove this
orphaned entry. Since no application from the bundle is present at this
point, removal is instant and successful. And from this point on,
everything starts working fine, I can install/uninstall my bundle several
times.

This fixes the problems. But I have no idea why it happens. It should not
happen with the consumer product. I can't tell the consumer to use
msicuu.exe.

One guess is that the bundle installer itself is causing the problem. Is
there a way to install a bundle, but exclude the bundle installer from the
list of installed programs?

Finally, here is a log of a failed uninstall:

[1640:0D90][2011-11-03T12:34:34]: Burn v3.6.2221.0, path: C:\Documents and
Settings\All Users\Application Data\Package
Cache\{0f1b6fea-dd15-4019-883f-8570ad43cbd3}\MyBundle.exe, cmdline:
'/modify'
[1640:0D90][2011-11-03T12:34:34]: Setting string variable 'WixBundleName'
to value 'MyBundle'
[1640:0D90][2011-11-03T12:34:34]: Setting string variable 'WixBundleLog' to
value 'd:\Temp\MyBundle_20111103123434.log'
[1640:0D90][2011-11-03T12:34:34]: Detect 8 packages
[1640:0D90][2011-11-03T12:34:34]: Setting string variable
'Netfx35x64FullVersion' to value '3.5.21022.08'
[1640:0D90][2011-11-03T12:34:34]: Setting string variable
'Netfx35FullVersion' to value '3.5.21022.08'
[1640:0D90][2011-11-03T12:34:34]: Error 0x80070002: Failed to read cache
path from registry for bundle: {480c1777-415c-467e-8e91-4081a123c994}
[1640:0D90][2011-11-03T12:34:34]: Error 0x80070002: Failed to initialize
package from bundle id: {480c1777-415c-467e-8e91-4081a123c994}
[1640:0D90][2011-11-03T12:34:34]: Error 0x80070002: Failed to read cache
path from registry for bundle: {2bf078b2-e4c9-4466-b3e1-6eafc596896f}
[1640:0D90][2011-11-03T12:34:34]: Error 0x80070002: Failed to initialize
package from bundle id: {2bf078b2-e4c9-4466-b3e1-6eafc596896f}
[1640:0D90][2011-11-03T12:34:34]: Error 0x80070002: Failed to read cache
path from registry for bundle: {351824f9-3a61-4d87-b4ef-86411b9a6058}
[1640:0D90][2011-11-03T12:34:34]: Error 0x80070002: Failed to initialize
package from bundle id: {351824f9-3a61-4d87-b4ef-86411b9a6058}
[1640:0D90][2011-11-03T12:34:34]: Error 0x80070002: Failed to read cache
path from registry for bundle: {4c14e928-2a6d-4394-8cdb-a20282884da4}
[1640:0D90][2011-11-03T12:34:34]: Error 0x80070002: Failed to initialize
package from bundle id: {4c14e928-2a6d-4394-8cdb-a20282884da4}
[1640:0D90][2011-11-03T12:34:34]: Error 0x80070002: Failed to read cache
path from registry for bundle: {51d141fa-141d-4b8d-a857-26587b1f70f3}
[1640:0D90][2011-11-03T12:34:34]: Error 0x80070002: Failed to initialize
package from bundle id: {51d141fa-141d-4b8d-a857-26587b1f70f3}
[1640:0D90][2011-11-03T12:34:34]: Error 0x80070002: Failed to read cache
path from registry for bundle: {5ef672fe-9847-458a-befc-e9ef9c1edf50}
[1640:0D90][2011-11-03T12:34:34]: Error 0x80070002: Failed to initialize
package from bundle id: {5ef672fe-9847-458a-befc-e9ef9c1edf50}
[1640:0D90][2011-11-03T12:34:34]: Error 0x80070002: Failed to read cache
path from registry for bundle: {67b622f0-9a4b-4f0d-bcdc-03a5a85fc083}
[1640:0D90][2011-11-03T12:34:34]: Error 0x80070002: Failed to initialize
package from bundle id: {67b622f0-9a4b-4f0d-bcdc-03a5a85fc083}
[1640:0D90][2011-11-03T12:34:34]: Error 0x80070002: Failed to read cache
path from registry for bundle: {700fd85a-4d54-4c9c-bc7d-e02b88df5388}
[1640:0D90][2011-11-03T12:34:34]: Error 0x80070002: Failed to initialize
package from bundle id: {700fd85a-4d54-4c9c-bc7d-e02b88df5388}
[1640:0D90][2011-11-03T12:34:34]: Error 0x80070002: Failed to read cache
path from registry for bundle: {c42c5277-d8ce-40c3-b70e-e563a88e07e8}
[1640:0D90][2011-11-03T12:34:34]: Error 0x80070002: Failed to initialize
package from bundle id: {c42c5277-d8ce-40c3-b70e-e563a88e07e8}
[1640:0D90][2011-11-03T12:34:34]: Error 0x80070002: Failed to read cache
path from registry for bundle: {dd2cf76a-392b-40b7-9dfa-8c4899d0aeb3}
[1640:0D90][2011-11-03T12:34:34]: Error 0x80070002: Failed to initialize
package from bundle id: {dd2cf76a-392b-40b7-9dfa-8c4899d0aeb3}
[1640:0D90][2011-11-03T12:34:34]: Condition 'Netfx35FullVersion AND (NOT
VersionNT64 OR Netfx35x64FullVersion)' evaluates to true.
[1640:0D90][2011-11-03T12:34:34]: Detected package: Netfx35Full, state:
Present, cached: Yes
[1640:0D90][2011-11-03T12:34:34]: Detect 1 msi features for package: MyApp2
[1640:0D90][2011-11-03T12:34:34]: Detected package: MyApp2, feature:
ProductFeature, state: Local
[1640:0D90][2011-11-03T12:34:34]: Detected package: MyApp2, state: Present,
cached: Yes
[1640:0D90][2011-11-03T12:34:34]: Detect 1 msi features for package: MyApp1
[1640:0D90][2011-11-03T12:34:34]: Detected package: MyApp1, feature:
ProductFeature, state: Local
[1640:0D90][2011-11-03T12:34:34]: Detected package: MyApp1, state: Present,
cached: Yes
[1640:0D90][2011-11-03T12:34:34]: Detect 3 msi features for package: MyApp3
[1640:0D90][2011-11-03T12:34:34]: Detected package: MyApp3, feature:
VCRedistMFC, state: Local
[1640:0D90][2011-11-03T12:34:34]: Detected package: MyApp3, feature:
ProductFeature, state: Local
[1640:0D90][2011-11-03T12:34:34]: Detected package: MyApp3, feature:
VCRedistATL, state: Local
[1640:0D90][2011-11-03T12:34:34]: Detected package: MyApp3, state: Present,
cached: Yes
[1640:0D90][2011-11-03T12:34:34]: Detect 1 msi features for package:
Pressproxy
[1640:0D90][2011-11-03T12:34:34]: Detected package: Pressproxy, feature:
ProductFeature, state: Local
[1640:0D90][2011-11-03T12:34:34]: Detected package: Pressproxy, state:
Present, cached: Yes
[1640:0D90][2011-11-03T12:34:34]: Detect 3 msi features for package:
SpiceDrive
[1640:0D90][2011-11-03T12:34:34]: Detected package: SpiceDrive, feature:
VCRedistCRT, state: Local
[1640:0D90][2011-11-03T12:34:34]: Detected package: SpiceDrive, feature:
ProductFeature, state: Local
[1640:0D90][2011-11-03T12:34:34]: Detected package: SpiceDrive, feature:
VCRedistMFC, state: Local
[1640:0D90][2011-11-03T12:34:34]: Detected package: SpiceDrive, state:
Present, cached: Yes
[1640:0D90][2011-11-03T12:34:34]: Detect 1 msi features for package: MyApp5
[1640:0D90][2011-11-03T12:34:34]: Detected package: MyApp5, feature:
ProductFeature, state: Local
[1640:0D90][2011-11-03T12:34:34]: Detected package: MyApp5, state: Present,
cached: Yes
[1640:0D90][2011-11-03T12:34:34]: Detected related package:
{6C6CCD8F-4C18-4A77-BCB9-DB4245757468}, scope: PerMachine, version:
1.0.0.0, operation: MajorUpgrade
[1640:0D90][2011-11-03T12:34:34]: Detect 1 msi features for package: MyApp4
[1640:0D90][2011-11-03T12:34:34]: Detected package: MyApp4, feature:
ProductFeature, state: Local
[1640:0D90][2011-11-03T12:34:34]: Detected package: MyApp4, state: Present,
cached: Yes
[1640:0D90][2011-11-03T12:34:34]: Detect complete, result: 0x0
[1640:0D90][2011-11-03T12:34:35]: Plan 8 packages, action: Uninstall
[1640:0D90][2011-11-03T12:34:35]: Plan 1 msi features for package: MyApp4
[1640:0D90][2011-11-03T12:34:35]: Planned feature: ProductFeature, state:
Local, requested: Unknown, execute action: None, rollback action: None
[1640:0D90][2011-11-03T12:34:35]: Setting string variable
'WixBundleLog_MyApp4' to value
'd:\Temp\MyBundle_20111103123434_0_MyApp4.log'
[1640:0D90][2011-11-03T12:34:35]: Setting string variable
'WixBundleRollbackLog_MyApp4' to value
'd:\Temp\MyBundle_20111103123434_0_MyApp4_rollback.log'
[1640:0D90][2011-11-03T12:34:35]: Planned package: MyApp4, state: Present,
default requested: Absent, ux requested: Absent, execute: Uninstall,
rollback: Install, cache: No, uncache: Yes, dependency: Unregister
[1640:0D90][2011-11-03T12:34:35]: Plan 1 msi features for package: MyApp5
[1640:0D90][2011-11-03T12:34:35]: Planned feature: ProductFeature, state:
Local, requested: Unknown, execute action: None, rollback action: None
[1640:0D90][2011-11-03T12:34:35]: Setting string variable
'WixBundleLog_MyApp5' to value
'd:\Temp\MyBundle_20111103123434_1_MyApp5.log'
[1640:0D90][2011-11-03T12:34:35]: Setting string variable
'WixBundleRollbackLog_MyApp5' to value
'd:\Temp\MyBundle_20111103123434_1_MyApp5_rollback.log'
[1640:0D90][2011-11-03T12:34:35]: Planned package: MyApp5, state: Present,
default requested: Absent, ux requested: Absent, execute: Uninstall,
rollback: Install, cache: No, uncache: Yes, dependency: Unregister
[1640:0D90][2011-11-03T12:34:35]: Plan 3 msi features for package: MyApp7
[1640:0D90][2011-11-03T12:34:35]: Planned feature: VCRedistCRT, state:
Local, requested: Unknown, execute action: None, rollback action: None
[1640:0D90][2011-11-03T12:34:35]: Planned feature: ProductFeature, state:
Local, requested: Unknown, execute action: None, rollback action: None
[1640:0D90][2011-11-03T12:34:35]: Planned feature: VCRedistMFC, state:
Local, requested: Unknown, execute action: None, rollback action: None
[1640:0D90][2011-11-03T12:34:35]: Setting string variable
'WixBundleLog_MyApp7' to value
'd:\Temp\MyBundle_20111103123434_2_MyApp7.log'
[1640:0D90][2011-11-03T12:34:35]: Setting string variable
'WixBundleRollbackLog_MyApp7' to value
'd:\Temp\MyBundle_20111103123434_2_MyApp7_rollback.log'
[1640:0D90][2011-11-03T12:34:35]: Planned package: MyApp7, state: Present,
default requested: Absent, ux requested: Absent, execute: Uninstall,
rollback: Install, cache: No, uncache: Yes, dependency: Unregister
[1640:0D90][2011-11-03T12:34:35]: Plan 1 msi features for package: MyApp6
[1640:0D90][2011-11-03T12:34:35]: Planned feature: ProductFeature, state:
Local, requested: Unknown, execute action: None, rollback action: None
[1640:0D90][2011-11-03T12:34:35]: Setting string variable
'WixBundleLog_MyApp6' to value
'd:\Temp\MyBundle_20111103123434_3_MyApp6.log'
[1640:0D90][2011-11-03T12:34:35]: Setting string variable
'WixBundleRollbackLog_MyApp6' to value
'd:\Temp\MyBundle_20111103123434_3_MyApp6_rollback.log'
[1640:0D90][2011-11-03T12:34:35]: Planned package: MyApp6, state: Present,
default requested: Absent, ux requested: Absent, execute: Uninstall,
rollback: Install, cache: No, uncache: Yes, dependency: Unregister
[1640:0D90][2011-11-03T12:34:35]: Plan 3 msi features for package: MyApp3
[1640:0D90][2011-11-03T12:34:35]: Planned feature: VCRedistMFC, state:
Local, requested: Unknown, execute action: None, rollback action: None
[1640:0D90][2011-11-03T12:34:35]: Planned feature: ProductFeature, state:
Local, requested: Unknown, execute action: None, rollback action: None
[1640:0D90][2011-11-03T12:34:35]: Planned feature: VCRedistATL, state:
Local, requested: Unknown, execute action: None, rollback action: None
[1640:0D90][2011-11-03T12:34:35]: Setting string variable
'WixBundleLog_MyApp3' to value
'd:\Temp\MyBundle_20111103123434_4_MyApp3.log'
[1640:0D90][2011-11-03T12:34:35]: Setting string variable
'WixBundleRollbackLog_MyApp3' to value
'd:\Temp\MyBundle_20111103123434_4_MyApp3_rollback.log'
[1640:0D90][2011-11-03T12:34:35]: Planned package: MyApp3, state: Present,
default requested: Absent, ux requested: Absent, execute: Uninstall,
rollback: Install, cache: No, uncache: Yes, dependency: Unregister
[1640:0D90][2011-11-03T12:34:35]: Plan 1 msi features for package: MyApp1
[1640:0D90][2011-11-03T12:34:35]: Planned feature: ProductFeature, state:
Local, requested: Unknown, execute action: None, rollback action: None
[1640:0D90][2011-11-03T12:34:35]: Setting string variable
'WixBundleLog_MyApp1' to value
'd:\Temp\MyBundle_20111103123434_5_MyApp1.log'
[1640:0D90][2011-11-03T12:34:35]: Setting string variable
'WixBundleRollbackLog_MyApp1' to value
'd:\Temp\MyBundle_20111103123434_5_MyApp1_rollback.log'
[1640:0D90][2011-11-03T12:34:35]: Planned package: MyApp1, state: Present,
default requested: Absent, ux requested: Absent, execute: Uninstall,
rollback: Install, cache: No, uncache: Yes, dependency: Unregister
[1640:0D90][2011-11-03T12:34:35]: Plan 1 msi features for package: MyApp2
[1640:0D90][2011-11-03T12:34:35]: Planned feature: ProductFeature, state:
Local, requested: Unknown, execute action: None, rollback action: None
[1640:0D90][2011-11-03T12:34:35]: Setting string variable
'WixBundleLog_MyApp2' to value
'd:\Temp\MyBundle_20111103123434_6_MyApp2.log'
[1640:0D90][2011-11-03T12:34:35]: Setting string variable
'WixBundleRollbackLog_MyApp2' to value
'd:\Temp\MyBundle_20111103123434_6_MyApp2_rollback.log'
[1640:0D90][2011-11-03T12:34:35]: Planned package: MyApp2, state: Present,
default requested: Absent, ux requested: Absent, execute: Uninstall,
rollback: Install, cache: No, uncache: Yes, dependency: Unregister
[1640:0D90][2011-11-03T12:34:35]: Setting string variable
'WixBundleRollbackLog_Netfx35Full' to value
'd:\Temp\MyBundle_20111103123434_7_Netfx35Full_rollback.log'
[1640:0D90][2011-11-03T12:34:35]: Planned package: Netfx35Full, state:
Present, default requested: Absent, ux requested: Absent, execute: None,
rollback: Install, cache: No, uncache: Yes, dependency: Register
[1640:0D90][2011-11-03T12:34:35]: Plan complete, result: 0x0
[1640:0D90][2011-11-03T12:34:35]: Apply begin
[027C:1084][2011-11-03T12:34:35]: Error 0x80070002: Failed to read cache
path from registry for bundle: {2bf078b2-e4c9-4466-b3e1-6eafc596896f}
[027C:1084][2011-11-03T12:34:35]: Error 0x80070002: Failed to initialize
package from bundle id: {2bf078b2-e4c9-4466-b3e1-6eafc596896f}
[027C:1084][2011-11-03T12:34:35]: Error 0x80070002: Failed to read cache
path from registry for bundle: {351824f9-3a61-4d87-b4ef-86411b9a6058}
[027C:1084][2011-11-03T12:34:35]: Error 0x80070002: Failed to initialize
package from bundle id: {351824f9-3a61-4d87-b4ef-86411b9a6058}
[027C:1084][2011-11-03T12:34:35]: Error 0x80070002: Failed to read cache
path from registry for bundle: {4c14e928-2a6d-4394-8cdb-a20282884da4}
[027C:1084][2011-11-03T12:34:35]: Error 0x80070002: Failed to initialize
package from bundle id: {4c14e928-2a6d-4394-8cdb-a20282884da4}
[027C:1084][2011-11-03T12:34:35]: Error 0x80070002: Failed to read cache
path from registry for bundle: {51d141fa-141d-4b8d-a857-26587b1f70f3}
[027C:1084][2011-11-03T12:34:35]: Error 0x80070002: Failed to initialize
package from bundle id: {51d141fa-141d-4b8d-a857-26587b1f70f3}
[027C:1084][2011-11-03T12:34:35]: Error 0x80070002: Failed to read cache
path from registry for bundle: {5ef672fe-9847-458a-befc-e9ef9c1edf50}
[027C:1084][2011-11-03T12:34:35]: Error 0x80070002: Failed to initialize
package from bundle id: {5ef672fe-9847-458a-befc-e9ef9c1edf50}
[027C:1084][2011-11-03T12:34:35]: Error 0x80070002: Failed to read cache
path from registry for bundle: {67b622f0-9a4b-4f0d-bcdc-03a5a85fc083}
[027C:1084][2011-11-03T12:34:35]: Error 0x80070002: Failed to initialize
package from bundle id: {67b622f0-9a4b-4f0d-bcdc-03a5a85fc083}
[027C:1084][2011-11-03T12:34:35]: Error 0x80070002: Failed to read cache
path from registry for bundle: {700fd85a-4d54-4c9c-bc7d-e02b88df5388}
[027C:1084][2011-11-03T12:34:35]: Error 0x80070002: Failed to initialize
package from bundle id: {700fd85a-4d54-4c9c-bc7d-e02b88df5388}
[027C:1084][2011-11-03T12:34:35]: Error 0x80070002: Failed to read cache
path from registry for bundle: {c42c5277-d8ce-40c3-b70e-e563a88e07e8}
[027C:1084][2011-11-03T12:34:35]: Error 0x80070002: Failed to initialize
package from bundle id: {c42c5277-d8ce-40c3-b70e-e563a88e07e8}
[027C:1084][2011-11-03T12:34:35]: Error 0x80070002: Failed to read cache
path from registry for bundle: {dd2cf76a-392b-40b7-9dfa-8c4899d0aeb3}
[027C:1084][2011-11-03T12:34:35]: Error 0x80070002: Failed to initialize
package from bundle id: {dd2cf76a-392b-40b7-9dfa-8c4899d0aeb3}
[027C:1084][2011-11-03T12:34:35]: Applying package: MyApp4, action:
Uninstall, path: C:\Documents and Settings\All Users\Application
Data\Package
Cache\{C95CD6D4-A904-480E-9392-3C5397518797}v3.2.37.0\MyApp4.msi,
arguments: '(null)'
[027C:1084][2011-11-03T12:34:35]: Error 0x80070643: Failed to uninstall MSI
package.
[027C:1084][2011-11-03T12:34:35]: Error 0x80070643: Failed to execute MSI
package.
[1640:0D90][2011-11-03T12:34:35]: Error 0x80070643: Failed to configure
per-machine MSI package.
[1640:0D90][2011-11-03T12:34:35]: Error 0x80070643: Failed to execute MSI
package.
[1640:0D90][2011-11-03T12:34:35]: Error 0x80070643: Failed to execute apply.
[1640:0D90][2011-11-03T12:34:35]: Apply complete, result: 0x80070643
restart: No
-------------------

Kind Regards:
Peter
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to