Hi,
We wish to disable auto-update in the packagemanager. I found this thread: Best practice to prevent auto-update of packages?
But this does not solve my problem. I would like to either set this setting in
a: A smart company wide setting
b: a python script that runs at install - is it possible to modify via python?
c: a way that does not involve manually clicking the checkbox.
I have been around the forum (also here: (Undesired) automatic update to the latest available plugin version)
But have not yet found a solution to this issue.
If you’re deploying a C# Plugin (for your company) you can include something in the OnLoad
to achieve this by changing the advanced settings. I would ask you do not do this for people outside your company, or else your plugin will likely be removed from the package manager.
cs
var up = Rhino.PersistentSettings.RhinoAppSettings.GetChild("Options").GetChild("PackageManager");
up.SetBool("CheckForUpdates", false);
py
import Rhino;
up = Rhino.PersistentSettings.RhinoAppSettings.GetChild("Options").GetChild("PackageManager")
up.SetBool("CheckForUpdates", True);
1 Like
Fantastic. Thank you so much. Would never ship this with a component, but really useful for setting up som standard settings across a team.
1 Like