Posted on 04-02-2015 01:32 PM
Has anyone been able to create a .PKG file for sketchup, that passes a correct .lic file to install from the JSS. Right now it seems to me that I will have to install it on every computer, one at a time. Thanks for the help.
Posted on 05-05-2015 07:51 AM
Needing an answer to this as well!! Help please!
Posted on 09-21-2016 08:14 AM
saw this was never answered, so... Here ya go.
https://help.sketchup.com/en/article/3000285
Posted on 01-19-2017 08:28 AM
I am having the same issue. I followed the directions in the link provided by @jdhovinetz and it doesnt seem to work. Im trying to run SketchUp 2015 on El Capitan.
Posted on 01-19-2017 08:44 AM
@msnowdon, Interesting. I am using 2015 and deploying to 10.11 as well. What is your path to activation_info.txt file?
Posted on 01-19-2017 08:54 AM
I tried the path in the article (/Library/Application Support/SketchUp 2015) and I also tried ~/Library/Application Support/SketchUp 2015 because it seems to store the licensing info there. I have not even created the package yet. I removed the license from my test computer, added the activation_info.txt file and it just doesnt seem to work.
Posted on 01-19-2017 09:18 AM
Are you using the users' library folder ~/Library------
or the machine library folder
/Library.......
I think should be machine's
/Library/Application Support/Sketchup VERSION
works for me for sketchup 2017 and OS 10.11
Posted on 01-19-2017 10:00 AM
@sswartz I tried both locations. The document refers to the machine's location. Can you provide the format of the text file you used?
Posted on 01-19-2017 10:28 AM
@msnowdon, plain text.
/Library/Application Support/SketchUp 2015/activation_info.txt
{ "serial_number":"insertserialnumber", "auth_code":"insertauthcode" }
Posted on 01-19-2017 10:49 AM
@jdhovinetz That's exactly how I have it formatted. The permissions I have on it are:
system Read & Write
wheel Read only
everyone Read only
Posted on 01-19-2017 11:01 AM
@msnowdon maybe permissions of the Sketchup 2015 directory in /Library/Application Support/? Try 755
Posted on 01-19-2017 12:46 PM
@jdhovinetz I think I figured out my issue. I was given an email with the license serial number and authorization code. If I manually enter it, it comes up as an SketchUp Pro 2015 Single User Educational license. After doing some digging I found that it is free for teachers but they have to provide proof:
Teacher Licenses are available for free to teachers who would like to use SketchUp Pro as a part of their curriculum. In order to qualify for a free SketchUp Pro Teacher License, you must: Be a teacher at an accredited educational institution. Provide a current faculty ID, course syllabus, or other similar document issued from the school that states you are a teacher or faculty member.
The single user license is only good for 2 machines and cannot be used at the same time. If I look at the license file that gets generated, it is locked to that machine so if I did push it out, it wouldn't work anyway.
The best I can do is push out the software and have the teachers that need it apply for a license and then enter in the license information once they receive it. It runs in trial mode for 30 days.
If I wanted to run it in a lab, I would need a school network lab license.
I appreciate you trying to help me
Thanks
Mark
Posted on 01-19-2017 03:04 PM
here is the code we use for Sketchup 2016, sorry for the long post,
Sketchup has to be opened to create the sketchup folder which contains the license location. this script will launch it, kill it then copy over the file. The other way you could do it is through composer and dragging the whole sketchup folder in a separate package and running after.
#!/bin/bash
sleep 10
clear;
USER=$3;
if [ "$USER" == "root" ] || [ -z "$USER" ];
then echo "Couldn't get valid username";
exit 96;
fi;
###### DEFINE VARIALBES ########
SKETCHUPPATH="/Applications/SketchUp 2016/SketchUp.app/Contents/MacOS/SketchUp";
SKETCHUPLICFILENAME="SketchUp.lic";
SKETCHUPLIBPATH="/Users/$USER/Library/Application Support/SketchUp 2016";
+SKETCHUPLICDOWNLOADLOC="https://192.0.0.0/Mac/files/Sketchup2016/$SKETCHUPLICFILENAME"; *ItalicText*
+**(edit this location to download from the server)**
##### START SCRIPT #####
if [ -x "$SKETCHUPPATH" ];
then echo "SketchUp Binary exists";
if [ "$(whoami)" == "root" ];
then echo "Running SketchUp as **YOURDOMAIN**/$USER";
sudo -u $USER "$SKETCHUPPATH" 2>/dev/null 1>/dev/null &
else
echo "Running SketchUp as **YOURDOMAIN**/$USER";
"$SKETCHUPPATH" 2>/dev/null 1>/dev/null &
fi;
fi;
echo "Waiting for SketchUp Process to appear...";
echo "Sleeping for 20 seconds";
sleep 20;
SKETCHUPPID=$(ps -A | grep './SketchUp' | awk '{print $1}');
for pid in ${SKETCHUPPID[@]};
do echo "Killing SketchUp Pid: $pid";
kill -9 $pid;
done;
echo "Sleeping for 5 seconds";
sleep 5;
#if [ $SKETCHUPPID -gt 0 ];
# then echo "Killing SketchUp Pid: $SKETCHUPPID";
# sudo kill -9 $SKETCHUPPID;
# echo "Sleeping for 15 seconds";
# sleep 15;
#fi;
if [ -d "$SKETCHUPLIBPATH" ];
then echo "SketchUp Application Support path exists. Downloading License";
curl -k -o "$SKETCHUPLIBPATH/$SKETCHUPLICFILENAME" "$SKETCHUPLICDOWNLOADLOC";
if [ "$?" -eq "0" ];
then echo "License file downloaded successfully";
else
echo "Something went wrong while downloading license file";
exit 97;
fi;
if [ -f "$SKETCHUPLIBPATH/$SKETCHUPLICFILENAME" ];
then echo "License file exists";
echo "<result>Completed Successfully</result>";
exit 0;
else
echo "Could not find license file";
echo "<result>Failed to find license file</result>";
exit 99;
fi;
else
echo "COULD NOT FIND APPLICATION SUPPORT PATH FOR SKETCHUP";
echo "<result>Failed to find application support folder</result>";
exit 98;
fi;
exit 0;
Posted on 01-19-2017 03:18 PM
I used Composer to create the package. I included the lic file in the package in the format suggested by @jdhovinetz and made sure the correct permissions were applied to the lic file. The first time it's run the user has to accept the EULA then the app opens and they have to click "Start using Sketchup" the use will never see this window again.