Install Logic Additional Content from External HDD

Discussion in 'Logic' started by Mostwest, Sep 29, 2016.

  1. Mostwest

    Mostwest Platinum Record

    Joined:
    Dec 25, 2012
    Messages:
    1,365
    Likes Received:
    214
    So, i need help here. Since my computer is not connected to Internet i had to download ALL Additional logic Content as .PKG files and moved to an external HDD ready to install.
    So far so good, tried to manually install one pack and worked without problems.


    Here is the question, since i have like 500 PKG files there is a way to automatically install all those PKG with Terminal or some kind of 3rd party app? Install one by one is a real pain in the ass.

    Planning to move all the contents to another HDD once installed correctly using SymbolicLinker.

    Thanks

    ps: If someone in interested i can share the TXT file containing all download links for all PKG in order to download them with your download app (Jdownload, or whatever you use). List is update for LPX 10.2.4

     
    Last edited: Sep 29, 2016
  2.  
  3. ovalf

    ovalf Platinum Record

    Joined:
    Feb 27, 2012
    Messages:
    897
    Likes Received:
    217
    Location:
    Brazil
    I do not have the latest links, can you send me?
    Logic occasionally goes crazy and do not finds files in external units.
    Especially preset files on your personal directory. So most times larger files are ok but I suggest thar tiny files like presets to stay in the boot drive.
    Tiny files from Logic are more permission sensitive and they are hard to fix, usually they need a full reinstall.
    Thanks in advance
     
  4. Mostwest

    Mostwest Platinum Record

    Joined:
    Dec 25, 2012
    Messages:
    1,365
    Likes Received:
    214
    yeah of course, gonna send you a PM witin 3 hours. I'm gonna move only Alchemy samples, apple sample and stuff like that. Original Logic Folder wil be still on my SSD
     
  5. oisinn

    oisinn Ultrasonic

    Joined:
    Jul 6, 2011
    Messages:
    205
    Likes Received:
    39
    Location:
    Wild West
    Its an incredible pain to install those 500 PKG manually, not least because each one of them requires your password before they install. One shortcut is to change your password teporarily to a single letter which will certainly save a bit of time.

    The below stuff I found on the internet but I have to say I could not get it to work - You can see that he has the PKGs in his Downloads folder. - if you can do something with it then let me know

    QUOTE:

    NOTE: I ran the script below when the .pkg files were located on the same hard drive to which I was installing them. Not sure how it will work if located on an external drive—I never tested it :/

    In the folder into which you downloaded all of the .pkg files, create a new text file called "installAllPackages.sh" and paste the following script into it
      1. #!/bin/bash
      2. echo -e "Installing all .pkg files withing this folder"
      3. FILES=*.pkg
      4. for f in $FILES
      5. do
      6. if [ ! -f "$f" ]; then
      7. echo -e "ERROR: no .pkg files found. Quitting..."
      8. exit 1
      9. fi
      10. echo;echo;echo
      11. echo "--------------------------------------------------------------------------------"
      12. echo "installing $f"
      13. echo
      14. sudo installer -pkg $f -target /
      15. echo "--------------------------------------------------------------------------------"
      16. done
      17. echo -e "\n\nDone!"
    1. Open Terminal, navigate to the folder containing the .sh and .pkg files, and run the script file you just created
      1. $ cd Downloads/LogicProXAdditionalContent
      2. $ bash installAllPackages.sh
     
  6. Mostwest

    Mostwest Platinum Record

    Joined:
    Dec 25, 2012
    Messages:
    1,365
    Likes Received:
    214
    Tried the script but didn't work. Moved some PKGs on my SSD for semplicity and named folder as example, still the error

    installAllPackages.sh: line 1: {rtf1ansiansicpg1252cocoartf1343cocoasubrtf160: command not found

    installAllPackages.sh: line 2: syntax error near unexpected token `}'

    installAllPackages.sh: line 2: `{\fonttbl\f0\fswiss\fcharset0 ArialMT;}'

    Let's say that PKGs are under this folder
    "/Users/Mark/Downloads"

    How do you correctly edit the script in order to work? Thanks
     
  7. Freudz

    Freudz Noisemaker

    Joined:
    Jan 28, 2015
    Messages:
    11
    Likes Received:
    4
    Best Answer
    Create a folder called "Content" in there create two folders. One named "Installed" and one named "ToInstall" and place the .pkg files in the "ToInstall" folder. Open Applescript editor and copy the following script in there and run. Simply select the "Content" folder, enter your password when prompted and let the process run.

    set theContentPath to POSIX path of (choose folder)
    set toInstall to (theContentPath & "ToInstall/")
    set inStalled to (theContentPath & "Installed/")
    set totalFiles to (do shell script "cd " & quoted form of toInstall & " && ls -1x | wc -l") as integer
    if totalFiles is 0 then
    display alert "No files where found!"
    return
    end
    if
    set
    thePass to text returned of (display dialog "Please Enter Your Password:" default answer "")
    repeat
    set getFileName to (do shell script "cd " & quoted form of toInstall & " && ls -1 | head -n 1")
    set theFile to quoted form of (toInstall & getFileName)
    set theInfo to quoted form of (do shell script "sudo installer -allowUntrusted -pkg " & theFile & " -target /" password thePass with administrator privileges)
    do shell script "echo " & theInfo & " >> " & quoted form of (inStalled & "report.txt")
    do shell script "echo >> " & quoted form of (inStalled & "report.txt")
    do shell script "mv " & theFile & " " & quoted form of inStalled
    set totalFiles to (do shell script "cd " & quoted form of toInstall & " && ls -1x | wc -l") as integer
    if totalFiles is 0 then
    display alert "Process Complete!"
    return
    end if
    end
    repeat
     
    Last edited: Sep 29, 2016
  8. Mostwest

    Mostwest Platinum Record

    Joined:
    Dec 25, 2012
    Messages:
    1,365
    Likes Received:
    214
    @Freudz

    Looks like it's working, now is still running, i can see that my SSD free space is lowering.
    Gonna report how it went.

    For now thanks!
     
  9. Freudz

    Freudz Noisemaker

    Joined:
    Jan 28, 2015
    Messages:
    11
    Likes Received:
    4
    Good!:wink:
     
  10. oisinn

    oisinn Ultrasonic

    Joined:
    Jul 6, 2011
    Messages:
    205
    Likes Received:
    39
    Location:
    Wild West
    Great man Freudz. I keep the additional Content stored and I have had to install it, manually, twice now. Your script is gonna save me any future repetitive strain injury:like:
     
  11. Mostwest

    Mostwest Platinum Record

    Joined:
    Dec 25, 2012
    Messages:
    1,365
    Likes Received:
    214
    well @Freudz it worked like a charm! Thanks man you saved me a lot of time and troubles.

    Gonna post here the TXT file with the download links for the ALL additional content
     
    Last edited: Sep 30, 2016
  12. stevitch

    stevitch Audiosexual

    Joined:
    Aug 27, 2014
    Messages:
    869
    Likes Received:
    582
    Location:
    Here
    If you create symlinks (aliases) from the locations where Logic content (and Apple Loops, Garageband instruments, and the like) normally are installed on your system drive to where you want them to reside on an external drive, downloading and updating Logic content files via Logic itself will be possible, you will not have to install from installer files to the external drive.

    An overwrought explanation is here:

    https://www.gearslutz.com/board/11293938-post13.html

    More simply:

    https://gigaom.com/2011/04/27/how-to-create-and-use-symlinks-on-a-mac/

    To simplify the process further, this utility:

    https://www.macupdate.com/app/mac/41493/symlinker
     
  13. Mostwest

    Mostwest Platinum Record

    Joined:
    Dec 25, 2012
    Messages:
    1,365
    Likes Received:
    214
    Yeah, but the whole point is that most of the time my Desktop with Logic isn't connected to internet, So i had to use another computer in another place to get all files from the net and then bring them to my desktop.
     
  14. Mostwest

    Mostwest Platinum Record

    Joined:
    Dec 25, 2012
    Messages:
    1,365
    Likes Received:
    214
    Logic Additional Contents for LPX 10.2.4 on 30/09/2016

    -Just import the TXT or copy-paste the links in your download manager (IDM,Jdownloader etc...)
    -Once downloaded use the Script provided by our friend Freudz in this thread

    LogicAdditionalContents.txt


    NOTE: If Logic or Contents gets update you can still create the download list by yourself, here is the guide I followed.

    http://encyberpedia.blogspot.it/2016/05/how-to-download-logic-additional.html

    Thanks to everybody who helped or tried to help.
     

    Attached Files:

  15. Garbahole

    Garbahole Newbie

    Joined:
    Jan 15, 2016
    Messages:
    3
    Likes Received:
    0
    Thank You very much for the script. Works fine on mine ...
     
  16. Garbahole

    Garbahole Newbie

    Joined:
    Jan 15, 2016
    Messages:
    3
    Likes Received:
    0
    The script doesn't work on Catalina and Big Sur

    error "installer: Error - the package path specified was invalid: '/Volumes/Kontakt Libray A/SSD 4TB/Apple/Logic Pro X 10.5/Logic Pro X 10.5 Content/Content/ToInstall/GarageBandBasicContent.pkg'." number 1

    How to fix this? Thank you very much. Really appreciate it ...
     
  17. clone

    clone Audiosexual

    Joined:
    Feb 5, 2021
    Messages:
    6,086
    Likes Received:
    2,593
    Why would you have Logic 10.5 installed on Catalina or Big Sur?

    I think your actual directory structure is not what the script you are trying to use is expecting.
     
Loading...
Loading...