Code Monkey home page Code Monkey logo

Comments (4)

dstillman avatar dstillman commented on June 23, 2024 1

Updates happen on restart, so the new version always starts up immediately.

from zotero-standalone-build.

dstillman avatar dstillman commented on June 23, 2024

It looks like we'd need to update DisplayVersion in HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Zotero 5.0.96.2 (x86 en-US) (as long as we're a 32-bit app).

Mozilla seems to do this with the maintenance service, which doesn't help us:

https://searchfox.org/mozilla-central/rev/ac7a567f036e1954542763f4722fbfce041fb752/toolkit/components/maintenanceservice/serviceinstall.cpp#460

https://searchfox.org/mozilla-central/rev/ac7a567f036e1954542763f4722fbfce041fb752/toolkit/components/maintenanceservice/serviceinstall.cpp#31-43

But we could theoretically do this with nsIWindowsRegKey without messing with our updater:

http://udn.realityripple.com/docs/Mozilla/Tech/XPCOM/Accessing_the_Windows_Registry_Using_XPCOm

I guess we could do it on startup when the current DisplayVersion didn't match the current app version. (If so, this would belong in zotero/zotero.)

from zotero-standalone-build.

adomasven avatar adomasven commented on June 23, 2024

But we could theoretically do this with nsIWindowsRegKey without messing with our updater:

We have some example code using this https://github.com/zotero/zotero-word-for-windows-integration/blob/master/resource/installer.jsm#L75

from zotero-standalone-build.

dpprdan avatar dpprdan commented on June 23, 2024

I guess we could do it on startup

Just a minor point, but is there an easy way to make the update happen directly after installation? If the auto-update happens without a restart, the installed and reported-by-ARP versions are out of sync until the next restart.

from zotero-standalone-build.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.