UpdateReplace means use the bundle information provided by a call to
Engine.SetUpdate and launch that bundle instead. Doesn't look like you
called SetupUpdate.

If you want an upgrade, then keep the Bundle/@UpgradeCode constant and make
sure the newer bundle has a higher version.

Note: if you keep your Product/@Id static you won't be doing major upgrades
for your MSIs.


On Sun, Jan 27, 2013 at 2:07 AM, Kristian Jaksch
<kristian.jak...@gmail.com>wrote:

> Hi!
>
> Still trying to figure out how the custom managed bootstrapper works. I'm
> looking at the source for the project found here:
>
>
> http://bryanpjohnston.com/2012/09/28/custom-wix-managed-bootstrapper-application/
>
> And in the source for WixBA project but I don't understand how to get an
> upgrade to work correctly. What I've done is the following:
>
> 1. Set a fixed guid in the product id in "Product.wxs" so that it's not
> regenerated between builds.
> 2. Run the boostrapper and installed the package. The package is in the
> add/remove programs list.
> 3. Changed the bundle version from 1.0.0.0 to 2.0.0.0.
> 4. Changed the code of the install button to the following
>
> private void InstallExecute()
>         {
>             IsThinking = true;
>             Bootstrapper.Engine.Plan(LaunchAction.UpdateReplace);
>         }
>
> After looking in the WixBA project it seems as that should be the launch
> action if a previous version is installed
>
> 5. Built the project again and installed agan with
> LaunchAction.UpdateReplace. But nothing happens and the log says there was
> an error:
>
> [2848:2E78][2013-01-27T10:52:40]i001: Burn v3.7.1224.0, Windows v6.2 (Build
> 9200: Service Pack 0), path:
>
> C:\Users\Kristian\Downloads\TestBA\TestBA\BootstrapperSetup\bin\Debug\BootstrapperSetup.exe,
> cmdline: ''
> [2848:2E78][2013-01-27T10:52:40]i000: Setting string variable
> 'WixBundleLog' to value
> 'C:\Users\Kristian\AppData\Local\Temp\BBB_boostrapper_20130127105240.log'
> [2848:2E78][2013-01-27T10:52:40]i000: Setting string variable
> 'WixBundleOriginalSource' to value
>
> 'C:\Users\Kristian\Downloads\TestBA\TestBA\BootstrapperSetup\bin\Debug\BootstrapperSetup.exe'
> [2848:2E78][2013-01-27T10:52:40]i000: Setting string variable
> 'WixBundleName' to value 'BBB boostrapper'
> [2848:2E78][2013-01-27T10:52:40]i000: Loading managed bootstrapper
> application.
> [2848:2E78][2013-01-27T10:52:40]i000: Creating BA thread to run
> asynchronously.
> [2848:2B54][2013-01-27T10:52:40]i000: Launching custom TestBA UX
> [2848:2E78][2013-01-27T10:52:41]i100: Detect begin, 2 packages
> [2848:2E78][2013-01-27T10:52:41]i000: Setting string variable
> 'Netfx4x64FullVersion' to value '4.5.50709'
> [2848:2E78][2013-01-27T10:52:41]i000: Setting string variable
> 'Netfx4FullVersion' to value '4.5.50709'
> [2848:2E78][2013-01-27T10:52:41]i102: Detected related bundle:
> {dbdb965b-1785-48ce-94b6-ec446f5e8768}, type: Upgrade, scope: PerMachine,
> version: 1.0.0.0, operation: MajorUpgrade
> [2848:2E78][2013-01-27T10:52:41]i052: Condition 'Netfx4FullVersion AND (NOT
> VersionNT64 OR Netfx4x64FullVersion)' evaluates to true.
> [2848:2E78][2013-01-27T10:52:41]i101: Detected package: Netfx4Full, state:
> Present, cached: None
> [2848:2E78][2013-01-27T10:52:41]i101: Detected package:
> DummyInstallationPackageId, state: Present, cached: Complete
> [2848:2E78][2013-01-27T10:52:41]i199: Detect complete, result: 0x0
> [2848:2E78][2013-01-27T10:52:43]i200: Plan begin, 2 packages, action:
> UpdateReplace
> [2848:2E78][2013-01-27T10:52:43]e000: Error 0x8000ffff: Invalid package
> type.
> [2848:2E78][2013-01-27T10:52:43]e000: Error 0x8000ffff: Failed to plan
> execute package.
> [2848:2E78][2013-01-27T10:52:43]e000: Error 0x8000ffff: Failed to process
> update package.
> [2848:2E78][2013-01-27T10:52:43]e000: Error 0x8000ffff: Failed to plan
> update.
> [2848:2E78][2013-01-27T10:52:43]i299: Plan complete, result: 0x8000ffff
> [2848:2E78][2013-01-27T10:53:56]i500: Shutting down, exit code: 0x0
> [2848:2E78][2013-01-27T10:53:56]i410: Variable: Netfx4FullVersion =
> 4.5.50709
> [2848:2E78][2013-01-27T10:53:56]i410: Variable: Netfx4x64FullVersion =
> 4.5.50709
> [2848:2E78][2013-01-27T10:53:56]i410: Variable: VersionNT64 = 6.2.0.0
> [2848:2E78][2013-01-27T10:53:56]i410: Variable: WixBundleAction = 7
> [2848:2E78][2013-01-27T10:53:56]i410: Variable: WixBundleElevated = 0
> [2848:2E78][2013-01-27T10:53:56]i410: Variable: WixBundleLog =
> C:\Users\Kristian\AppData\Local\Temp\BBB_boostrapper_20130127105240.log
> [2848:2E78][2013-01-27T10:53:56]i410: Variable: WixBundleManufacturer =
> Bryan
> [2848:2E78][2013-01-27T10:53:56]i410: Variable: WixBundleName = BBB
> boostrapper
> [2848:2E78][2013-01-27T10:53:56]i410: Variable: WixBundleOriginalSource =
>
> C:\Users\Kristian\Downloads\TestBA\TestBA\BootstrapperSetup\bin\Debug\BootstrapperSetup.exe
> [2848:2E78][2013-01-27T10:53:56]i410: Variable: WixBundleProviderKey =
> {321ea40c-98ca-4ceb-a507-8e74b12ee6c1}
> [2848:2E78][2013-01-27T10:53:56]i410: Variable: WixBundleTag =
> [2848:2E78][2013-01-27T10:53:56]i410: Variable: WixBundleVersion = 2.0.0.0
> [2848:2E78][2013-01-27T10:53:56]i007: Exit code: 0x0, restarting: No
>
> Can anyone explain why this occurs?
>
> Thanks for help!
>
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. ON SALE this month only -- learn more at:
> http://p.sf.net/sfu/learnnow-d2d
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to