Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bundle self update #4190

Closed
wixbot opened this issue Nov 17, 2013 · 7 comments
Closed

Bundle self update #4190

wixbot opened this issue Nov 17, 2013 · 7 comments
Assignees
Milestone

Comments

@wixbot
Copy link

wixbot commented Nov 17, 2013

Allow Burn bundles to detect updates and conditionally install them.

Current wish list:

  • Bundle from ARP should have a check for updates option, and if an update is available allow the user to download and install the bundle.
  • Installed bundles should allow for a command line switch (checkupdate?) that can be invoked from an installed application for invoking the same behavior.
  • When invoked with checkupdate, if no updates are available the bundle should silently close.

Originally opened by jchoover

@wixbot
Copy link
Author

wixbot commented Nov 17, 2013

The logical update method would align with Wix and utilize the existing dutil code for atom/application update processing.

Another possible option is partially downloading the bundle from the Update URL and peering into the PE for a version comparison. I wasn't as excited about this, but we could extend the engine in the future to support this. (I'd envision an @type attribute on the Update element allowing for "atom" or "exe" if there is future desire to do so.)

Originally posted by jchoover

@wixbot
Copy link
Author

wixbot commented Nov 17, 2013

Originally changed by jchoover
AssignedTo set to jchoover

@wixbot
Copy link
Author

wixbot commented Nov 17, 2013

I will also expose a set of functions inside of dutil for basic bundle querying. This lib could then be linked to by an application in order to query for the bundle that installed it to invoke the update check from within the application.

Ex:

HRESULT DAPI BundleGetBundleInfo(
      __in LPCWSTR   szBundleId,                             // Bundle code
      __in LPCWSTR   szAttribute,                            // attribute name
      __out_ecount_opt(*pcchValueBuf) LPWSTR lpValueBuf,     // returned value, NULL if not desired
      __inout_opt                     LPDWORD pcchValueBuf   // in/out buffer character count
        );

HRESULT DAPI BundleEnumRelatedBundle(
          __in     LPCWSTR lpUpgradeCode,
          __in     BUNDLE_INSTALL_CONTEXT context,
          __inout  PDWORD pdwStartIndex,
          __out_ecount(MAX_GUID_CHARS+1)  LPWSTR lpBundleIdBuf
            );

Originally posted by jchoover

@wixbot
Copy link
Author

wixbot commented Nov 19, 2013

http://wixtoolset.org/issues/4193/ - API for bundles.

Originally posted by jchoover

@wixbot
Copy link
Author

wixbot commented Dec 24, 2013

https://wix.codeplex.com/SourceControl/network/forks/jchoover/Wix/contribution/5911

Initial pull request for the core changes. WixStdBA changes will happen after these are approved/merged (unless otherwise requested).

Originally posted by jchoover

@wixbot
Copy link
Author

wixbot commented Jul 10, 2014

Core changes are accepted in 3.9. I'll log another feature request for modifying WixStdBA.

Originally posted by jchoover

@wixbot
Copy link
Author

wixbot commented Jul 10, 2014

Originally changed by jchoover
Resolution set to fixed
Status changed from Open to Resolved

@wixbot wixbot added this to the v3.9 milestone Dec 20, 2015
@wixbot wixbot closed this as completed Dec 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants