When a bootstrapper v1.0.1 downloads and installs an update (v1.0.2) it logs "Automatically closing the window since update successful" and opens the v1.0.2 bootstrapper with this in the log at the top:
"This bundle is being run by a related bundle as type 'Update'." From what I can tell in the logs, when the v1.0.2 is opened it is treated just like a normal run; the Action is "Install". Is there any built-in way to detect when a bootstrapper is ran as type 'Update'? The only way I see how to do this currently would be to store something in the registry at the shutdown of v1 that v2 reads to know that it should automatically continue to the Install portion. Thanks, -dirt On 2013-10-11 15:58, dirt wrote: > How am I to detect that the bootstrapper has been invoked via an > Update > and thus should suppress the UI and auto-invoke the Install sequence? > > I dont see anything when comparing the 1.0.1 and 1.0.2 logs to > indicate > that an Update could be detected. There is one line at the top of the > v1.0.2 log: i003: This bundle is being run by a related bundle as type > 'Update'. > > But in DetectBegin the CustomBA.Model.Bootstrapper.Command.Action is > "Install", when I would expect it to be "UpdateReplace". > > ===== > Using Burn v3.8.1007.0. > PID is *. > Version Build is incremented on each build. > ===== > > v1.0.1 Installed > v1.0.1 Change launched from ARP, Update clicked, v1.0.2 downloaded and > ExecutePackageComplete is success, v1.0.1 is exited automatically > v1.0.2 Is auto opened, but instead of detecting it is an update and > auto installing, it appears in the logs that the bootstrapper and > MyApp > are detected as Absent and it sits at the UI waiting for you to click > Install. > > Thanks, > -dirt > > On 2013-10-11 11:57, dirt wrote: >> Thank you for the clarification. >> >> I have made progress and here is an updated scenario, I am not sure >> why >> the update is not auto-installing but instead waiting for me to click >> Install (at step 2) >> >> ===== >> Product ID = * >> Product UpgradeCode = 029B...BD97 >> Bootstrapper UpgradeCode = f031...56b3 >> ===== >> >> 1) Install Bootstrapper v1.0.1 >> >> 2) Run Add/Remove Programs > Change, Launches v1.0.1 UI, Click Update >> >> Update downloads, runs, appears to install and close the original UI >> (v1.0.1) and opens the new UI (v1.0.2) >> >> UI shows new version and shows as "Not Installed" with the Install >> option enabled. >> >> ===== >> This bundle is being run by a related bundle as type 'Update'. >> DetectBegin: Not Installed >> Detected package: MyApp, state: Absent >> DetectComplete: DetectedAbsent >> ===== >> >> ***a) Why does it not Auto Install? It is triggered by 'Update' yet >> waits for me to click Install.*** >> >> 3) Click Install: Installs MyApp >> >> v1.0.2 is installed successfully >> >> v1.0.1 ui is opened again automatically (this time appears to be >> hidden) >> >> 4) v1.0.2 UI shows as Complete. >> >> Add/Remove programs shows new v1.0.2 is installed. >> ===== >> >> Thanks, >> -dirt >> >> On 2013-10-10 19:08, Phill Hogland wrote: >>> For MajorUpgrade behavior you must change both the Product ID and >>> the >>> version. The UpgradeCode should remain unchanged. Also the version >>> of the >>> MSI must change in the first three quad-dots. The version of the >>> bundle can >>> be changed in any part of the version string. >>> >>> http://wixtoolset.org/documentation/manual/v3/howtos/updates/major_upgrade.html >>> >>> I would set the Id="*" and increment the Build portion of the >>> version >>> string >>> (Major.Minor.Build.Revision) to achieve what you are trying to do. >>> >>> >>> >>> -- >>> View this message in context: >>> http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Upgrade-confusion-tp7589648p7589649.html >>> Sent from the wix-users mailing list archive at Nabble.com. >>> >>> ------------------------------------------------------------------------------ >>> October Webinars: Code for Performance >>> Free Intel webinars can help you accelerate application performance. >>> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the >>> most from >>> the latest Intel processors and coprocessors. See abstracts and >>> register > >>> http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk >>> _______________________________________________ >>> WiX-users mailing list >>> WiX-users@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/wix-users >> >> ------------------------------------------------------------------------------ >> October Webinars: Code for Performance >> Free Intel webinars can help you accelerate application performance. >> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the >> most from >> the latest Intel processors and coprocessors. See abstracts and >> register > >> http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk >> _______________________________________________ >> WiX-users mailing list >> WiX-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wix-users > > ------------------------------------------------------------------------------ > October Webinars: Code for Performance > Free Intel webinars can help you accelerate application performance. > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the > most from > the latest Intel processors and coprocessors. See abstracts and > register > > http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users