This is great! I looked at the source code for the WiX installer itself,
which is making use of the Bundle Update element, and actually does exactly
what I would want to do in my case: Check a feed to see if a newer version
has been posted, and then continue accordingly.

After checking the feed it ends with
WixBA.Model.Engine.SetUpdate(string localSource, string downloadSource,
long size, UpdateHashType hashType, byte[] hash);

Does the engine actually do the download for me?

The schema says this about the Location attribute, but I think that's only
about burn checking the feed/Url and determining whether an update is
available automatically instead of me telling it: "The absolute path or URL
to check for an update bundle. Currently the engine provides this value in
the IBootstrapperApplication::OnDetectUpdateBegin() and otherwise ignores
the value. In the future the engine will be able to acquire an update
bundle from the location and determine if it is newer than the current
executing bundle."

I'll play around with this and see what happens, thanks for the pointers!

// Sascha



On Thu, Sep 25, 2014 at 11:39 AM, Rob Mensching <r...@firegiant.com> wrote:

> Documentation is lagging.
>
>
>     // OnDetectUpdateBegin - called when the engine begins detection for
> bundle update.
>     //
>     // Return:
>     //  IDOK instructs the engine to attempt update detection.
>     //
>     //  IDCANCEL instructs the engine to stop detection.
>     //
>     //  IDNOACTION instructs the engine to skip update detection.
>     STDMETHOD_(int, OnDetectUpdateBegin)(
>         __in_z LPCWSTR wzUpdateLocation,
>         __in int nRecommendation
>         ) = 0;
>
>     // OnDetectUpdate - called when the engine has an update candidate for
> bundle update.
>     //
>     // Return:
>     //  IDOK instructs the engine to stop further update detection.
>     //
>     //  IDCANCEL instructs the engine to stop detection.
>     //
>     //  IDNOACTION instructs the engine to process further update
> candidates.
>     STDMETHOD_(int, OnDetectUpdate)(
>         __in_z_opt LPCWSTR wzUpdateLocation,
>         __in DWORD64 dw64Size,
>         __in DWORD64 dw64Version,
>         __in_z_opt LPCWSTR wzTitle,
>         __in_z_opt LPCWSTR wzSummary,
>         __in_z_opt LPCWSTR wzContentType,
>         __in_z_opt LPCWSTR wzContent,
>         __in int nRecommendation
>         ) = 0;
>
>     // OnDetectUpdateComplete - called when the engine completes detection
> for bundle update.
>     //
>     // Remarks:
>     //  wzUpdateLocation is null if no update was available.
>     STDMETHOD_(void, OnDetectUpdateComplete)(
>         __in HRESULT hrStatus,
>         __in_z_opt LPCWSTR wzUpdateLocation
>         ) = 0;
>
>
> _____________________________________________________________
>  Short replies here. Complete answers over there:
> http://www.firegiant.com/
>
>
>
> -----Original Message-----
> From: Sascha Sertel [mailto:sascha.ser...@gmail.com]
> Sent: Thursday, September 25, 2014 11:32 AM
> To: General discussion about the WiX toolset.
> Subject: Re: [WiX-users] Download newer version of cached MSI if available
>
> Okay, what (built-in) functionality is there for updating the bundle?
>
> The only thing I could find was this, but it's more about being able to do
> an update check from ARP and not while executing the bundle:
> http://wixtoolset.org/issues/4190/
>
> // Sascha
>
>
> ------------------------------------------------------------------------------
> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
>
> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&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