Hello, I have a question regarding bundle patching scenario in custom MBA.
I have RTM bundle v.1.0.0.226 with RTM msi:
<Bundle Name="Setup" Version="1.0.0.226" Manufacturer="ACME" 
UpgradeCode="{1313AB3D-4133-4E79-8639-AB76C22F1AA3}">

<RelatedBundle Id="{1313AB3D-4133-4E79-8639-AB76C22F1AA3}" Action="Upgrade"/>

and Patch bundle v.1.0.0.1 with MSP patch:
<Bundle Name="Setup Hotfix" ParentName ="Setup" Version="1.0.0.234" 
Manufacturer="ACME" UpgradeCode="{631CC30C-F3D8-4397-BE83-CF193C098907}">

<RelatedBundle Id="{1313AB3D-4133-4E79-8639-AB76C22F1AA3}" Action="Patch"/>
Patch installs as expected. Now I want to implement patch scenario in my 
Bootstrapper Application code, i.e. to determine that currently installing 
bundle is patching its baseline. I tried to use DetectRelatedBundle event to 
get RelatedOperation, but it doesn't contain 'Patch' operation. Also, when 
patch bundle detects baseline patch, it marks it as "Dependent" (log: Planned 
related bundle: {39319fb3-8c6e-4051-b925-c6b5b398ffc1}, type: Dependent), 
though I think it should mark it as "Patch". Is it expected behavior or I 
missed something?

Here is Patch bundle install log:

[39BC:254C][2013-09-02T10:46:47]: Burn v3.6.3303.0, Windows v6.2 (Build 9200: 
Service Pack 0), path: Patch.exe, cmdline: '-passive'
[39BC:254C][2013-09-02T10:46:47]: Setting string variable 'WixBundleLog' to 
value '%Temp%\Setup_Hotfix_20130902104647.log'
[39BC:254C][2013-09-02T10:46:47]: Setting string variable 
'WixBundleOriginalSource' to value 'Patch.exe'
[39BC:254C][2013-09-02T10:46:47]: Setting string variable 'WixBundleName' to 
value 'Setup Hotfix'
[39BC:254C][2013-09-02T10:46:47]: Loading managed bootstrapper application.
[39BC:254C][2013-09-02T10:46:47]: Creating BA thread to run asynchronously.
[39BC:37F0][2013-09-02T10:46:47]: Initializing RootViewModel.
[39BC:254C][2013-09-02T10:46:47]: Detect 2 packages
[39BC:254C][2013-09-02T10:46:47]: Setting string variable 'NETFRAMEWORK40' to 
value '1'
[39BC:254C][2013-09-02T10:46:47]: Calculating patch applicability for target 
product code: {843BF819-E01A-4F1F-93E2-832A4307E9F4}, context: Machine
[39BC:254C][2013-09-02T10:46:47]: Detected related bundle: 
{39319fb3-8c6e-4051-b925-c6b5b398ffc1}, type: Dependent, scope: PerMachine, 
version: 1.0.0.226,operation: None
[39BC:254C][2013-09-02T10:46:47]: Condition 'NETFRAMEWORK40' evaluates to true.
[39BC:254C][2013-09-02T10:46:47]: Detected package: NetFx40Web, state: Present, 
cached: None
[39BC:254C][2013-09-02T10:46:47]: Detected package: PatchMsi, state: Absent, 
cached: None
[39BC:254C][2013-09-02T10:46:47]: Detected package: PatchMsi target: 
{843BF819-E01A-4F1F-93E2-832A4307E9F4}, state: Absent
[39BC:254C][2013-09-02T10:46:47]: Detect complete, result: 0x0
[39BC:254C][2013-09-02T10:46:48]: Plan 2 packages, action: Install
[39BC:254C][2013-09-02T10:46:48]: Skipping dependency registration on package 
with no dependency providers: NetFx40Web
[39BC:254C][2013-09-02T10:46:48]: Skipping dependency registration on package 
with no dependency providers: PatchMsi
[39BC:254C][2013-09-02T10:46:48]: Setting string variable 
'WixBundleLog_PatchMsi' to value 
'%Temp%\Setup_Hotfix_20130902104647_{843BF819-E01A-4F1F-93E2-832A4307E9F4}_0_PatchMsi.log'
[39BC:254C][2013-09-02T10:46:48]: Setting string variable 
'WixBundleRollbackLog_PatchMsi' to value 
'%Temp%\Setup_Hotfix_20130902104647_{843BF819-E01A-4F1F-93E2-832A4307E9F4}_0_PatchMsi_rollback.log'
[39BC:254C][2013-09-02T10:46:48]: Planned package: NetFx40Web, state: Present, 
default requested: Present, ba requested: Present, execute: None, 
rollback:None, cache: No, uncache: No, dependency: None
[39BC:254C][2013-09-02T10:46:48]: Planned package: PatchMsi, state: Absent, 
default requested: Present, ba requested: Present, execute: Install, 
rollback:Uninstall, cache: Yes, uncache: No, dependency: None
[39BC:254C][2013-09-02T10:46:48]: Planned related bundle: 
{39319fb3-8c6e-4051-b925-c6b5b398ffc1}, type: Dependent, default requested: 
None, ba requested:None, execute: None, rollback: None, dependency: None
[39BC:254C][2013-09-02T10:46:48]: Plan complete, result: 0x0
[39BC:254C][2013-09-02T10:46:48]: Apply begin
[3134:3AF8][2013-09-02T10:46:50]: Creating a system restore point.
[3134:3AF8][2013-09-02T10:46:50]: Created a system restore point.
[3134:3AF8][2013-09-02T10:46:50]: Caching bundle from: 
'%Temp%\{e21660e1-e54e-465a-960d-6bb9f21a5677}\.be\Patch.exe' to: 
'C:\ProgramData\Package Cache\{e21660e1-e54e-465a-960d-6bb9f21a5677}\Patch.exe'
[3134:3AF8][2013-09-02T10:46:50]: Registering bundle dependency provider: 
{e21660e1-e54e-465a-960d-6bb9f21a5677}, version: 1.0.0.234
[3134:3AF8][2013-09-02T10:46:50]: Registering dependency: 
{e21660e1-e54e-465a-960d-6bb9f21a5677} on package provider: 
{39319fb3-8c6e-4051-b925-c6b5b398ffc1}, package: 
{39319fb3-8c6e-4051-b925-c6b5b398ffc1}
[3134:0BE0][2013-09-02T10:46:50]: Verified acquired payload: PatchMsi at path: 
C:\ProgramData\Package Cache\.unverified\PatchMsi, moving to: 
C:\ProgramData\Package Cache\{AB24930B-1879-4013-B80D-237DFD3D02B3}\Patch.msp.
[3134:3AF8][2013-09-02T10:46:50]: Applying package: PatchMsi, target: 
{843BF819-E01A-4F1F-93E2-832A4307E9F4}, action: Install, path: 
C:\ProgramData\Package Cache\{AB24930B-1879-4013-B80D-237DFD3D02B3}\Patch.msp, 
arguments: '(null)'
[39BC:254C][2013-09-02T10:46:57]: Applied execute package: PatchMsi, result: 
0x0, restart: None
[39BC:254C][2013-09-02T10:46:57]: Apply complete, result: 0x0, restart: None, 
ba requested restart:  No
[39BC:254C][2013-09-02T10:46:59]: Shutting down, exit code: 0x0
[39BC:254C][2013-09-02T10:46:59]: Variable: NETFRAMEWORK40 = 1
[39BC:254C][2013-09-02T10:46:59]: Variable: VersionNT64 = 6.2.0.0
[39BC:254C][2013-09-02T10:46:59]: Variable: WixBundleAction = 4
[39BC:254C][2013-09-02T10:46:59]: Variable: WixBundleElevated = 1
[39BC:254C][2013-09-02T10:46:59]: Variable: WixBundleLog = 
%Temp%\Setup_Hotfix_20130902104647.log
[39BC:254C][2013-09-02T10:46:59]: Variable: WixBundleLog_PatchMsi = 
%Temp%\Setup_Hotfix_20130902104647_{843BF819-E01A-4F1F-93E2-832A4307E9F4}_0_PatchMsi.log
[39BC:254C][2013-09-02T10:46:59]: Variable: WixBundleName = Setup Hotfix
[39BC:254C][2013-09-02T10:46:59]: Variable: WixBundleOriginalSource = Patch.exe
[39BC:254C][2013-09-02T10:46:59]: Variable: WixBundleProviderKey = 
{e21660e1-e54e-465a-960d-6bb9f21a5677}
[39BC:254C][2013-09-02T10:46:59]: Variable: WixBundleRollbackLog_PatchMsi = 
%Temp%\Setup_Hotfix_20130902104647_{843BF819-E01A-4F1F-93E2-832A4307E9F4}_0_PatchMsi_rollback.log
[39BC:254C][2013-09-02T10:46:59]: Variable: WixBundleTag =
[39BC:254C][2013-09-02T10:46:59]: Variable: WixBundleVersion = 1.0.0.234
[39BC:254C][2013-09-02T10:46:59]: Exit code: 0x0, restarting: No

Thanks for any help,
Vitaly.
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to