OSX Full NI Uninstall Script [Help Me Make it Better]
Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1
    Tech Mentor spencer4hire's Avatar
    Join Date
    Jan 2011
    Location
    Chicago, IL
    Posts
    110

    Default OSX Full NI Uninstall Script [Help Me Make it Better]

    I would like to make an OSX command script that removes every trace of any Native Instruments files, drivers and software. I only own a Maschine and an X1 so I don't know what else I am missing but I likely am missing something.

    You can download the ni-uninstall.command file by right clicking that link and choosing Save Link As.

    Code:
    #!/bin/bash
    # This script removes all Native Instruments files, software, and drivers.
    # https://www.native-instruments.com/en/support/knowledge-base/show/413/how-to-uninstall-native-instruments-software-and-drivers-from-a-mac-os-x-computer/
    read -p "Are you sure you want to uninstall all Native Instruments software and drivers?" -n 1 -r
    echo
    echo
    if [[ $REPLY =~ ^[Yy]$ ]]; then
      echo
      echo "Uninstalling..."
      sudo rm -rfv /Applications/Native\ Instruments
      sudo rm -fv /Library/Preferences/com.native-instruments.*.plist
      sudo rm -rfv /Library/Audio/Plug-Ins/Components/Maschine*
      sudo rm -rfv /Library/Audio/Plug-Ins/VST/Maschine*
      sudo rm -rfv /Library/Application\ Support/Digidesign/Plug-Ins/Maschine*
      sudo rm -rfv /Library/Application\ Support/Avid/Audio/Plug-Ins/Maschine*
      sudo rm -rfv /Library/Application\ Support/Native\ Instruments
      sudo rm -fv ~/Library/Preferences/com.native-instruments.*.plist
      sudo rm -rfv ~/Library/Application\ Support/Native\ Instruments
      sudo rm -rfv /System/Library/Extensions/NIUSB*.kext
      if [[ ${OS_Version} == 10.11 ]]; then
        echo "Operating System does not require disk utility to repair permissions."
      else
        echo "Repairing Disk Permissions"
        echo
        sudo diskutil repairPermissions /
      fi
    fi
    echo
    echo "EXIT"
    exit
    Last edited by spencer4hire; 09-17-2015 at 07:18 PM.

  2. #2
    Tech Mentor spencer4hire's Avatar
    Join Date
    Jan 2011
    Location
    Chicago, IL
    Posts
    110

    Default

    I am assuming no one is going to really assist me in finding all of the install paths I need to account for. This isn't a big deal, DJs are just not programmers. However if in the future someone runs across this who wants to submit some code changes please check out the command file on GitHub...

    https://github.com/spencerthayer/Nat...SX-Uninstaller

  3. #3
    DJTT Administrator del Ritmo padi_04's Avatar
    Join Date
    Nov 2009
    Location
    Argentina
    Posts
    6,523

    Default

    I think you pretty much have everything covered. Just a heads up, 10.11 Disk Utility removes the ability to check and repair disk permissions.

    From the release notes:
    • System file permissions are automatically protected, and updated, during Software Updates. The Repair Permissions function is no longer necessary.

  4. #4
    Tech Mentor spencer4hire's Avatar
    Join Date
    Jan 2011
    Location
    Chicago, IL
    Posts
    110

    Default

    Quote Originally Posted by padi_04 View Post
    10.11 Disk Utility removes the ability to check and repair disk permissions.
    Well that's interesting. I assume this'll make software installation take a little longer unless this is happening in the background. Thanks, I'll write an if then check that takes into account OS version number for the last part.

    Huh, this is kind of scary. I don't like this Rootless business. http://www.macworld.com/article/2948...functions.html

    no user, application, or process will be able to write files or modify files in the root System folder or the /bin, /sbin, and /usr directories
    WHAT THE SHIT!?
    Last edited by spencer4hire; 09-14-2015 at 12:48 PM.

  5. #5
    Tech Mentor spencer4hire's Avatar
    Join Date
    Jan 2011
    Location
    Chicago, IL
    Posts
    110

    Default

    Quote Originally Posted by padi_04 View Post
    I think you pretty much have everything covered.
    Almost everything except the following lines...

    sudo rm -rfv /Library/Audio/Plug-Ins/Components/Maschine*
    sudo rm -rfv /Library/Audio/Plug-Ins/VST/Maschine*
    sudo rm -rfv /Library/Application\ Support/Digidesign/Plug-Ins/Maschine*
    sudo rm -rfv /Library/Application\ Support/Avid/Audio/Plug-Ins/Maschine*

    This only uninstalls Maschine, I am unsure what the remaining Native Instruments file path names are. I can guess but I would rather not (who knows what damage a guess might cause).

  6. #6
    DJTT Administrator del Ritmo padi_04's Avatar
    Join Date
    Nov 2009
    Location
    Argentina
    Posts
    6,523

    Default

    Library/Audio/MIDI\Devices/Native\ Instruments contains the image files used on the Audio/MIDI app
    (User)/Library/Application\ Support/Native\ Instruments contains Service Centre and Controller Editor presets

    I'd say it's pretty safe to delete the main NI folders like you already do with /Library/Application\ Support/Native\ Instruments. Maschine most likely stretches a bit further like their other production offerings since you need to locate the individual plugins and such.
    Last edited by padi_04; 09-14-2015 at 03:45 PM.

  7. #7
    Tech Mentor spencer4hire's Avatar
    Join Date
    Jan 2011
    Location
    Chicago, IL
    Posts
    110

    Default

    Quote Originally Posted by padi_04 View Post
    Maschine most likely stretches a bit further like their other production offerings since you need to locate the individual plugins and such.
    I wrote to NI tech support asking for the other install paths other than Maschine.

    Code:
      sudo rm -rfv /Library/Audio/MIDI\Devices/Native\ Instruments
      sudo rm -rfv ~/Library/Application\ Support/Native\ Instruments
    Has been added to the script.

  8. #8
    Tech Mentor spencer4hire's Avatar
    Join Date
    Jan 2011
    Location
    Chicago, IL
    Posts
    110

    Default

    Okay so Native Instruments tech support was as useless and lacking capability to understand what I was asking as I suspected.

    Hello Spencer Thayer,

    Uninstall procedure for Native Instruments files:

    http://www.native-instruments.com/en...base/show/413/

    Gabriel
    Native Instruments Support Team
    Morons

  9. #9
    Tech Mentor bmo's Avatar
    Join Date
    Feb 2010
    Location
    Toronto/ Waterloo, Canada
    Posts
    423

    Default

    Quote Originally Posted by spencer4hire View Post
    Okay so Native Instruments tech support was as useless and lacking capability to understand what I was asking as I suspected.



    Morons
    Hey at least you didn't purchase two CDJ 850s for $1800 because the tech support said it was HID enabled on Traktor!

    Are you going to create an executable with your script or just keeping it as is requiring a copy and paste into command? (or am I mistaken on how to run this?)
    My Mixcloud Page!
    Macbook Pro 13", Kontrol Z2, Kontrol F1, Kontrol X1, 2 x Pioneer CDJ-850, 2 x Pioneer CDJ-400, Traktor Scratch Pro, Audio 4 DJ.

  10. #10
    Tech Mentor spencer4hire's Avatar
    Join Date
    Jan 2011
    Location
    Chicago, IL
    Posts
    110

    Default

    Quote Originally Posted by bmo View Post
    Are you going to create an executable ...or am I mistaken on how to run this?
    With OS X you can just double click any .command file and it'll execute a terminal instance which will do everything for you and when finished it will close the terminal instance.

    You can download the ni-uninstall.command file by right clicking that link and choosing Save Link As.

Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •