What is a good and simple installer to use with a Grasshopper plugin?

What is a good and simple installer to use with a Grasshopper plugin?

The installer should place the*.gha in the Grasshopper components folder, make some folders, place files in them, and set a system path.

Thanks,
Thomas

I have good experience with WiX, but I would not call it simple…

I also use WiX, but would echo @menno - it’s not simple. I’ve also had some success with CreateInstall - http://www.createinstall.com/ it’s more GUI-based so a little easier to figure out (though it’s got its own complexity for sure).

Thanks guys, we’re using NSIS for now, as a simpler alternative to WiX.
Another related question:

What is the best way to find the Grasshopper components folder?
(It’s not always guaranteed to be in the same location, is it?)

Hi Thomas,

Grasshopper.Folders class contains all information related with Grasshopper folders.
The Grasshopper.Folders.DefaultAssemblyFolder property is the one which returns component’s folder.

Thanks and sorry, let me clarify my question:

What is the best way to find the Grasshopper components folder, when installing on an unknown computer where I don’t know where Rhino, let alone Grasshopper, are located?

If Rhino and Grasshopper are installed, you should have this registry key

[HKEY_CURRENT_USER\Software\McNeel\Rhinoceros\5.0x64\Plug-Ins\B45A29B1-4343-4035-989E-044E8580D9CF\PlugIn]

Inside it, you find the registry value FolderName, which is the GH install folder. Append the Components folder and you have what you want.

2 Likes

Thanks, that’s what I was looking for!

My apologies for the answer.
Sorry for misunderstanding.