Re: [WiX-users] Wix Bootstrapper is not removing older version from Control Panel/Uninstall Program

2014-03-08 Thread bk1234
Finally resolved this issue when I have following on the Display.Embedded mode of my BootstrapperApplication: 1. Add handlers for DetectComplete, PlanComplete and ApplyComplete. Call Engine.Detect(). 2. Handler for DetectComplete calls Engine.Plan(Command.Action). 3. Handler for PlanComplete calls

Re: [WiX-users] Wix Bootstrapper is not removing older version from Control Panel/Uninstall Program

2014-03-07 Thread Nick Ramirez
I think that's how it work unless you update the Version attribute on the Bundle element and also the Version attribute on the Product element in the MSI. -- View this message in context:

Re: [WiX-users] Wix Bootstrapper is not removing older version from Control Panel/Uninstall Program

2014-03-07 Thread bk1234
Thanks Nick. I am using same Version for 2 MSI as well as bundle. They get incremented for each newer version. Also, I am using separate upgrade codes for the MSI and bundle. -- View this message in context:

Re: [WiX-users] Wix Bootstrapper is not removing older version from Control Panel/Uninstall Program

2014-03-07 Thread Nick Ramirez
Hmm, I don't recall having to do anything special in the custom bootstrapper to handle what gets displayed in Add/Remove Programs. I mean, you have to implement handlers for the Detec, Plan, Apply events...but if you're successfully installing and uninstalling you must be doing that. I think the

Re: [WiX-users] Wix Bootstrapper is not removing older version from Control Panel/Uninstall Program

2014-03-07 Thread bk1234
Here are the logs when higher version is installed. Thank you[186C:1C04][2014-03-07T14:57:34]i000: Loading managed bootstrapper application.[186C:1C04][2014-03-07T14:57:34]i000: Creating BA thread to run asynchronously.[186C:1C04][2014-03-07T14:57:34]i100: Detect begin, 3

Re: [WiX-users] Wix Bootstrapper is not removing older version from Control Panel/Uninstall Program

2014-03-07 Thread Nick Ramirez
Doesn't appear to be detecting your previous install: [186C:1C04][2014-03-07T14:57:34]i101: Detected package: MyApplication1, state: Absent, cached: None [186C:1C04][2014-03-07T14:57:34]i101: Detected package: MyApplication2, state: Absent, cached: None It says that its current state is

Re: [WiX-users] Wix Bootstrapper is not removing older version from Control Panel/Uninstall Program

2014-03-07 Thread bk1234
I have following for the detect package: private void OnDetectPackageComplete(object sender, DetectPackageCompleteEventArgs e) { if (e.State == PackageState.Present) { if (e.PackageId != NetFx40Web) { HasInstalledAlready = true; }

Re: [WiX-users] Wix Bootstrapper is not removing older version from Control Panel/Uninstall Program

2014-03-07 Thread Nick Ramirez
Maybe try adding another if statement where you detect a package with PackageId of MyApplication1 -- View this message in context:

Re: [WiX-users] Wix Bootstrapper is not removing older version from Control Panel/Uninstall Program

2014-03-07 Thread bk1234
Hi Nick, I don't quite get how would adding another statement would help here. Should not I use plan() in any case with arguments LaunchAction.Install? i.e. for both fresh install as well as upgrade? Also, I checked DetectPackageCompleteEventArgs(e) for both versions. Here are the results. When

Re: [WiX-users] Wix Bootstrapper is not removing older version from Control Panel/Uninstall Program

2014-03-07 Thread Nick Ramirez
Ah, I was reading your code wrong. I was seeing an == when you have a != when checking the .NET Framework Package ID. Well, in any case, it's clearly not detecting your previous install. I'm not too sure what that could be other than that the UpgradeCode on the bundle needs to stay the same. Are

Re: [WiX-users] Wix Bootstrapper is not removing older version from Control Panel/Uninstall Program

2014-03-07 Thread bk1234
Actually, I just noticed one more log file for the uninstalltion. There seems some problem during uninstalltion. I hope this might be useful. [06A8:2378][2014-03-07T16:27:29]i200: Plan begin, 3 packages, action: Uninstall [06A8:2378][2014-03-07T16:27:29]w209: Plan skipped removal of provider key:

Re: [WiX-users] Wix Bootstrapper is not removing older version from Control Panel/Uninstall Program

2014-03-07 Thread bk1234
Also, following is the bundle settings: Bundle Name=$(var.ProductName) Version=$(var.MsiVersion) Manufacturer=$(var.Manufacturer) UpgradeCode=$(var.BundleUpgradeCode) IconSourceFile=$(var.AppIconSource) Compressed=yes BootstrapperApplicationRef Id=ManagedBootstrapperApplicationHost

Re: [WiX-users] Wix Bootstrapper is not removing older version from Control Panel/Uninstall Program

2014-03-07 Thread Nick Ramirez
I wonder if the UpgradeCode on the bundle isn't being set properly. Does hardcoding it for the time being help? -- View this message in context:

Re: [WiX-users] Wix Bootstrapper is not removing older version from Control Panel/Uninstall Program

2014-03-07 Thread bk1234
No luck with that too. :( -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Wix-Bootstrapper-is-not-removing-older-version-from-Control-Panel-Uninstall-Program-tp7593116p7593209.html Sent from the wix-users mailing list archive at Nabble.com.