I need to deactivate a plugin, this can be done with a command within the plugin itself or from another plugin.
The API does not have a PlugIn.UnLoadPlugIn(****); method.
Is there any way to do this??
Thanks
I need to deactivate a plugin, this can be done with a command within the plugin itself or from another plugin.
The API does not have a PlugIn.UnLoadPlugIn(****); method.
Is there any way to do this??
Thanks
Once plug-ins are loaded, they cannot be unloaded. The user can block a plug-in in the Options dialog.
Why do you need to disable another plug-in? One plug-in should not be able to disable another plug-in.
My plugin has several auxiliary files that must be and be distributed along with the plugin.
I have all my plugin files on the web server, so when there is a new update the user is informed and can download and update all the files.
It is not possible to replace the .rhp file with rhino in run , so I tried a different approach using an initial second plugin that downloads and replaces all files from the main plugin, this second plugin is also responsible for doing the first installation of the plugin .
So between the two I can make an automatic update system.
Bad idea??
I don’t know if the idea is good or I can use a better way
Probably not a good idea…
You have several options for distributing and keeping plug-ins up-to-date.
One would be to distribute your plug-in via the package manager yak ; any updates you make will be downloaded and installed on users’ computers using this system.
Another way to do this - are you using RhinoCommon? - is to have an installer with automatic update checks; before I joined McNeel I used AutoUpdate.net to download and install new versions of the plug-ins I developed.
In all cases, the user will need to restart Rhino to complete the installation process.
The way that we accomplish this is to use our own .exe to start Rhino. That .exe is responsible for downloading updates, and restarting our application, and running the installer, and checks user’s PCs for minimum requirements (Rhino version, Frameworks, etc.).