sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Sketchup registry key ?

    Scheduled Pinned Locked Moved Developers' Forum
    27 Posts 11 Posters 13.5k Views 11 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.
    • scottliningerS Offline
      scottlininger
      last edited by

      Hey Didier,

      I don't know the answer to that off the top of my head. Let me know if you have any trouble with Thom's answer and I'll ask the experts (not me!) πŸ˜‰

      This would be a good addition to the FAQ section of the documentation site. I'll add a note to get this done...

      Cheers,

      • Scott Lininger
        SketchUp Software Engineer
        Have you visited the Ruby API Docs?
      1 Reply Last reply Reply Quote 0
      • Didier BurD Offline
        Didier Bur
        last edited by

        Thanks all,
        OK for SU7, but my installer must work for SU6 as well.
        The key for skp file association doesn't give any info on where the soft is installed.
        And the key
        HKEY_LOCAL_MACHINE\SOFTWARE\Google\Google SketchUp 6\6.4.112
        has an 'undefined value'.
        I've checkeed other softs (Google Earth, Google Updater, Google Desktop...) and they all have a key named "installdir".
        Please Scott, would you like to ask the experts, please ? πŸŽ‰

        DB

        1 Reply Last reply Reply Quote 0
        • scottliningerS Offline
          scottlininger
          last edited by

          From Steve P., our installer expert:

          For SU6:

          HKEY_LOCAL_MACHINE\SOFTWARE \Microsoft\Windows
          CurrentVersion\Uninstall{98736A65-3C79-49EC-B7E9-A3C77774B0E6}\InstallLocation

          For SU7:
          HKEY_LOCAL_MACHINE\SOFTWARE\Google\Google SketchUp 7\InstallLocation

          Cheers,

          • Scott Lininger
            SketchUp Software Engineer
            Have you visited the Ruby API Docs?
          1 Reply Last reply Reply Quote 0
          • Didier BurD Offline
            Didier Bur
            last edited by

            1000 thanks

            DB

            1 Reply Last reply Reply Quote 0
            • M Offline
              Matt666
              last edited by

              I confirm I have this key for SU6 on my computer.

              Frenglish at its best !
              My scripts

              1 Reply Last reply Reply Quote 0
              • F Offline
                fizgig
                last edited by

                Does anyone have any tips for making a ruby script installer for windows? I need to be able to copy a directory to the c:\ and then copy a loader script into the plugins folder.

                1 Reply Last reply Reply Quote 0
                • TIGT Offline
                  TIG Moderator
                  last edited by

                  There are lots of free apps out there to do this for you...

                  TIG

                  1 Reply Last reply Reply Quote 0
                  • F Offline
                    fizgig
                    last edited by

                    Not sure why my first pass at searching here came up dry. Must have misspelled something. Anyhow, this post seems very interesting: http://forums.sketchucation.com/viewtopic.php?f=180&t=11338&p=78374&hilit=+installer#p78374

                    1 Reply Last reply Reply Quote 0
                    • T Offline
                      tomasz
                      last edited by

                      Does anyone know how recognize which SU version is installed on MAC?
                      I want to find out a folder where install a plugin to.

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

                      1 Reply Last reply Reply Quote 0
                      • Chris FullmerC Offline
                        Chris Fullmer
                        last edited by

                        Which do you want? The SU version number or the path to the plugins folder?

                        Lately you've been tan, suspicious for the winter.
                        All my Plugins I've written

                        1 Reply Last reply Reply Quote 0
                        • T Offline
                          tomasz
                          last edited by

                          @chris fullmer said:

                          Which do you want? The SU version number or the path to the plugins folder?

                          I want to build a dmg installer and want to figure out what versions of SU are installed on a system.
                          So essentially I want both, please. πŸ˜„

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

                          1 Reply Last reply Reply Quote 0
                          • Dan RathbunD Offline
                            Dan Rathbun
                            last edited by

                            @fizgig said:

                            Does anyone have any tips for making a ruby script installer for windows? I need to be able to *copy a directory to the c:* and then copy a loader script into the plugins folder.

                            Fiz, 99% of users HATE (and don't want,) software installed in the root directory of our boot drives!

                            Plugins should be usually be installed in a subfolder of Plugins. (If it's a stanalone plugin that adds some functionality to Sketchup, such as a tool or report generator.)

                            IF it's an 'behind the scenes' enhancement used by MANY plugins, (which would not appear on a menu,) it might go in a subfolder of another Sketchup folder such as Tools (in order to prevent menu building scripts from putting it on a menu.) BUT in this case, you should ask the user to confirm or specify a different folder (as some users also HATE non-Google scripts down in the Tools folder heirarchy.)

                            I'm not here much anymore.

                            1 Reply Last reply Reply Quote 0
                            • thomthomT Offline
                              thomthom
                              last edited by

                              Ditto that - don't want things installed in my πŸ˜„ root.

                              Thomas Thomassen β€” SketchUp Monkey & Coding addict
                              List of my plugins and link to the CookieWare fund

                              1 Reply Last reply Reply Quote 0
                              • T Offline
                                tomasz
                                last edited by

                                @unknownuser said:

                                I want to build a dmg installer and want to figure out what versions of SU are installed on a system.

                                Will checking whether a folder "/Library/Application Support/Google SketchUp 6 (or 7)/SketchUp" exists be enough?

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

                                1 Reply Last reply Reply Quote 0
                                • Chris FullmerC Offline
                                  Chris Fullmer
                                  last edited by

                                  I don't tihnk so. I think they can change their installation path.

                                  There is a registry type setting that gets put in place for them that keeps track of where they installed their SU. You mgiht need to get Google involved since no one else seems to have this info off the top of their head. Butyou should just be able to check their plist or registry or whatever it is called for the SU directories, and install into whichever you want.

                                  Chris

                                  Lately you've been tan, suspicious for the winter.
                                  All my Plugins I've written

                                  1 Reply Last reply Reply Quote 0
                                  • TIGT Offline
                                    TIG Moderator
                                    last edited by

                                    @unknownuser said:

                                    Does anyone know how recognize which SU version is installed on MAC?
                                    I want to find out a folder where install a plugin to.

                                    The version is obtained using:

                                    Sketchup.version
                                    Gets the current version of Sketchup in decimal form.
                                    Returns:
                                    the decimal form of the version
                                    OR
                                    Sketchup.version_number
                                    Get the current version of Sketchup as a whole number for comparisons.

                                    The Plugins path is obtained using:

                                    Sketchup.find_support_file
                                    The find_support_files method is used to retrieve the relative path and name of a file within the SketchUp installation directory.
                                    Forward slashes must be used to delimit between directory names.
                                    Arguments:
                                    filename
                                    Name of the filename you want to find.
                                    directory
                                    (optional) directory relative to the SketchUp installation directory.
                                    Returns:
                                    path
                                    Example:
                                    the entire path if successful. If unsuccessful, the method returns false.
                                    help_file=Sketchup.find_support_file("help.html","Plugins/")
                                    OR
                                    Sketchup.find_support_files
                                    The find_support_files method is used to retrieve the relative path and name of all matching files within the SketchUp installation directory.
                                    Forward slashes must be used to delimit between directory names.
                                    Arguments:
                                    filename
                                    Name of the filename you want to find.
                                    directory
                                    (optional) directory relative to the SketchUp installation directory.
                                    Returns:
                                    array
                                    an array of files. If unsuccessful, the method returns false.
                                    Example
                                    array=Sketchup.find_support_files("filename","directory")

                                    What's making this so complicated ???

                                    TIG

                                    1 Reply Last reply Reply Quote 0
                                    • Chris FullmerC Offline
                                      Chris Fullmer
                                      last edited by

                                      Its for an installer, not a ruby script I think.

                                      Lately you've been tan, suspicious for the winter.
                                      All my Plugins I've written

                                      1 Reply Last reply Reply Quote 0
                                      • TIGT Offline
                                        TIG Moderator
                                        last edited by

                                        Aaahhh...
                                        πŸ˜•

                                        TIG

                                        1 Reply Last reply Reply Quote 0
                                        • F Offline
                                          filcole
                                          last edited by

                                          I used WiX (http://wix.sourceforge.net) to create an MSI installer for Sketchup. It can detect the registry setting HKLM\Software\Google\Google Sketchup 7\InstallLocation and install the plugin in the plugins sub-folder.

                                          WiX is a pain in the arse to learn and use, but it's the only open source installer that creates MSIs that I could find.

                                          1 Reply Last reply Reply Quote 0
                                          • J Offline
                                            Jim
                                            last edited by

                                            What is a MSI, how it it different/better than what is made by Inno for example?

                                            Installing Ruby scripts in most cases is simply a matter of copying files to the correct location, and possibly registering an uninstaller. It has always been hard for me to justify creating a half-meg installer (or more) for a plug-in that is a few Kb. (Although a meg is not as big as it used to be.)

                                            Does there exist some sort of .zip installer?

                                            Hi

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

                                            Advertisement