How to uninstall Burn bundle?

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

How to uninstall Burn bundle?

Nick Ramirez
I've been able to install my bundle with Burn, but I'm having trouble uninstalling it. I have an uninstall button on the UI that when clicked calls a method that starts the Plan phase:

public void StartUninstalling(Window mainWindow)
{
            this.mainWindow = mainWindow;
            this.Engine.Log(LogLevel.Standard, "Starting uninstall...");

            CustomBootstrapperApplication.Dispatcher.Invoke((Action)(() =>    
                    this.Engine.Plan(LaunchAction.Uninstall)));
}

The other event handlers, PlanComplete (which calls Apply) and ApplyComplete (which calls InvokeShutdown on the Dispatcher), are the same as used for the install. Nothing gets uninstalled though. I see this in the Burn log, as if nothing is happening during the Apply phase. Am I missing something? I also read something that suggests a reboot may be required. I rebooted the machine and after startup, the custom BA's UI shows up again, but I'm pretty much back where I started at that point.

[0604:05E8][2012-07-09T00:13:48]: Launching CustomBootstrapper UI
[0604:05E8][2012-07-09T00:13:50]: Starting uninstall...
[0604:05B0][2012-07-09T00:13:50]: Plan 1 packages, action: Uninstall
[0604:05B0][2012-07-09T00:13:50]: Setting string variable 'WixBundleRollbackLog_WindowsApp.Installer.msi' to value 'C:\Users\Win7\AppData\Local\Temp\WindowsApp.Bootstrapper_20120709001347_0_WindowsApp.Installer.msi_rollback.log'
[0604:05B0][2012-07-09T00:13:50]: Setting string variable 'msilog' to value 'C:\Users\Win7\AppData\Local\Temp\WindowsApp.Bootstrapper_20120709001347_0_WindowsApp.Installer.msi.log'
[0604:05B0][2012-07-09T00:13:50]: Planned package: WindowsApp.Installer.msi, state: Present, default requested: Absent, ba requested: Absent, execute: Uninstall, rollback: Install, cache: No, uncache: Yes, dependency: Unregister
[0604:05B0][2012-07-09T00:13:50]: Calling PlanComplete
[0604:05B0][2012-07-09T00:13:50]: Plan complete, result: 0x0
[0604:05B0][2012-07-09T00:13:50]: Apply begin
[0604:05B0][2012-07-09T00:13:50]: Calling ApplyComplete

[0604:05B0][2012-07-09T00:13:50]: Apply complete, result: 0x8007015e, restart: Required, ba requested restart:  No
[0604:05B0][2012-07-09T00:13:50]: Shutting down, exit code: 0x0
[0604:05B0][2012-07-09T00:13:50]: Variable: msilog = C:\Users\Win7\AppData\Local\Temp\WindowsApp.Bootstrapper_20120709001347_0_WindowsApp.Installer.msi.log
[0604:05B0][2012-07-09T00:13:50]: Variable: WixBundleAction = 3
[0604:05B0][2012-07-09T00:13:50]: Variable: WixBundleElevated = 0
[0604:05B0][2012-07-09T00:13:50]: Variable: WixBundleForcedRestartPackage = WindowsApp.Installer.msi
[0604:05B0][2012-07-09T00:13:50]: Variable: WixBundleLog = C:\Users\Win7\AppData\Local\Temp\WindowsApp.Bootstrapper_20120709001347.log
[0604:05B0][2012-07-09T00:13:50]: Variable: WixBundleName = WindowsApp.Bootstrapper
[0604:05B0][2012-07-09T00:13:50]: Variable: WixBundleOriginalSource = C:\Users\Win7\Desktop\WindowsApp.Bootstrapper.exe
[0604:05B0][2012-07-09T00:13:50]: Variable: WixBundleProviderKey = {982b848f-535a-4c62-9143-bbe31b3fa981}
[0604:05B0][2012-07-09T00:13:50]: Variable: WixBundleRollbackLog_WindowsApp.Installer.msi = C:\Users\Win7\AppData\Local\Temp\WindowsApp.Bootstrapper_20120709001347_0_WindowsApp.Installer.msi_rollback.log
[0604:05B0][2012-07-09T00:13:50]: Variable: WixBundleTag =
[0604:05B0][2012-07-09T00:13:50]: Variable: WixBundleVersion = 1.0.0.0
[0604:05B0][2012-07-09T00:13:50]: Exit code: 0x0, restarting: No
Reply | Threaded
Open this post in threaded view
|

Re: How to uninstall Burn bundle?

Nick Ramirez
Okay, an update: Actually, if I click my Uninstall button after the reboot, it does eventually uninstall the bundle. Is it supposed to require a restart to uninstall a Burn bundle? And does that restart only become mandatory when you want to uninstall?
Reply | Threaded
Open this post in threaded view
|

Re: How to uninstall Burn bundle?

robmen
Nothing Burn does requires a restart. A package in the chain may require a
restart and Burn will respect that.

On Sun, Jul 8, 2012 at 9:34 PM, Nick Ramirez <[hidden email]> wrote:

> Okay, an update: Actually, if I click my Uninstall button after the reboot,
> it does eventually uninstall the bundle. Is it /supposed/ to require a
> restart to uninstall a Burn bundle? And does that restart only become
> mandatory when you want to uninstall?
>
> --
> View this message in context:
> http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-to-uninstall-Burn-bundle-tp7579345p7579346.html
> Sent from the wix-users mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> WiX-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/wix-users
>



--
virtually,

   Rob Mensching
   http://RobMensching.com LLC
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Reply | Threaded
Open this post in threaded view
|

Re: How to uninstall Burn bundle?

Bruce Cran-2
In reply to this post by Nick Ramirez
On 09/07/2012 05:34, Nick Ramirez wrote:
> Okay, an update: Actually, if I click my Uninstall button after the reboot,
> it does eventually uninstall the bundle. Is it /supposed/ to require a
> restart to uninstall a Burn bundle? And does that restart only become
> mandatory when you want to uninstall?

Error 0x8007015e is "No action was taken as a system reboot is required"
- Burn fails the Apply of any subsequent operation
(install/uninstall/repair) until a reboot has happened, and I guess your
install required one?

--
Bruce Cran

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Reply | Threaded
Open this post in threaded view
|

Re: How to uninstall Burn bundle?

Nick Ramirez
This has all helped. Apparently, I've been testing too many things at once and must have been experimenting with the ForceReboot element in my MSI. Removing that should make things run much smoother!