Hi @will, thanks for your detailed response.
Please mention this in the help page for the Installer Engine.
The autogenerated number is what i found confusing at best. On a first install, i got this number:
1.0.7106.33644. The next number it generates is higher but not consecutive. Best would be to control this number using the RhinoScriptCompiler but there is no option yet to do so. If there would be such an option, i could simply ensure that the previous plugin installation is safely overwritten. At the moment i am using the “Message” filed to find out if a new version install actually worked or not.
I’ve found the following issue:
- Compile a plugin from a bunch of scripts
- Create a zip file from the plugin, a toolbar and pdf help file
- Rename the zip to rhi and install it (this is the first install)
Now i have to update the pdf help file. I rename the rhi file to zip in order to include the new pdf helpfile with the installer. Then i rename the zip to rhi and try to install again (the plugin file has not been changed). The result is an unexpected error during installation:
but the help file has been updated (overwritten) in the plugin installation folder Imho this is very confusing for the user. If i recompile the plugin, then create my installer (rhi) and install, a new folder is created with a random version number. The previous install of the plugin (and the outdated helpfile) remains on the users hdd. I want to avoid this.
My question is about using the plugin installer engine with the RhinoScriptCompiler only. I do not have access to VS.
I am trying to avoid that users have multiple versions of my plugin installed at the same time. I would like to ensure that when i install an updated version of my plugin, the previous version (including the files which where installed with the rhi, is/are removed).
The information on this page recommends to create a folder structure to control for which Rhino version a plugin is installed. I created this folder structure for the rhi file:
|-- Rhino 6
|-- |-- x64
|-- |-- |-- MyPlugin.rhp
|-- |-- |-- MyToolbar.rui
The end result is this install location:
C:\Users\Clement\AppData\Roaming\McNeel\Rhinoceros\6.0\Plug-ins\MyPlugin (4bbfcc78-4311-c616-895d-abba4f495eff)\1.0.7106.33644\Rhino 6\x64\
My toolbar contains eg. a button to run (open) the pdf helpfile which resides in the plugin installation folder. Imagine what i have to do in my compiled script (the command which opens the helpfile), to find out the proper path of the pdf helpfile when multiple versions are installed at the same time.