Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Disable automatic updates(Diable automatic updates through config files)
Disable automatic updates [message #1791982] Mon, 09 July 2018 09:53 Go to next message
Carl Fraser is currently offline Carl FraserFriend
Messages: 3
Registered: July 2018
Junior Member
I'm looking to deploy Ecplise in a classroom type setting, ideally I'd like to turn off the automatic updates via a config file, I'm basically open to any mechanism other than expecting people to open up menus in the GUI to turn them off.

I've downloaded the zip of files from the website and the intention is to unzip the files to C:\Program Files. I noticed that the file "C:\Program FIles\eclipse\p2\org.eclipse.equinox.p2.engine\profileRegistry\epp.package.jee.profile\.data\.settings\org.eclipse.equinox.p2.ui.sdk.scheduler.prefs" gets created when the automatic updates through the GUI are turned off. This works fine when I run the program as administrator, but when it's run as a normal user (who doesn't have write access to this location) a new set of config files are created in C:\users\%username%\.eclipse that have updates enabled by default.

It's entirely possible that I'm going about this in the wrong way, but if anyone has any advice on how to turn off for all users that would be greatly appreciated.

Machines are running Windows 10 1803, and this is using the latest version of Eclipse (4.8.0)
Re: Disable automatic updates [message #1792040 is a reply to message #1791982] Tue, 10 July 2018 12:46 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33107
Registered: July 2009
Senior Member
I think it should be possible using -pluginCustomization in the eclipse.ini

https://www.eclipse.org/eclipse/platform-core/documents/user_settings/plugin_customization.html
https://stackoverflow.com/questions/24002530/how-can-i-specify-eclipse-preferences-using-plugin-customization-ini
https://help.eclipse.org/photon/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fmisc%2Fruntime-options.html


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Disable automatic updates [message #1792097 is a reply to message #1792040] Wed, 11 July 2018 09:59 Go to previous messageGo to next message
Carl Fraser is currently offline Carl FraserFriend
Messages: 3
Registered: July 2018
Junior Member
Thanks for the links, think I've stumbled across these while searching for an answer to this question and it isn't really clear to me how these settings are determined.

In the help file linked there is an option -noUpdate which is described as 'no longer relevant' - is there any mention anywhere as to why this is no longer relevant, or more importantly, what it's been replaced with?

I've had a look through the help files a bit more and there is a section on multi user installs, the Scenario 3 seems to be what I'm looking for, but when I specify a configuration location by using eclipse.exe -configuration %pathToUserWritableLocation% it copies a load of config files but not the p2 folder, which as far as I can tell contains the configuration settings related to automatic updates.
Re: Disable automatic updates [message #1792100 is a reply to message #1792097] Wed, 11 July 2018 11:08 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33107
Registered: July 2009
Senior Member
I did a bit more research. I think if you look your installation you'll find file like this <eclipse>./plugins/org.eclipse.epp.package.*/plugin_customization.ini where the * name depends on which package you installed. In your case, epp.package.jee_<version>. I expect this file already contains properties like this:
# check for updates every Tuesday at 10am
# https://bugs.eclipse.org/bugs/show_bug.cgi?id=421779
org.eclipse.equinox.p2.ui.sdk.scheduler/enabled=true
org.eclipse.equinox.p2.ui.sdk.scheduler/schedule=on-schedule
org.eclipse.equinox.p2.ui.sdk.scheduler/day=Every Tuesday
org.eclipse.equinox.p2.ui.sdk.scheduler/hour=10\:00 AM
Here you can change org.eclipse.equinox.p2.ui.sdk.scheduler/enabled=true to org.eclipse.equinox.p2.ui.sdk.scheduler/enabled=false. The should change the default for your read-only users of this application to be false initially.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Disable automatic updates [message #1792196 is a reply to message #1792100] Thu, 12 July 2018 13:24 Go to previous message
Carl Fraser is currently offline Carl FraserFriend
Messages: 3
Registered: July 2018
Junior Member
That works!

Thank you so much for your help, you've saved me many more hours of banging my head against the wall! :)
Previous Topic:Installation errors
Next Topic:org.eclipse.core.contenttype: Could not create content describe
Goto Forum:
  


Current Time: Tue Mar 19 05:20:17 GMT 2024

Powered by FUDForum. Page generated in 0.03945 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top