bootstrapper - Wix doesn't remove previous version of burn exe during major upgrade -
i have created wix exe using burn bootstrapper. when try major upgrade on it, new version gets installed. features missing in new upgrade removed existing folder structure. in "add or remove programs" can still find both installations. have incremented version 1.0.0.0 1.0.1.0 in bootstrapper project's bundle.wxs file. have incremented version in setup project's product element 1.0.0.0 1.0.1.0. didn't change upgrade code in either of these files. created new guid product id in setup project's product.wxs. doing wrong here? why previous version still there in add or remove programs? please advice.
below bootstrapper project's bundle.wxs.
<wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util="http://schemas.microsoft.com/wix/utilextension" xmlns:bal="http://schemas.microsoft.com/wix/balextension"> <bundle name="kube installer" version="1.0.0.0" manufacturer="zone24x7" upgradecode="da4cfb28-4441-43be-9e8e-0e3c92206324"> <bootstrapperapplicationref id="managedbootstrapperapplicationhost" > <payload sourcefile="..\customba\bootstrappercore.config"/> <payload sourcefile="..\customba\bin\release\customba.dll"/> <payload sourcefile="..\customba\bin\release\galasoft.mvvmlight.wpf4.dll"/> <payload sourcefile="c:\program files (x86)\wix toolset v3.8\sdk\microsoft.deployment.windowsinstaller.dll"/> </bootstrapperapplicationref> <wixvariable id="wixmbaprereqlicenseurl" value=""/> <wixvariable id="wixmbaprereqpackageid" value=""/> <chain> <msipackage sourcefile="..\kubeinstaller\bin\release\kubeinstaller.msi" id="kubeinstallationpackageid" cache="yes" visible="no"/> </chain> </bundle> </wix>
below setup project's product.wxs.
<?xml version="1.0" encoding="utf-8"?> <wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <product id="70f65e5d-f307-4155-8847-9e5a66024de7" name="installer" language="1033" version="1.0.0.0" manufacturer="zone24x7" upgradecode="e90569b5-372e-45bb-b101-58e0b75ab5c7"> <package installerversion="200" compressed="yes" installscope="permachine" platform="x64"/> <property id="java_current_version64"> <registrysearch id="jre_current_version_regsearch64" root="hklm" key="software\javasoft\java runtime environment" name="currentversion" type="raw" win64="yes" /> </property> <majorupgrade downgradeerrormessage="a newer version of [productname] installed." /> <mediatemplate /> <feature id="productfeature" title="installer" level="1" > <componentgroupref id="newfilesgroup2"/> </feature> </product> <fragment> <directory id="targetdir" name="sourcedir"> <directory id="programfilesfolder"> <directory id="installdir" name="installer"> <directory id="myprogramdir2" name="kksdkservice" /> </directory> </directory> </directory> </fragment> <fragment> <directoryref id="myprogramdir2" /> </fragment> <fragment> <componentgroup id="newfilesgroup2"> <component id="cmpb40d9bc07a10f4c7ca1d590ea22bc096" directory="myprogramdir2" guid="6cef1581-d3b4-43ec-a561-8e35cfd9ab67"> <file id="filcd18463f625bd1e6dabff218e37514d9" keypath="yes" source="$(var.mydir2)\barcodescannerplugin.jar" /> </component> <component id="cmpcea7123b4b5bd564dc3955797750bdbd" directory="myprogramdir2" guid="0828f282-7f66-4550-9d8b-b9dd914f50ba"> <file id="fil1c3696a75f0bd878925fca64111719ce" keypath="yes" source="$(var.mydir2)\kksdk.jar" /> </component> <component id="cmp754951538ea86c396458e93f7c5ee8d8" directory="myprogramdir2" guid="83532ef6-0ae6-4b9c-824e-7309e4e97bfa"> <file id="fil9eeabe714f6af741be3d5aa5b5209994" keypath="yes" source="$(var.mydir2)\sdktestplugin.jar" /> </component> <component id="cmp89babcfc5524994a65c4664ea4face6c" directory="myprogramdir2" guid="3c7a05ce-f786-4e23-80b4-2fcb9abb314c"> <file id="fil65c3299403b5e2113a60782d09d56c54" keypath="yes" source="$(var.mydir2)\profilemanagerplugin.jar" /> </component> <component id="cmpcb38c422b08f1ca1b1e85b1ea87cc1e6" directory="myprogramdir2" guid="66766cbb-a4cd-46c9-94f5-79410a8981c2"> <file id="filc9b025cb143bd34f87c0041c5d550955" keypath="yes" source="$(var.mydir2)\rfidscannerplugin.jar" /> </component> <component id="cmp0f9e9ea430641a0340428b2a9e45e672" directory="myprogramdir2" guid="203631e3-581b-49c4-8d38-2b2d1cb9ddcd"> <file id="filca701380aeb33971329784a6c3186684" keypath="yes" source="$(var.mydir2)\websocketserverplugin.jar" /> </component> </componentgroup> </fragment> </wix>
below class handles installer related actions.
public class mainviewmodel : viewmodelbase { //constructor public mainviewmodel(bootstrapperapplication bootstrapper) { this.isthinking = false; this.bootstrapper = bootstrapper; this.bootstrapper.applycomplete += this.onapplycomplete; this.bootstrapper.detectpackagecomplete += this.ondetectpackagecomplete; this.bootstrapper.plancomplete += this.onplancomplete; this.bootstrapper.cacheacquireprogress += (sender, args) => { this.cacheprogress = args.overallpercentage; this.progress = (this.cacheprogress + this.executeprogress) / 2; }; this.bootstrapper.executeprogress += (sender, args) => { this.executeprogress = args.overallpercentage; this.progress = (this.cacheprogress + this.executeprogress) / 2; }; } #region properties private bool installenabled; public bool installenabled { { return installenabled; } set { installenabled = value; raisepropertychanged("installenabled"); } } private bool uninstallenabled; public bool uninstallenabled { { return uninstallenabled; } set { uninstallenabled = value; raisepropertychanged("uninstallenabled"); } } private bool isthinking; public bool isthinking { { return isthinking; } set { isthinking = value; raisepropertychanged("isthinking"); } } private int progress; public int progress { { return progress; } set { this.progress = value; raisepropertychanged("progress"); } } private int cacheprogress; private int executeprogress; public bootstrapperapplication bootstrapper { get; private set; } #endregion //properties #region methods public void installexecute() { isthinking = true; bootstrapper.engine.plan(launchaction.install); } public void uninstallexecute() { isthinking = true; bootstrapper.engine.plan(launchaction.uninstall); } public void exitexecute() { customba.bootstrapperdispatcher.invokeshutdown(); } /// <summary> /// method gets invoked when bootstrapper applycomplete event fired. /// called after bundle installation has completed. make sure updated view. /// </summary> private void onapplycomplete(object sender, applycompleteeventargs e) { isthinking = false; installenabled = false; uninstallenabled = false; this.progress = 100; exitexecute(); } /// <summary> /// method gets invoked when bootstrapper detectpackagecomplete event fired. /// checks packageid , sets installation scenario. packageid id /// specified in 1 of package elements (msipackage, exepackage, msppackage, /// msupackage) in wix bundle. /// </summary> private void ondetectpackagecomplete(object sender, detectpackagecompleteeventargs e) { if (e.packageid == "kubeinstallationpackageid") { if (e.state == packagestate.absent) installenabled = true; else if (e.state == packagestate.present) uninstallenabled = true; } } /// <summary> /// method gets invoked when bootstrapper plancomplete event fired. /// if planning successful, instructs bootstrapper engine /// install packages. /// </summary> private void onplancomplete(object sender, plancompleteeventargs e) { if (e.status >= 0) bootstrapper.engine.apply(system.intptr.zero); } #endregion //methods #region relaycommands private relaycommand installcommand; public relaycommand installcommand { { if (installcommand == null) installcommand = new relaycommand(() => installexecute(), () => installenabled == true); return installcommand; } } private relaycommand uninstallcommand; public relaycommand uninstallcommand { { if (uninstallcommand == null) uninstallcommand = new relaycommand(() => uninstallexecute(), () => uninstallenabled == true); return uninstallcommand; } } private relaycommand exitcommand; public relaycommand exitcommand { { if (exitcommand == null) exitcommand = new relaycommand(() => exitexecute()); return exitcommand; } } #endregion //relaycommands }
log file 1 :
[0980:3888][2016-04-22t16:49:18]i001: burn v3.10.2.2516, windows v6.3 (build 9600: service pack 0), path: c:\programdata\package cache\{71ae2d4e-5c00-442b-9ea1-00cec549800d}\kubeplatformsetup.exe [0980:3888][2016-04-22t16:49:18]i003: bundle being run related bundle type 'upgrade'. [0980:3888][2016-04-22t16:49:18]i009: command line: '-uninstall -quiet -burn.related.upgrade -burn.ancestors={f57e276b-2b99-4f55-9566-88f47c0a065c} -burn.embedded burnpipe.{22eb703c-0051-46e7-8b68-ba209900f6f7} {b0b02376-a988-437a-92a4-6116cfbc5526} 13952' [0980:3888][2016-04-22t16:49:18]i000: setting string variable 'wixbundlelog' value 'c:\users\macila~1\appdata\local\temp\kubeplatformsetup_20160422164918.log' [0980:3888][2016-04-22t16:49:18]i000: setting string variable 'wixbundlemanufacturer' value 'zone24x7' [0980:3888][2016-04-22t16:49:18]i000: loading managed bootstrapper application. [0980:3888][2016-04-22t16:49:18]i000: creating ba thread run asynchronously. [0980:37b4][2016-04-22t16:49:18]i000: launching custom testba ux [0980:3888][2016-04-22t16:49:19]i100: detect begin, 2 packages [0980:3888][2016-04-22t16:49:19]i102: detected related bundle: {f57e276b-2b99-4f55-9566-88f47c0a065c}, type: upgrade, scope: permachine, version: 1.0.1.0, operation: none [0980:3888][2016-04-22t16:49:19]i103: detected related package: {8c442a83-f559-488c-8cc4-21b1626f4b8e}, scope: permachine, version: 1.0.1.0, language: 0 operation: downgrade [0980:3888][2016-04-22t16:49:19]i103: detected related package: {8201dd23-40a5-418b-b016-4d29be6f010b}, scope: permachine, version: 1.0.1.0, language: 0 operation: downgrade [0980:3888][2016-04-22t16:49:19]i101: detected package: kubeupdaterserviceinstallerid, state: obsolete, cached: complete [0980:3888][2016-04-22t16:49:19]i101: detected package: mosquittoinstallerid, state: obsolete, cached: complete [0980:3888][2016-04-22t16:49:19]i199: detect complete, result: 0x0 [0980:3888][2016-04-22t16:51:43]i500: shutting down, exit code: 0x0 [0980:3888][2016-04-22t16:51:43]i410: variable: wixbundleaction = 3 [0980:3888][2016-04-22t16:51:43]i410: variable: wixbundleelevated = 1 [0980:3888][2016-04-22t16:51:43]i410: variable: wixbundleinstalled = 1 [0980:3888][2016-04-22t16:51:43]i410: variable: wixbundlelastusedsource = g:\projects\kube2\kube-installer\kubeplatformsetup\kubeplatformsetup\bin\release\ [0980:3888][2016-04-22t16:51:43]i410: variable: wixbundlelog = c:\users\macila~1\appdata\local\temp\kubeplatformsetup_20160422164918.log [0980:3888][2016-04-22t16:51:43]i410: variable: wixbundlemanufacturer = zone24x7 [0980:3888][2016-04-22t16:51:43]i410: variable: wixbundlename = kubeplatformsetup [0980:3888][2016-04-22t16:51:43]i410: variable: wixbundleoriginalsource = g:\projects\kube2\kube-installer\kubeplatformsetup\kubeplatformsetup\bin\release\kubeplatformsetup.exe [0980:3888][2016-04-22t16:51:43]i410: variable: wixbundleoriginalsourcefolder = g:\projects\kube2\kube-installer\kubeplatformsetup\kubeplatformsetup\bin\release\ [0980:3888][2016-04-22t16:51:43]i410: variable: wixbundleproviderkey = {71ae2d4e-5c00-442b-9ea1-00cec549800d} [0980:3888][2016-04-22t16:51:43]i410: variable: wixbundletag = [0980:3888][2016-04-22t16:51:43]i410: variable: wixbundleversion = 1.0.0.0 [0980:3888][2016-04-22t16:51:43]i007: exit code: 0x0, restarting: no
log file 2:
[3204:32b0][2016-04-22t16:48:38]i001: burn v3.10.2.2516, windows v6.3 (build 9600: service pack 0), path: c:\users\macila~1\appdata\local\temp\{e6470133-8efe-49de-8561-a335091d3464}\.cr\kubeplatformsetup.exe [3204:32b0][2016-04-22t16:48:38]i009: command line: '-burn.clean.room=g:\projects\kube2\kube-installer\kubeplatformsetup\kubeplatformsetup\bin\release\kubeplatformsetup.exe' [3204:32b0][2016-04-22t16:48:38]i000: setting string variable 'wixbundleoriginalsource' value 'g:\projects\kube2\kube-installer\kubeplatformsetup\kubeplatformsetup\bin\release\kubeplatformsetup.exe' [3204:32b0][2016-04-22t16:48:38]i000: setting string variable 'wixbundleoriginalsourcefolder' value 'g:\projects\kube2\kube-installer\kubeplatformsetup\kubeplatformsetup\bin\release\' [3204:32b0][2016-04-22t16:48:38]i000: setting string variable 'wixbundlelog' value 'c:\users\macila~1\appdata\local\temp\kubeplatformsetup_20160422164838.log' [3204:32b0][2016-04-22t16:48:38]i000: setting string variable 'wixbundlename' value 'kubeplatformsetup' [3204:32b0][2016-04-22t16:48:38]i000: setting string variable 'wixbundlemanufacturer' value 'zone24x7' [3204:32b0][2016-04-22t16:48:38]i000: loading managed bootstrapper application. [3204:32b0][2016-04-22t16:48:38]i000: creating ba thread run asynchronously. [3204:3a5c][2016-04-22t16:48:38]i000: launching custom testba ux [3204:32b0][2016-04-22t16:48:39]i100: detect begin, 2 packages [3204:32b0][2016-04-22t16:48:39]i102: detected related bundle: {71ae2d4e-5c00-442b-9ea1-00cec549800d}, type: upgrade, scope: permachine, version: 1.0.0.0, operation: majorupgrade [3204:32b0][2016-04-22t16:48:39]i103: detected related package: {398c5992-4e70-4844-8063-48639892bacf}, scope: permachine, version: 1.0.0.0, language: 0 operation: majorupgrade [3204:32b0][2016-04-22t16:48:39]i103: detected related package: {392d3e7f-6fcb-4efd-a40f-b2f7c2cb6d44}, scope: permachine, version: 1.0.0.0, language: 0 operation: majorupgrade [3204:32b0][2016-04-22t16:48:39]i101: detected package: kubeupdaterserviceinstallerid, state: absent, cached: none [3204:32b0][2016-04-22t16:48:39]i101: detected package: mosquittoinstallerid, state: absent, cached: none [3204:32b0][2016-04-22t16:48:39]i199: detect complete, result: 0x0 [3204:32b0][2016-04-22t16:48:40]i200: plan begin, 2 packages, action: install [3204:32b0][2016-04-22t16:48:40]i000: setting string variable 'wixbundlerollbacklog_kubeupdaterserviceinstallerid' value 'c:\users\macila~1\appdata\local\temp\kubeplatformsetup_20160422164838_000_kubeupdaterserviceinstallerid_rollback.log' [3204:32b0][2016-04-22t16:48:40]i000: setting string variable 'wixbundlelog_kubeupdaterserviceinstallerid' value 'c:\users\macila~1\appdata\local\temp\kubeplatformsetup_20160422164838_000_kubeupdaterserviceinstallerid.log' [3204:32b0][2016-04-22t16:48:40]i000: setting string variable 'wixbundlerollbacklog_mosquittoinstallerid' value 'c:\users\macila~1\appdata\local\temp\kubeplatformsetup_20160422164838_001_mosquittoinstallerid_rollback.log' [3204:32b0][2016-04-22t16:48:40]i000: setting string variable 'wixbundlelog_mosquittoinstallerid' value 'c:\users\macila~1\appdata\local\temp\kubeplatformsetup_20160422164838_001_mosquittoinstallerid.log' [3204:32b0][2016-04-22t16:48:40]i201: planned package: kubeupdaterserviceinstallerid, state: absent, default requested: present, ba requested: present, execute: install, rollback: uninstall, cache: yes, uncache: no, dependency: register [3204:32b0][2016-04-22t16:48:40]i201: planned package: mosquittoinstallerid, state: absent, default requested: present, ba requested: present, execute: install, rollback: uninstall, cache: yes, uncache: no, dependency: register [3204:32b0][2016-04-22t16:48:40]i207: planned related bundle: {71ae2d4e-5c00-442b-9ea1-00cec549800d}, type: upgrade, default requested: absent, ba requested: absent, execute: uninstall, rollback: install, dependency: none [3204:32b0][2016-04-22t16:48:40]i299: plan complete, result: 0x0 [3204:32b0][2016-04-22t16:48:40]i300: apply begin [3204:32b0][2016-04-22t16:48:40]i010: launching elevated engine process. [3204:32b0][2016-04-22t16:48:40]i011: launched elevated engine process. [3204:32b0][2016-04-22t16:48:40]i012: connected elevated engine. [3680:38d0][2016-04-22t16:48:40]i358: pausing automatic updates. [3680:38d0][2016-04-22t16:48:40]i359: paused automatic updates. [3680:38d0][2016-04-22t16:48:40]i360: creating system restore point. [3680:38d0][2016-04-22t16:48:40]i361: created system restore point. [3680:38d0][2016-04-22t16:48:40]i370: session begin, registration key: software\microsoft\windows\currentversion\uninstall\{f57e276b-2b99-4f55-9566-88f47c0a065c}, options: 0x7, disable resume: no [3680:38d0][2016-04-22t16:48:40]i000: caching bundle from: 'c:\users\macila~1\appdata\local\temp\{89ccd5c8-eb48-4fb3-8fb5-32fc9eeab83f}\.be\kubeplatformsetup.exe' to: 'c:\programdata\package cache\{f57e276b-2b99-4f55-9566-88f47c0a065c}\kubeplatformsetup.exe' [3680:38d0][2016-04-22t16:48:40]i320: registering bundle dependency provider: {f57e276b-2b99-4f55-9566-88f47c0a065c}, version: 1.0.1.0 [3680:38d0][2016-04-22t16:48:40]i371: updating session, registration key: software\microsoft\windows\currentversion\uninstall\{f57e276b-2b99-4f55-9566-88f47c0a065c}, resume: active, restart initiated: no, disable resume: no [3204:2b40][2016-04-22t16:48:40]i336: acquiring container: wixattachedcontainer, copy from: g:\projects\kube2\kube-installer\kubeplatformsetup\kubeplatformsetup\bin\release\kubeplatformsetup.exe [3204:2b40][2016-04-22t16:48:40]i000: setting string variable 'wixbundlelastusedsource' value 'g:\projects\kube2\kube-installer\kubeplatformsetup\kubeplatformsetup\bin\release\' [3680:350c][2016-04-22t16:48:40]i305: verified acquired payload: kubeupdaterserviceinstallerid @ path: c:\programdata\package cache\.unverified\kubeupdaterserviceinstallerid, moving to: c:\programdata\package cache\{8c442a83-f559-488c-8cc4-21b1626f4b8e}v1.0.1.0\kubeupdaterserviceinstaller.msi. [3680:350c][2016-04-22t16:48:40]i305: verified acquired payload: cabdf68cf429512a78026d040f0fb13a50b @ path: c:\programdata\package cache\.unverified\cabdf68cf429512a78026d040f0fb13a50b, moving to: c:\programdata\package cache\{8c442a83-f559-488c-8cc4-21b1626f4b8e}v1.0.1.0\cab1.cab. [3680:350c][2016-04-22t16:48:40]i305: verified acquired payload: mosquittoinstallerid @ path: c:\programdata\package cache\.unverified\mosquittoinstallerid, moving to: c:\programdata\package cache\{8201dd23-40a5-418b-b016-4d29be6f010b}v1.0.1.0\mosquittoinstaller.msi. [3680:350c][2016-04-22t16:48:40]i305: verified acquired payload: cab657e45b8c9a7ef24c9a74563c2fa6eb3 @ path: c:\programdata\package cache\.unverified\cab657e45b8c9a7ef24c9a74563c2fa6eb3, moving to: c:\programdata\package cache\{8201dd23-40a5-418b-b016-4d29be6f010b}v1.0.1.0\cab1.cab. [3680:38d0][2016-04-22t16:48:40]i323: registering package dependency provider: {8c442a83-f559-488c-8cc4-21b1626f4b8e}, version: 1.0.1.0, package: kubeupdaterserviceinstallerid [3680:38d0][2016-04-22t16:48:40]i301: applying execute package: kubeupdaterserviceinstallerid, action: install, path: c:\programdata\package cache\{8c442a83-f559-488c-8cc4-21b1626f4b8e}v1.0.1.0\kubeupdaterserviceinstaller.msi, arguments: ' arpsystemcomponent="1" msifastinstall="7" installlocation="g:\"' [3204:32b0][2016-04-22t16:49:17]i319: applied execute package: kubeupdaterserviceinstallerid, result: 0x0, restart: none [3680:38d0][2016-04-22t16:49:17]i325: registering dependency: {f57e276b-2b99-4f55-9566-88f47c0a065c} on package provider: {8c442a83-f559-488c-8cc4-21b1626f4b8e}, package: kubeupdaterserviceinstallerid [3680:38d0][2016-04-22t16:49:17]i323: registering package dependency provider: {8201dd23-40a5-418b-b016-4d29be6f010b}, version: 1.0.1.0, package: mosquittoinstallerid [3680:38d0][2016-04-22t16:49:17]i301: applying execute package: mosquittoinstallerid, action: install, path: c:\programdata\package cache\{8201dd23-40a5-418b-b016-4d29be6f010b}v1.0.1.0\mosquittoinstaller.msi, arguments: ' arpsystemcomponent="1" msifastinstall="7" installlocation="g:\"' [3204:32b0][2016-04-22t16:49:18]i319: applied execute package: mosquittoinstallerid, result: 0x0, restart: none [3680:38d0][2016-04-22t16:49:18]i325: registering dependency: {f57e276b-2b99-4f55-9566-88f47c0a065c} on package provider: {8201dd23-40a5-418b-b016-4d29be6f010b}, package: mosquittoinstallerid [3680:38d0][2016-04-22t16:49:18]i301: applying execute package: {71ae2d4e-5c00-442b-9ea1-00cec549800d}, action: uninstall, path: c:\programdata\package cache\{71ae2d4e-5c00-442b-9ea1-00cec549800d}\kubeplatformsetup.exe, arguments: '"c:\programdata\package cache\{71ae2d4e-5c00-442b-9ea1-00cec549800d}\kubeplatformsetup.exe" -uninstall -quiet -burn.related.upgrade -burn.ancestors={f57e276b-2b99-4f55-9566-88f47c0a065c}' [3204:32b0][2016-04-22t16:51:43]i319: applied execute package: {71ae2d4e-5c00-442b-9ea1-00cec549800d}, result: 0x0, restart: none [3680:38d0][2016-04-22t16:51:43]i372: session end, registration key: software\microsoft\windows\currentversion\uninstall\{f57e276b-2b99-4f55-9566-88f47c0a065c}, resume: arp, restart: none, disable resume: no [3680:38d0][2016-04-22t16:51:43]i371: updating session, registration key: software\microsoft\windows\currentversion\uninstall\{f57e276b-2b99-4f55-9566-88f47c0a065c}, resume: arp, restart initiated: no, disable resume: no [3204:32b0][2016-04-22t16:51:43]i399: apply complete, result: 0x0, restart: none, ba requested restart: no [3204:32b0][2016-04-22t16:51:43]i500: shutting down, exit code: 0x0 [3204:32b0][2016-04-22t16:51:43]i410: variable: wixbundleaction = 5 [3204:32b0][2016-04-22t16:51:43]i410: variable: wixbundleelevated = 1 [3204:32b0][2016-04-22t16:51:43]i410: variable: wixbundlelastusedsource = g:\projects\kube2\kube-installer\kubeplatformsetup\kubeplatformsetup\bin\release\ [3204:32b0][2016-04-22t16:51:43]i410: variable: wixbundlelog = c:\users\macila~1\appdata\local\temp\kubeplatformsetup_20160422164838.log [3204:32b0][2016-04-22t16:51:43]i410: variable: wixbundlelog_kubeupdaterserviceinstallerid = c:\users\macila~1\appdata\local\temp\kubeplatformsetup_20160422164838_000_kubeupdaterserviceinstallerid.log [3204:32b0][2016-04-22t16:51:43]i410: variable: wixbundlelog_mosquittoinstallerid = c:\users\macila~1\appdata\local\temp\kubeplatformsetup_20160422164838_001_mosquittoinstallerid.log [3204:32b0][2016-04-22t16:51:43]i410: variable: wixbundlemanufacturer = zone24x7 [3204:32b0][2016-04-22t16:51:43]i410: variable: wixbundlename = kubeplatformsetup [3204:32b0][2016-04-22t16:51:43]i410: variable: wixbundleoriginalsource = g:\projects\kube2\kube-installer\kubeplatformsetup\kubeplatformsetup\bin\release\kubeplatformsetup.exe [3204:32b0][2016-04-22t16:51:43]i410: variable: wixbundleoriginalsourcefolder = g:\projects\kube2\kube-installer\kubeplatformsetup\kubeplatformsetup\bin\release\ [3204:32b0][2016-04-22t16:51:43]i410: variable: wixbundleproviderkey = {f57e276b-2b99-4f55-9566-88f47c0a065c} [3204:32b0][2016-04-22t16:51:43]i410: variable: wixbundlerollbacklog_kubeupdaterserviceinstallerid = c:\users\macila~1\appdata\local\temp\kubeplatformsetup_20160422164838_000_kubeupdaterserviceinstallerid_rollback.log [3204:32b0][2016-04-22t16:51:43]i410: variable: wixbundlerollbacklog_mosquittoinstallerid = c:\users\macila~1\appdata\local\temp\kubeplatformsetup_20160422164838_001_mosquittoinstallerid_rollback.log [3204:32b0][2016-04-22t16:51:43]i410: variable: wixbundlesourceprocessfolder = g:\projects\kube2\kube-installer\kubeplatformsetup\kubeplatformsetup\bin\release\ [3204:32b0][2016-04-22t16:51:43]i410: variable: wixbundlesourceprocesspath = g:\projects\kube2\kube-installer\kubeplatformsetup\kubeplatformsetup\bin\release\kubeplatformsetup.exe [3204:32b0][2016-04-22t16:51:43]i410: variable: wixbundletag = [3204:32b0][2016-04-22t16:51:43]i410: variable: wixbundleversion = 1.0.1.0 [3204:32b0][2016-04-22t16:51:43]i007: exit code: 0x0, restarting: no
from logs i'm seeing few things.
in regards upgrade, looks it's detecting packages , planning them correctly.
the 2 installer packages being installed major upgrade , related bundle (the 1 being upgrade) being detected , run uninstall well.
the issues seem coming uninstall of previous bundle.
the log labeled "log file 1" log when upgrade re-ran installed bootstrapper remove it. problem see right here:
[0980:3888][2016-04-22t16:49:19]i100: detect begin, 2 packages [0980:3888][2016-04-22t16:49:19]i102: detected related bundle: {f57e276b-2b99-4f55-9566-88f47c0a065c}, type: upgrade, scope: permachine, version: 1.0.1.0, operation: none [0980:3888][2016-04-22t16:49:19]i103: detected related package: {8c442a83-f559-488c-8cc4-21b1626f4b8e}, scope: permachine, version: 1.0.1.0, language: 0 operation: downgrade [0980:3888][2016-04-22t16:49:19]i103: detected related package: {8201dd23-40a5-418b-b016-4d29be6f010b}, scope: permachine, version: 1.0.1.0, language: 0 operation: downgrade [0980:3888][2016-04-22t16:49:19]i101: detected package: kubeupdaterserviceinstallerid, state: obsolete, cached: complete [0980:3888][2016-04-22t16:49:19]i101: detected package: mosquittoinstallerid, state: obsolete, cached: complete [0980:3888][2016-04-22t16:49:19]i199: detect complete, result: 0x0 [0980:3888][2016-04-22t16:51:43]i500: shutting down, exit code: 0x0
the desired process burn bootstrappers detect phase, plan phase, apply phase.
for reason uninstall when being run related bundle stopping after detect phase.
i suspect machine may in weird state right now. think have several installed, hidden in add remove programs list, installs kubeupdaterserviceinstaller , mosquittoinstaller.
the first thing stop installing on build/development machine. when authoring installers will make mistakes , cause machines in weird states regards knowing has installed , doesn't have installed on it. suggest using virtual environment installer testing. when mess can revert clean state , start testing again. if using virtual environment ignore paragraph you're doing right make sure clean before testing changes , testing upgrade.
in msi wix suggest use "*" product id don't have change every build.
<product id="*" name="installer" language="1033" version="1.0.0.0" manufacturer="zone24x7" upgradecode="e90569b5-372e-45bb-b101-58e0b75ab5c7">
and in major upgrade element add allowsameversionupgrades="yes"
<majorupgrade downgradeerrormessage="a newer version of [productname] installed." allowsameversionupgrades="yes" />
so don't have update version every time want test upgrade rebuild msi installer.
for reference, here bootstrapper upgrade logs bootstrapper application , logs when removes old install. notice differences
when re-runs old installation remove it
the upgrade log looks same yours re-run uninstall log has differences. i'm not totally sure without seeing whole codebase (and don't have time or that) how fix these issues in answer out.
Comments
Post a Comment