Skip to content

Instantly share code, notes, and snippets.

@exocode
Created December 22, 2022 23:01
Show Gist options
  • Save exocode/cd8c6110586f8ea26a7d4678e72c8625 to your computer and use it in GitHub Desktop.
Save exocode/cd8c6110586f8ea26a7d4678e72c8625 to your computer and use it in GitHub Desktop.

Native Instruments OSX Uninstaller

Sometimes it is necessary to uninstall and reinstall your Native Instruments software, drivers and files as a solution for technical issues. Unfortunately Native Instruments has removed their official uninstaller for OSX and their online documentation on the process is far from complete or accurate; even worse it's annoying to go through every directory and manually remove every file.

This .COMMAND script will launch a terminal instance and guide you through the process of removing all Native Instruments software, drivers and files for you.

SOURCE: https://github.com/spencerthayer/Native-Instruments-OSX-Uninstaller/blob/master/README.md

How to Use the Uninstaller

  1. Download the ni-uninstall.command file.
  2. Double click the ni-uninstall.command file.
  3. When prompted to uninstall everything type either Y or y.
  4. You will then be asked for your root user password.
  5. The command will uninstall all NI files.
  6. The command will launch Disk Utility and Repair Permissions.
  7. You will be asked if you want to reboot your computer.
  8. All done!

What does the Uninstaller Do?

In order for the command file to uninstall your NI application it will need root acess to remove the following files and folder from your system:

  • Macintosh HD > Applications > Native Instruments > Product Name (folder)
  • Macintosh HD > Library > Preferences > com.native-instruments.Product Name.plist
  • Macintosh HD > Library > Audio > Plug-ins > Components > Product Name.component
  • Macintosh HD > Library > Audio > Plug-ins > VST > Product Name.vst
  • Macintosh HD > Library > Application Support > Digidesign > Plug-ins > Product Name.dpm
  • Macintosh HD > Library > Application Support > Avid > Audio > Plug-ins > Product Name.aaxplugin
  • Macintosh HD > Library > Application Support > Native Instruments > Product Name (folder)
  • Macintosh HD > Users > Your User Name > Library > Preferences > com.native-instruments.Product Name.plist
  • Macintosh HD > Users > Your User Name > Library > Application Support > Native Instruments > Product Name (folder)
  • Macintosh HD > System > Library > Extensions > NIUSB Product Name.kext files

Library Files

This .COMMAND script does not remove your libraries.

If you are uninstalling one of Native Instruments' sample-based programs, i.e. KONTAKT, BATTERY, AKOUSTIK PIANO or ELEKTRIK PIANO, there is also a sample library that can be deleted. It is located in the directory you chose during installation. Please note that it is NOT necessary to uninstall the library in most cases to fix common issues. You can safely leave this folder in place in most cases unless the problem you are having is related to the library content itself.

#!/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
if [[ $REPLY =~ ^[Yy]$ ]]; then
echo
echo "Uninstalling..."
echo "Please enter your root user credentials below."
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
sudo rm -rfv /Library/Audio/MIDI\Devices/Native\ Instruments
sudo rm -rfv ~/Library/Application\ Support/Native\ Instruments
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
read -p "Reboot?" -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]; then
sudo shutdown -r now
fi
echo
echo "EXIT"
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment