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
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:
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:
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
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
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
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;
}
Maybe try adding another if statement where you detect a package with
PackageId of MyApplication1
--
View this message in context:
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
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
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:
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
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:
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.
14 matches
Mail list logo