I cannot do the change to MyPlugIn.cs (as describe in the third link) for the GUID, Title and PlugInVersion. The functions doesn’t exist in the PlugIn base class.
So I ignore this part and create the folder architecture describe in the second link.
MyPlugIn\
Rhino 4.0\
Rhino 5.0\
x86\
MyPlugIn.rhp
x64\
MyPlugIn.rhp
Common\
Some other resource files...
Then I zipped everything and I changed the extension to rhi.
Finally I double click on that file to install the plugin. Everything went well till I got “An unexpected error has occurred during installation”. I try to find what was this error and found in a “MyPlugIn (20140221-102000).log” file the following error:
908 Info PluginPackage.Install starting for package at 'C:\Users\fabien\Desktop\MyPlugIn\MyPlugIn.rhi'
908 Info Found 2 plug-ins
908 Info Compatible Rhino found: C:\Program Files\Rhinoceros 5 (64-bit)\System\Rhino.exe
908 Info Compatible Rhino found: C:\Program Files\Rhinoceros 5 (64-bit)\System\Rhino.exe
908 Debug m_worker_InstallComplete starting
908 Error InstallFailed m_worker_InstallComplete exception caught
908 Error Exception: System.ArgumentException
Message: L'objet doit être de type Version.
Source: mscorlib
StackTrace: à System.Version.CompareTo(Object version)
à RMA.RhiExec.Model.PluginInfo.CompareTo(PluginInfo cf)
à RMA.RhiExec.Model.PackageInstallerPlugin.AfterInstall(Package package, RhinoInfo[] RhinoList, InstallerUser InstallAsUser)
à RMA.RhiExec.Engine.InstallerEngine.Install()
à RMA.RhiExec.Engine.InstallerEngine.m_worker_Install(Object sender, DoWorkEventArgs e)
à System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)
908 Debug ShowErrorDialog starting
pertains to plug-ins built with the older Rhino_DotNet SDK. This information does not apply to plug-ins built with RhinoCommon. I’ve modified the page to try to make clearer.
i cannot install Rhino 5. it says: update your computer with a Windows-compatible version before the installation.
But i do have Windows 7. what’s wrong?
My apologies Dale - I seem to have threadhopped from the thread I thought I was in, and I cannot locator the original thread. The original thread pointed to the github PluginInfo.cs which linked back to here. Hopefully the screenshot above gives you enough info.
Hi Paul, if you’re referring to the same PluginInfo error that @piac referenced above then I’ve implemented this in SR12, the first release candidate of which is now available.
@paulphysicalc – I’m getting the same error message here when I try to install your RHI file (with SR12 RC1). I’ll look into why this is happening and will keep you posted.