Sketchup registry key ?
-
Sketchup before version 7 didn't have such a registry key.
But the SU7 key can be found in
HKLM\Software\Google\Google Sketchup 7\InstallLocation
-
On my Windows7 64bit it's
HKLM\Software\**Wow6432Node**\Google\Google Sketchup 7\InstallLocation
-
However, for SU6, you might be able to detect the installation path by checking the registry for the .skp file association.
-
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,
-
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 ? -
From Steve P., our installer expert:
For SU6:
HKEY_LOCAL_MACHINE\SOFTWARE \Microsoft\Windows
CurrentVersion\Uninstall{98736A65-3C79-49EC-B7E9-A3C77774B0E6}\InstallLocationFor SU7:
HKEY_LOCAL_MACHINE\SOFTWARE\Google\Google SketchUp 7\InstallLocationCheers,
-
1000 thanks
-
I confirm I have this key for SU6 on my computer.
-
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.
-
There are lots of free apps out there to do this for you...
-
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
-
Does anyone know how recognize which SU version is installed on MAC?
I want to find out a folder where install a plugin to. -
Which do you want? The SU version number or the path to the plugins folder?
-
@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. -
@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.)
-
Ditto that - don't want things installed in my root.
-
@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?
-
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
-
@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
Thefind_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
Thefind_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 ???
-
Its for an installer, not a ruby script I think.
Advertisement