Check for updates and silent install if outdated automation?

Hi @brian,

Regarding this:
https://wiki.mcneel.com/rhino/installingrhino/6

Is there a way, without launching Rhino to:

  1. check the newest version
  2. compare it with the currently installed
  3. download
  4. and install silently?

apparently (4) is there, (3) could probably be done using variety of tools and scripting languages, but (1) and (2) ?

1 Like

The automatic update system does the first three for you; turn it on.

Or, if you want to rewrite that system, you can:

  1. Copy the URL from Help > Check for Updates > Check Now
  2. Read the version number of the currently installed Rhino 6 from HKEY_LOCAL_MACHINE\Software\McNeel\Rhinoceros\6.0\Install\Version, and put that at the end of the updates URL.
  3. Use your favorite programming language to fetch the results of the URL
  4. Scrape the page that is returned for the URL of the Rhino installer
  5. Download it
  6. Run it
  7. Process all the possible failure codes when install fails, and notify the user as appropriate. Note that under some circumstances, the installation will be incomplete, requiring the user to restart Rhino. This happens most frequently when you silently install while Rhino is running, but happens at other unexpected times, too.

Hope that helps.

1 Like

Yes, I think it does. Thanks.