Installers for plugins.
-
About 90% of the feedback I got on SketchyPhysics was problems installing. "Unzip into the plugins directory" is apparently beyond a lot of average users.
So for SketchyPhysics2 I researched installers. I wont go into details but I tried several and they all had various problems. Most were either too complicated or produced flaky results.
I believe it was Jim who first pointed me to Inno Setup.
http://www.jrsoftware.org/isinfo.phpIts simple, free and pretty close to fool proof. So far with over 500 downloads of SketchyPhysics2 I have only had one user who had trouble installing. And that was because he didn't know where his browser saved the setup file.
Attached is a template installer script for Sketchup plugins. Pretty much all you have to do is a simple search and replace and specify what files to include.
- Install Inno setup. http://www.jrsoftware.org/isdl.php
- Run it and open the attached .iss file. Its really just a text file.
- Search and replace "MyPlugins" with the name of your plugin.
- In the [files] section specify which files to include in the installation.
- Run "Compile" and you should have a setup.exe that will install your plugin.
Result is a basic standard setup program that will try to install the plugin in the correct Sketchup directories. It will warn the user if the plugins directory isn't found. And it also supports uninstall.
Chris
-
Chris,
I am using it as well for SU2KT and haven't had problems with it.
It is highly customizable. I know it is possible to read win registry to find out SketchUp dir automatically. I haven't tried it yet.Tomasz
-
@unknownuser said:
Chris,
I am using it as well for SU2KT and haven't had problems with it.
It is highly customizable. I know it is possible to read win registry to find out SketchUp dir automatically. I haven't tried it yet.Tomasz
It is possible for the setup to check the registry. The problem is that Sketchup doesn't store a registry key that will let you find the directories. I mentioned it to the Sketchup team and they said they would try to add something in a future version.
At least it seems most people install in the standard location.
Chris
-
On a side note, I've been running the idea around my brain of an installer for plugins which are only one file. It would be run from within Sketchup, could check for updates, and then backup, and download the script to the correct location.
It wouldn't be hard, except for finding/writing reliable network code might be tricky.
-
jim - wonderful idea!!
I just think this should be implemented by the official sketchup team and integrated more tight with the sketchup GUI (to allow managing menu commands, icons and stuff like this)so that anybody could configure which scripts to load and which to leave unloaded for the moment
i know that ruby is capable enough to handle most of the stuff mentioned but I think that sketchup deserves a further development of the original Preferences\Extensions idea.
-
@jim said:
On a side note, I've been running the idea around my brain of an installer for plugins which are only one file. It would be run from within Sketchup, could check for updates, and then backup, and download the script to the correct location.
It wouldn't be hard, except for finding/writing reliable network code might be tricky.
Thats a good idea! It would be useful even without the auto updates.
-
Hi,
@unknownuser said:
The problem is that Sketchup doesn't store a registry key that will let you find the directories.
I don't agree: go to HKEY_CURRENT_USER/Software/Google/Sketchup6/Preferences/ and get the "Template" key. Parse the result and get rid of "Ressources/local_folder/Templates/..." and you have the path to the install dir.
OK, it assumes the user stores its templates in the default folder... but you also can get the key "ComponentBrowser" in HKEY_CURRENT_USER/Software/Google/Sketchup6/File Locations...I've done some installer in the past (for SU2POV) and I'll check the iss again to publish it if it is of any interest, but I'm sure this is doable.
-
@didier bur said:
Hi,
@unknownuser said:
The problem is that Sketchup doesn't store a registry key that will let you find the directories.
I don't agree: go to HKEY_CURRENT_USER/Software/Google/Sketchup6/Preferences/ and get the "Template" key. Parse the result and get rid of "Ressources/local_folder/Templates/..." and you have the path to the install dir.
OK, it assumes the user stores its templates in the default folder... but you also can get the key "ComponentBrowser" in HKEY_CURRENT_USER/Software/Google/Sketchup6/File Locations...I've done some installer in the past (for SU2POV) and I'll check the iss again to publish it if it is of any interest, but I'm sure this is doable.
Hmm. Seems your right. Ill see if I can update the installer.
Thanks
Chris -
Do you know of any similar Installers for the Mac platform?
-
@blruuska said:
Do you know of any similar Installers for the Mac platform?
a symbolic link to the 'plugins' folder + 'your rubies, and support folders' contained in a .dmg is quite familiar to mac users.
once you open the dmg you drag the 'ruby contents' onto the contained 'link folder' and the system sorts it all out.
if you have a mac I'll PM you an example.
if you have a mac you can make installers from pre-installed system software i.e. disc utility.app
or try/buy Drop DMG.app which allows for fancy looking dmg'sjohn
-
A lightweight solution for plugin installers is to use self-extracting zips:
http://www.izarc.org/tutorials.html#sfx
izarc gives you a few basic options as well. You'll have to make separate installers for 32/64bit Windows (since 64-bit systems use C:\Program Files (x86)).
Advertisement