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 Engine.Apply(IntPtr.Zero).
4. Handler for ApplyComplete calls Engine.Quit(0).

Thank you



--
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-tp7593116p7593223.html
Sent from the wix-users mailing list archive at Nabble.com.

--
Subversion Kills Productivity. Get off Subversion  Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951iu=/4140/ostg.clktrk
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


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: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Wix-Bootstrapper-is-not-removing-older-version-from-Control-Panel-Uninstall-Program-tp7593116p7593185.html
Sent from the wix-users mailing list archive at Nabble.com.

--
Subversion Kills Productivity. Get off Subversion  Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951iu=/4140/ostg.clktrk
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


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: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Wix-Bootstrapper-is-not-removing-older-version-from-Control-Panel-Uninstall-Program-tp7593116p7593187.html
Sent from the wix-users mailing list archive at Nabble.com.

--
Subversion Kills Productivity. Get off Subversion  Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951iu=/4140/ostg.clktrk
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


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
problem must lie somewhere in the XML markup. Can you send the snippet of
the bootstrapper's log where it detects the previous install and sets it up
for removal?



--
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-tp7593116p7593190.html
Sent from the wix-users mailing list archive at Nabble.com.

--
Subversion Kills Productivity. Get off Subversion  Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951iu=/4140/ostg.clktrk
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


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
packages[186C:1C04][2014-03-07T14:57:34]i000: Setting string variable
'NETFRAMEWORK40' to value '1'[186C:1C04][2014-03-07T14:57:34]i102: Detected
related bundle: {f430f193-dd47-4e2d-853b-213df35b50ac}, type: Upgrade,
scope: PerUser, version: 2.0.13143.0, operation:
MajorUpgrade[186C:1C04][2014-03-07T14:57:34]i052: Condition 'NETFRAMEWORK40'
evaluates to true.[186C:1C04][2014-03-07T14:57:34]i103: Detected related
package: {04871925-4319-41CB-A13A-78B400261C6C}, scope: PerUser, version:
2.0.13143.0, language: 0 operation:
MajorUpgrade[186C:1C04][2014-03-07T14:57:34]i103: Detected related package:
{1314E546-DEAB-47E4-A88C-3462D5569722}, scope: PerUser, version:
2.0.13143.0, language: 0 operation:
MajorUpgrade[186C:1C04][2014-03-07T14:57:34]i101: Detected package:
NetFx40Web, state: Present, cached:
None[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[186C:1C04][2014-03-07T14:57:34]i199: Detect complete, result:
0x0[186C:1C04][2014-03-07T14:57:35]i200: Plan begin, 3 packages, action:
Install[186C:1C04][2014-03-07T14:57:35]w321: Skipping dependency
registration on package with no dependency providers:
NetFx40Web[186C:1C04][2014-03-07T14:57:35]i000: Setting string variable
'WixBundleRollbackLog_MyApplication1' to value
'C:\Users\bk1234\AppData\Local\Temp\TestApplication_2.0_UAT_20140307145733_0_MyApplication1_rollback.log'[186C:1C04][2014-03-07T14:57:35]i000:
Setting string variable 'WixBundleLog_MyApplication1' to value
'C:\Users\bk1234\AppData\Local\Temp\TestApplication_2.0_UAT_20140307145733_0_MyApplication1.log'[186C:1C04][2014-03-07T14:57:35]i000:
Setting string variable 'WixBundleRollbackLog_MyApplication2' to value
'C:\Users\bk1234\AppData\Local\Temp\TestApplication_2.0_UAT_20140307145733_1_MyApplication2_rollback.log'[186C:1C04][2014-03-07T14:57:35]i000:
Setting string variable 'WixBundleLog_MyApplication2' to value
'C:\Users\bk1234\AppData\Local\Temp\TestApplication_2.0_UAT_20140307145733_1_MyApplication2.log'[186C:1C04][2014-03-07T14:57:35]i201:
Planned package: NetFx40Web, state: Present, default requested: Present, ba
requested: Present, execute: None, rollback: None, cache: No, uncache: No,
dependency: None[186C:1C04][2014-03-07T14:57:35]i201: Planned package:
MyApplication1, state: Absent, default requested: Present, ba requested:
Present, execute: Install, rollback: Uninstall, cache: Yes, uncache: No,
dependency: Register[186C:1C04][2014-03-07T14:57:35]i201: Planned package:
MyApplication2, state: Absent, default requested: Present, ba requested:
Present, execute: Install, rollback: Uninstall, cache: Yes, uncache: No,
dependency: Register[186C:1C04][2014-03-07T14:57:35]i207: Planned related
bundle: {f430f193-dd47-4e2d-853b-213df35b50ac}, type: Upgrade, default
requested: Absent, ba requested: Absent, execute: Uninstall, rollback:
Install, dependency: None[186C:1C04][2014-03-07T14:57:35]i299: Plan
complete, result: 0x0[186C:1C04][2014-03-07T14:57:35]i300: Apply
begin[186C:1C04][2014-03-07T14:57:35]i000: Caching bundle from:
'C:\Users\bk1234\AppData\Local\Temp\{7994b82b-b23f-43f9-b41a-ccd24708ba2b}\.be\ApplicationBootstrapper.exe'
to: 'C:\Users\bk1234\AppData\Local\Package
Cache\{7994b82b-b23f-43f9-b41a-ccd24708ba2b}\ApplicationBootstrapper.exe'[186C:1C04][2014-03-07T14:57:35]i320:
Registering bundle dependency provider:
{7994b82b-b23f-43f9-b41a-ccd24708ba2b}, version:
2.0.13300.0[186C:2A08][2014-03-07T14:57:36]i305: Verified acquired payload:
MyApplication1 at path: C:\Users\bk1234\AppData\Local\Package
Cache\.unverified\MyApplication1, moving to:
C:\Users\bk1234\AppData\Local\Package
Cache\{40BD9882-7F63-4EA7-87FC-C89F9C0DCA95}v2.0.13300\Package1Installer.msi.[186C:2A08][2014-03-07T14:57:36]i305:
Verified acquired payload: MyApplication2 at path:
C:\Users\bk1234\AppData\Local\Package Cache\.unverified\MyApplication2,
moving to: C:\Users\bk1234\AppData\Local\Package
Cache\{9ACECACE-7130-43DC-8284-69E376C07A94}v2.0.13300\ApplicationInstaller.msi.[186C:1C04][2014-03-07T14:57:36]i323:
Registering package dependency provider:
{40BD9882-7F63-4EA7-87FC-C89F9C0DCA95}, version: 2.0.13300, package:
MyApplication1[186C:1C04][2014-03-07T14:57:36]i301: Applying execute
package: MyApplication1, action: Install, path:
C:\Users\bk1234\AppData\Local\Package
Cache\{40BD9882-7F63-4EA7-87FC-C89F9C0DCA95}v2.0.13300\Package1Installer.msi,
arguments: ' ARPSYSTEMCOMPONENT=1
MSIFASTINSTALL=7'[186C:1C04][2014-03-07T14:57:39]i319: Applied execute
package: MyApplication1, result: 0x0, restart:
None[186C:1C04][2014-03-07T14:57:39]i325: Registering dependency:
{7994b82b-b23f-43f9-b41a-ccd24708ba2b} on package 

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 Absent, as in, it didn't find an
existing install. Hmm...in your custom bootstrapper's DetectPackageComplete
method, are you looking for the name of your MSI, such as:

protected void DetectPackageComplete(object sender,
DetectPackageCompleteEventArgs e)
{
  if (e.PackageId.Equals(MyApplication1.msi, StringComparison.Ordinal))
  {
// assuming you've set up an InstallState enum like the WiX bootstrapper
has...
this.State = e.State == PackageState.Present ? InstallState.Present :
InstallState.NotPresent;
  }
}





--
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-tp7593116p7593197.html
Sent from the wix-users mailing list archive at Nabble.com.

--
Subversion Kills Productivity. Get off Subversion  Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951iu=/4140/ostg.clktrk
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


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;
  }
}
else if (e.State == PackageState.Absent)
{
   HasInstalledAlready = false;
}
else if (e.State == PackageState.Obsolete)
{
// Display higher version is already installed
}
else
{
 // Display message not supported state
}
}



--
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-tp7593116p7593198.html
Sent from the wix-users mailing list archive at Nabble.com.

--
Subversion Kills Productivity. Get off Subversion  Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951iu=/4140/ostg.clktrk
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


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: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Wix-Bootstrapper-is-not-removing-older-version-from-Control-Panel-Uninstall-Program-tp7593116p7593200.html
Sent from the wix-users mailing list archive at Nabble.com.

--
Subversion Kills Productivity. Get off Subversion  Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951iu=/4140/ostg.clktrk
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


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 I started with lower version, the results for e.State are:
NetFx40Web : Present
MyApplication1: Absent
MyApplication2: Absent

The states are same for the higher version too during the upgrade.







--
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-tp7593116p7593204.html
Sent from the wix-users mailing list archive at Nabble.com.

--
Subversion Kills Productivity. Get off Subversion  Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951iu=/4140/ostg.clktrk
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


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 you able
to post any of your bundle's markup?



--
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-tp7593116p7593205.html
Sent from the wix-users mailing list archive at Nabble.com.

--
Subversion Kills Productivity. Get off Subversion  Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951iu=/4140/ostg.clktrk
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


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:
{08b6d940-91c2-46cb-ace1-1ca00c72c0d8} because it is registered to a
different bundle: (null)
[06A8:2378][2014-03-07T16:27:29]e000: Error 0x80070057: Invalid package
current state result encountered during plan: 0
[06A8:2378][2014-03-07T16:27:29]e000: Error 0x80070057: Failed to calculate
plan actions for package: MyApplication1
[06A8:2378][2014-03-07T16:27:29]e000: Error 0x80070057: Failed to plan
execute package.
[06A8:2378][2014-03-07T16:27:29]e000: Error 0x80070057: Failed to process
package.
[06A8:2378][2014-03-07T16:27:29]e000: Error 0x80070057: Failed to plan
packages.
[06A8:2378][2014-03-07T16:27:29]i299: Plan complete, result: 0x80070057
[06A8:2378][2014-03-07T16:27:29]i300: Apply begin
[06A8:2378][2014-03-07T16:27:29]i399: Apply complete, result: 0x0, restart:
None, ba requested restart:  No
[06A8:2378][2014-03-07T16:27:29]i500: Shutting down, exit code: 0x0




--
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-tp7593116p7593206.html
Sent from the wix-users mailing list archive at Nabble.com.

--
Subversion Kills Productivity. Get off Subversion  Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951iu=/4140/ostg.clktrk
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


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
Payload SourceFile=..\Installer.Library\BootstrapperCore.config/
Payload SourceFile=..\intermediate\Installer.Library.dll/
Payload SourceFile=C:\Program Files (x86)\WiX Toolset
v3.8\SDK\Microsoft.Deployment.WindowsInstaller.dll/
  /BootstrapperApplicationRef
  
  Chain
PackageGroupRef Id='NetFx40Web' /
MsiPackage 
SourceFile=..\intermediate\MyApplication1Installer.msi Id=MyApplication1
Cache=yes Visible=no Vital=yes  /
MsiPackage SourceFile=..\intermediate\MyApplication2Installer.msi
Id=MyApplication2 Cache=yes Visible=no After=MyApplication1 /
  /Chain

/Bundle



--
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-tp7593116p7593207.html
Sent from the wix-users mailing list archive at Nabble.com.

--
Subversion Kills Productivity. Get off Subversion  Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951iu=/4140/ostg.clktrk
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


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: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Wix-Bootstrapper-is-not-removing-older-version-from-Control-Panel-Uninstall-Program-tp7593116p7593208.html
Sent from the wix-users mailing list archive at Nabble.com.

--
Subversion Kills Productivity. Get off Subversion  Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951iu=/4140/ostg.clktrk
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


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.

--
Subversion Kills Productivity. Get off Subversion  Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951iu=/4140/ostg.clktrk
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users