wixtoolset / issues

WiX Toolset Issues Tracker
http://wixtoolset.org/
129 stars 36 forks source link

State == PackageState.Present every time after uninstall process #4656

Closed wixbot closed 8 years ago

wixbot commented 9 years ago

I try to uninstall my package using this.bootstrapperApplication.Engine.Plan(LaunchAction.Uninstall);

Below is the result log. But the next time when I run my uninstall I get DetectPackageCompleteEventArgs.State == PackageState.Present for MSIMyApp package.

What is going wrong? Should I post my .wsx?

   [1B54:3DF0][2015-01-16T09:55:17]i001: Burn v3.8.1128.0, Windows v6.0 (Build 6000: Service Pack 0), path: C:\Users\y.timofeev\AppData\Local\Temp\My.MyApp.InstallerBootstrapper.exe -log log.txt -burn.unelevated BurnPipe.{A359D56E-D140-41B2-B930-C2E9054A06F7} {FD49CC1F-B06C-4559-A40C-7248131B1BD3} 16484'
[1B54:3DF0][2015-01-16T09:55:17]i000: Initializing string variable 'PackagesPath' to value 'Packages'
[1B54:3DF0][2015-01-16T09:55:17]i000: Initializing string variable 'AppConfigPath' to value 'My.MyApp.exe.config'
[1B54:3DF0][2015-01-16T09:55:17]i000: Initializing string variable 'LogDir' to value 'logs'
[1B54:3DF0][2015-01-16T09:55:18]i000: Setting string variable 'WixBundleLog' to value 'C:\Projects\MyApp-default\install\log.txt'
[1B54:3DF0][2015-01-16T09:55:18]i000: Setting string variable 'WixBundleOriginalSource' to value 'C:\Users\y.timofeev\AppData\Local\Temp\My.MyApp.InstallerBootstrapper.exe'
[1B54:3DF0][2015-01-16T09:55:18]i000: Setting string variable 'WixBundleName' to value 'MyApp'
[1B54:3DF0][2015-01-16T09:55:18]i000: Loading managed bootstrapper application.
[1B54:3DF0][2015-01-16T09:55:18]i000: Creating BA thread to run asynchronously.
[1B54:3DF0][2015-01-16T09:55:22]i100: Detect begin, 2 packages
[1B54:3DF0][2015-01-16T09:55:22]i000: Setting string variable 'NETFRAMEWORK45' to value '378758'
[1B54:3DF0][2015-01-16T09:55:22]i102: Detected related bundle: {42b6494e-b78d-4731-8d4a-c0b94f989bd0}, type: Upgrade, scope: PerMachine, version: 0.0.0.1, operation: None
[1B54:3DF0][2015-01-16T09:55:22]i052: Condition 'NETFRAMEWORK45 >= 378389' evaluates to true.
[1B54:3DF0][2015-01-16T09:55:22]i101: Detected package: NetFx45Web, state: Present, cached: None
[1B54:3DF0][2015-01-16T09:55:22]i101: Detected package: MSIMyApp, state: Present, cached: None
[1B54:3DF0][2015-01-16T09:55:22]i199: Detect complete, result: 0x0
[1B54:3C98][2015-01-16T09:55:24]i000: Setting string variable 'InstallPath' to value 'C:\Users\y.timofeev\AppData\Local\My\MyApp'
[1B54:3C98][2015-01-16T09:55:24]i000: Setting string variable 'ExeFileName' to value 'My.MyApp.exe'
[1B54:3C98][2015-01-16T09:55:24]i000: Setting string variable 'AppConfigPath' to value 'C:\Users\y.timofeev\AppData\Local\My\MyApp\My.MyApp.exe.config'
[1B54:3C98][2015-01-16T09:55:24]i000: Setting string variable 'LogDir' to value 'C:\Users\y.timofeev\AppData\Local\My\MyApp\logs'
[1B54:3C98][2015-01-16T09:55:24]i000: Setting string variable 'PackageName' to value 'My.MyApp-test'
[1B54:3C98][2015-01-16T09:55:24]i000: Setting string variable 'UnpackPath' to value 'C:\Users\y.timofeev\AppData\Local\My\MyApp'
[1B54:3C98][2015-01-16T09:55:24]i000: Setting string variable 'ProcessName' to value 'My.MyApp.exe'
[1B54:3C98][2015-01-16T09:55:24]i000: Setting string variable 'PackageRelPath' to value 'app/'
[1B54:3C98][2015-01-16T09:55:24]i000: Setting string variable 'UpdaterConfig' to value 'My.MyApp.Updater.NugetUpdaterConfig'
[1B54:3C98][2015-01-16T09:55:24]i000: Setting string variable 'UpdateProcess' to value 'My.MyApp.InstallerUI.Process.UninstallProcess'
[1B54:3DF0][2015-01-16T09:55:24]i200: Plan begin, 2 packages, action: Uninstall
[1B54:3DF0][2015-01-16T09:55:24]w209: Plan skipped removal of provider key: {b8f84a79-c90d-4822-8916-3ae68b10df0b} because it is registered to a different bundle: (null)
[1B54:3DF0][2015-01-16T09:55:24]w327: Will not uninstall package: MSIMyApp, found dependents: 2
[1B54:3DF0][2015-01-16T09:55:24]w328: Found dependent: {42b6494e-b78d-4731-8d4a-c0b94f989bd0}, name: MyApp
[1B54:3DF0][2015-01-16T09:55:24]w328: Found dependent: {777447fa-544a-43b0-9ef2-b9402092a31b}, name: MyApp
[1B54:3DF0][2015-01-16T09:55:24]w321: Skipping dependency registration on package with no dependency providers: NetFx45Web
[1B54:3DF0][2015-01-16T09:55:24]i207: Planned related bundle: {42b6494e-b78d-4731-8d4a-c0b94f989bd0}, type: Upgrade, default requested: None, ba requested: None, execute: None, rollback: None, dependency: None
[1B54:3DF0][2015-01-16T09:55:24]i201: Planned package: MSIMyApp, state: Present, default requested: Absent, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: No, dependency: Unregister
[1B54:3DF0][2015-01-16T09:55:24]i201: Planned package: NetFx45Web, state: Present, default requested: None, ba requested: None, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[1B54:3DF0][2015-01-16T09:55:24]i299: Plan complete, result: 0x0
[1B54:3DF0][2015-01-16T09:55:24]i300: Apply begin
[4064:2840][2015-01-16T09:55:24]i360: Creating a system restore point.
[4064:2840][2015-01-16T09:55:33]i361: Created a system restore point.
[4064:2840][2015-01-16T09:55:33]i326: Removed dependency: {b8f84a79-c90d-4822-8916-3ae68b10df0b} on package provider: {8684ACD3-C0D5-4651-AED1-522865AF3E0D}, package MSIMyApp
[4064:2840][2015-01-16T09:55:33]i352: Removing cached bundle: {b8f84a79-c90d-4822-8916-3ae68b10df0b}, from path: C:\ProgramData\Package Cache\{b8f84a79-c90d-4822-8916-3ae68b10df0b}\
[4064:2840][2015-01-16T09:55:33]w354: Unable to remove cached bundle: {b8f84a79-c90d-4822-8916-3ae68b10df0b}, from path: C:\ProgramData\Package Cache\{b8f84a79-c90d-4822-8916-3ae68b10df0b}\, reason: 0x80070003. Continuing...
[1B54:3DF0][2015-01-16T09:55:33]i399: Apply complete, result: 0x0, restart: None, ba requested restart:  No
[1B54:3DF0][2015-01-16T09:55:39]i500: Shutting down, exit code: 0x0
[1B54:3DF0][2015-01-16T09:55:39]i410: Variable: AppConfigPath = C:\Users\y.timofeev\AppData\Local\My\MyApp\My.MyApp.exe.config
[1B54:3DF0][2015-01-16T09:55:39]i410: Variable: ExeFileName = My.MyApp.exe
[1B54:3DF0][2015-01-16T09:55:39]i410: Variable: InstallPath = C:\Users\y.timofeev\AppData\Local\My\MyApp
[1B54:3DF0][2015-01-16T09:55:39]i410: Variable: LogDir = C:\Users\y.timofeev\AppData\Local\My\MyApp\logs
[1B54:3DF0][2015-01-16T09:55:39]i410: Variable: NETFRAMEWORK45 = 378758
[1B54:3DF0][2015-01-16T09:55:39]i410: Variable: PackageName = My.MyApp-test
[1B54:3DF0][2015-01-16T09:55:39]i410: Variable: PackageRelPath = app/
[1B54:3DF0][2015-01-16T09:55:39]i410: Variable: PackagesPath = Packages
[1B54:3DF0][2015-01-16T09:55:39]i410: Variable: ProcessName = My.MyApp.exe
[1B54:3DF0][2015-01-16T09:55:39]i410: Variable: UnpackPath = C:\Users\y.timofeev\AppData\Local\My\MyApp
[1B54:3DF0][2015-01-16T09:55:39]i410: Variable: UpdateProcess = My.MyApp.InstallerUI.Process.UninstallProcess
[1B54:3DF0][2015-01-16T09:55:39]i410: Variable: UpdaterConfig = My.MyApp.Updater.NugetUpdaterConfig
[1B54:3DF0][2015-01-16T09:55:39]i410: Variable: UpdateUrl = http://tc.egspace.ru:87/guestAuth/app/nuget/v1/FeedService.svc/
[1B54:3DF0][2015-01-16T09:55:39]i410: Variable: WixBundleAction = 3
[1B54:3DF0][2015-01-16T09:55:39]i410: Variable: WixBundleElevated = 1
[1B54:3DF0][2015-01-16T09:55:39]i410: Variable: WixBundleLog = C:\Projects\MyApp-default\install\log.txt
[1B54:3DF0][2015-01-16T09:55:39]i410: Variable: WixBundleManufacturer = My
[1B54:3DF0][2015-01-16T09:55:39]i410: Variable: WixBundleName = MyApp
[1B54:3DF0][2015-01-16T09:55:39]i410: Variable: WixBundleOriginalSource = C:\Users\y.timofeev\AppData\Local\Temp\My.MyApp.InstallerBootstrapper.exe
[1B54:3DF0][2015-01-16T09:55:39]i410: Variable: WixBundleProviderKey = {b8f84a79-c90d-4822-8916-3ae68b10df0b}
[1B54:3DF0][2015-01-16T09:55:39]i410: Variable: WixBundleTag = 
[1B54:3DF0][2015-01-16T09:55:39]i410: Variable: WixBundleVersion = 0.0.0.1
[1B54:3DF0][2015-01-16T09:55:39]i007: Exit code: 0x0, restarting: No

Thanks in advance!

Originally opened by yurytimofeev

wixbot commented 9 years ago

Something else has installed your package so it's not being uninstalled:

[1B54:3DF0][2015-01-16T09:55:24]w327: Will not uninstall package: MSIMyApp, found dependents: 2

Resolution set to bydesign Status changed from Untriaged to Resolved