Page 1 of 1

Activating LiveCode for all users on one workstation

Posted: Tue May 17, 2011 9:34 am
by stevewhyte
Hi,

I am hoping that someone can help before I get in contact with technical support. I'm a classroom teacher with 20 mac workstations and I would like to activate LiveCode so that it successfully opens no matter which of my students is logged into it without asking for the license details.

I have been given the following instructions for activating LiveCode for more than one account which are out of the release notes but I need more detailed step by step instructions as I have no idea where to begin.

Can anyone help?

Regards,

Steven Whyte

Instructions below:

Command-line activation
In a similar vein to installation, it is now possible to activate an installation of LiveCode for all users
of that machine by using the command-line. When invoked in this fashion, no GUI will be
displayed, activation being controlled by any arguments passed.

On both platforms, the command is of the form:
<exe> activate -file license -passphrase phrase
This command will load the manual activation file from license, decrypt it using the given
passphrase and then install a license file for all users of the computer. Manual activation files can
be downloaded from the 'My Products' section of the RunRev customer accounts area.
This action can be undone using the following command:

<exe> deactivate
Again, as the LiveCode executable is actually a GUI application it needs to be run slightly
differently from other command-line programs.
In what follows <livecodeexe> should be replaced with the path to the installed LiveCode
executable or app that has been previously installed.

On Mac, you need to do:
“<livecodeexe>/Contents/MacOS/LiveCode” activate -file license -passphrase phrase
“<livecodeexe>/Contents/MacOS/LiveCode” deactivate
On both platforms, the result of the activation will be written to the console.

Re: Activating LiveCode for all users on one workstation

Posted: Tue May 17, 2011 11:26 am
by Mark
Hi Steven,

I assume that all your Macs are configured identically.

Create a text file with the following code:

Code: Select all

#!/bin/bash
"/Applications/LiveCode 4.6.1.app/Contents/MacOS/LiveCode" activate -file "~/Downloads/LiveCode-Personal-4_6_1.lic" -passphrase xxxxxxx
Replace the first part of the first path with the actual path to your LiveCode installation (although your installation should be the same as mine) and replace the second path to the actual path to your license file, for example "~/Desktop/LiveCode-Educational-4.6.1.lic". Replace xxxxxxx with your own passphrase. Save the text file as "lic". Make sure that it doesn't have a file extension! Don't get trapped in "what you don't see it what you don't get" because file extensions may be hidden.

Copy the file with the shell programme and your license file to the desktop of the Mac that you want to license for LiveCode. Execute the following lines in the terminal:

Code: Select all

chmod 755 ~/desktop/lic
~/desktop/lic
Press enter after each line. The first line makes the file executable (and won't return anything if no error occurred), the second line executes the file.

You should now see a confirmation in the terminal, saying that your LiveCode software has been licensed successfully for all users.

If you like to fiddle with terminal apps a little, you could write a script that logs in on all your Macs over SSH and licenses them remotely :-)

Kind regards,

Mark

Re: Activating LiveCode for all users on one workstation

Posted: Wed May 18, 2011 7:19 am
by stevewhyte
Hi Mark,

Thank you very much for your quick reply. Your instructions did help clear a lot of things up and it is greatly appreciated.

However, I'm still having a little difficulty and it may be something to do with my script as the first line in the terminal window runs correctly but I am unable to execute the script when it comes to typing in the second line.

I've attached a couple of screenshots below which show my script and the error message in the terminal window.

Any idea what I've done wrong?

Kindest regards,

Steven

Re: Activating LiveCode for all users on one workstation

Posted: Wed May 18, 2011 9:46 am
by Mark
Hi Steven,

You need t se quotes around the file names in the shell script and the path to the desktop is ~/desktop and not ~desktop.

Kind regards,

Mark

Re: Activating LiveCode for all users on one workstation

Posted: Wed May 18, 2011 10:27 am
by stevewhyte
Hi Mark,

Thanks again for your reply. After trying these above changes, I am now getting the following errors on lines 1 and 2...

:(

Re: Activating LiveCode for all users on one workstation

Posted: Wed May 18, 2011 10:37 am
by Mark
Steve,

It looks like you have saved the shell script as RTF. You need to make sure that it is saved as plain text, preferably with UTF8 text encoding.

Kind regards,

Mark

Re: Activating LiveCode for all users on one workstation

Posted: Wed May 18, 2011 11:55 am
by stevewhyte
Hi Mark,

This discussion board is getting hammered today.

I'm now getting a different message saying that it "cannot execute the binary file" :?

It could be the script. I ensured that I saved it as a UTF-8 text file. I've copied and pasted the script below.

Sorry and thanks for your help thus far.

Steven


Script:

#!/bin/bash
"/Applications/LiveCode 4.5.3.app/Contents/MacOS/LiveCode" activate -file" ~/Volumes/Data/Users/9032068/Desktop/LiveCode-K12-4_5_3.lic" -passphrase ********

Re: Activating LiveCode for all users on one workstation

Posted: Wed May 18, 2011 12:04 pm
by Mark
Steve, I just noticed... before I reply, you should remove your passkey and the pictures containing your passkey.

Re: Activating LiveCode for all users on one workstation

Posted: Wed May 18, 2011 12:18 pm
by stevewhyte
Whoops - done!

Re: Activating LiveCode for all users on one workstation

Posted: Wed May 18, 2011 12:21 pm
by Mark
Steven,

The quote after "file" is in the wrong place.

Mark

Re: Activating LiveCode for all users on one workstation

Posted: Wed May 18, 2011 1:11 pm
by stevewhyte
Hi Mark,

Thanks for the above - I'm now getting a bit further but it's coming up with the error message "Incorrect passphrase for that license" now.

I've downloaded another manual activation key with the same passphrase but I'm having no joy.

I'm tearing my limited amount of hair out here - but do greatly appreciate the help you are giving me.

Steven

Re: Activating LiveCode for all users on one workstation

Posted: Wed May 18, 2011 1:36 pm
by Mark
Hi Steven,

If you get that message (wrong passphrase), it means that everything is working correctly, except for the passphrase. If you changed your passphrase, make sure that it doesn't contain any weird characters and spaces. If you still can't get it to work, you probably will have to contact RunRev support again.

Best regards,

Mark

Re: Activating LiveCode for all users on one workstation

Posted: Thu May 19, 2011 4:55 pm
by stevewhyte
Hi Mark,

I just want to thank you for all your help. After a bit of tinkering with the passphrase, it managed to work fine!

Thank you for you patientce and continued assistance with the above matter. My day was filled with teaching classes today and yesterday so I wasn't able to focus fully on it - but now I finally did and it worked - thanks to all your help!

Cheers and I owe you a pint!!

Steve :mrgreen:

Re: Activating LiveCode for all users on one workstation

Posted: Thu May 19, 2011 5:06 pm
by Mark
Cool, Steve. I'm glad it works now.

Mark