• Login
sketchucation logo sketchucation
  • Login
🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

Installers for plugins.

Scheduled Pinned Locked Moved Developers' Forum
11 Posts 8 Posters 1.0k Views 8 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    CPhillips
    last edited by 21 Jan 2008, 02:51

    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.php

    Its 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.

    1. Install Inno setup. http://www.jrsoftware.org/isdl.php
    2. Run it and open the attached .iss file. Its really just a text file.
    3. Search and replace "MyPlugins" with the name of your plugin.
    4. In the [files] section specify which files to include in the installation.
    5. 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


    SketchupInstaller.zip

    1 Reply Last reply Reply Quote 0
    • T Offline
      tomasz
      last edited by 21 Jan 2008, 21:33

      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

      Author of [Thea Render for SketchUp](http://www.thearender.com/sketchup)

      1 Reply Last reply Reply Quote 0
      • C Offline
        CPhillips
        last edited by 21 Jan 2008, 22:08

        @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

        1 Reply Last reply Reply Quote 0
        • J Offline
          Jim
          last edited by 21 Jan 2008, 22:40

          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.

          Hi

          1 Reply Last reply Reply Quote 0
          • A Offline
            a4chitect
            last edited by 21 Jan 2008, 22:57

            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.

            1 Reply Last reply Reply Quote 0
            • C Offline
              CPhillips
              last edited by 22 Jan 2008, 01:59

              @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.

              1 Reply Last reply Reply Quote 0
              • D Offline
                Didier Bur
                last edited by 22 Jan 2008, 08:42

                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.

                DB

                1 Reply Last reply Reply Quote 0
                • C Offline
                  CPhillips
                  last edited by 23 Jan 2008, 04:33

                  @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

                  1 Reply Last reply Reply Quote 0
                  • blruuskaB Offline
                    blruuska
                    last edited by 17 Oct 2011, 12:59

                    Do you know of any similar Installers for the Mac platform?

                    1 Reply Last reply Reply Quote 0
                    • D Offline
                      driven
                      last edited by 17 Oct 2011, 14:31

                      @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's

                      john

                      learn from the mistakes of others, you may not live long enough to make them all yourself...

                      1 Reply Last reply Reply Quote 0
                      • D Offline
                        draftomatic
                        last edited by 8 Nov 2011, 01:14

                        A lightweight solution for plugin installers is to use self-extracting zips:

                        Link Preview Image
                        404 - Error: 404

                        favicon

                        (www.izarc.org)

                        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)).

                        1 Reply Last reply Reply Quote 0
                        • 1 / 1
                        • First post
                          Last post
                        Buy SketchPlus
                        Buy SUbD
                        Buy WrapR
                        Buy eBook
                        Buy Modelur
                        Buy Vertex Tools
                        Buy SketchCuisine
                        Buy FormFonts

                        Advertisement