Uninstaller for Native Access and similar?

adrianw82
New Contributor II

I did a search and found a couple of scripts, but they look like they're older threads so I figured I'd ask again. I'm doing some tests in Composer with various packages for a few different audio plugins, including Native Instruments. All computers in this lab have Native Access installed (the Native Instruments installer) and then several different instruments/effects/etc such as Kontakt, Reaktor, Guitar Rig, etc. I'm assuming if I package Native Access to be available in Self-Service, it's pretty straightforward and users can then just install Native Access as normal and pick whatever instruments they need to use, and so on...right? 

Or...am I better off making a package of Native Access + ALL their applications, instruments, etc...which is what we'd ideally like to provide on each workstation)? It would be sizable (like 80G) but we have plenty of hard drive space, so :shrug: .

In either case, it seems like it's a pain to uninstall instruments, like if there's some kind of issue and the Repair function within Native Access doesn't fix it...let alone if you wanted to nuke everything and reinstall Native Access + various NI content from the ground up. The latter of which probably wouldn't come up, but you never know.

So, [how] can I make an UNinstaller in order to save us/them the grief of picking through all the folders on the system and deleting things piece by piece (as per this Native Instruments article)? Is there a script and/or can this be done using Snapshots? 

If this is confusing I can add screenshots. It's been a little while since I've worked with Jamf and most of the packages I made with Composer were pretty basic, so I may or may not be in over my head with this particular endeavor haha. Any ideas?

1 ACCEPTED SOLUTION

PaulHazelden
Valued Contributor

In the past I have built a script to remove all of the Native Instruments stuff. Their linked page is a good start. I also set up a test Mac and installed it all in there using Composer to Snapshot the install. You can then look in Composer and see exactly where files are put and can then write your script based on those file locations.
I used to snapshot the install and build an installer for all of the required Apps and Libraries we use, but that is now around the 300Gb mark, and simply takes more time to sort and build than manually installing it on the Macs. Plus you still have to log in and activate whatever you install.
You can use Composer to snapshot each part of the installs, and then use that to make an uninstall script for each one individually, but that will take time to do if you are doing them all.

My current Nuke it script is...

# Delete Native Instruments


rm -Rf /Applications/Native\ Access.app
rm -Rf /Applications/Native\ Instruments/

rm -Rf /Library/Preferences/com.native-instruments.*.plist

rm -Rf /Library/Audio/Plug-ins/Components/Absynth\ 5.component
rm -Rf /Library/Audio/Plug-ins/Components/Battery\ 4.component
rm -Rf /Library/Audio/Plug-ins/Components/Choral.component
rm -Rf /Library/Audio/Plug-ins/Components/Driver.component
rm -Rf /Library/Audio/Plug-ins/Components/FM8.component
rm -Rf /Library/Audio/Plug-ins/Components/Flair.component
rm -Rf /Library/Audio/Plug-ins/Components/Guitar\ Rig\ 5.component
rm -Rf /Library/Audio/Plug-ins/Components/Komplete\ Kontrol.component
rm -Rf /Library/Audio/Plug-ins/Components/Kontakt\ 5.component
rm -Rf /Library/Audio/Plug-ins/Components/Kontakt.component
rm -Rf /Library/Audio/Plug-ins/Components/Massive\ X.component
rm -Rf /Library/Audio/Plug-ins/Components/Massive.component
rm -Rf /Library/Audio/Plug-ins/Components/Phasis.component
rm -Rf /Library/Audio/Plug-ins/Components/Reaktor\ 6.component
rm -Rf /Library/Audio/Plug-ins/Components/Reaktor5.component
rm -Rf /Library/Audio/Plug-ins/Components/Solid\ Bus\ Comp.component
rm -Rf /Library/Audio/Plug-ins/Components/Solid\ Dynamics.component
rm -Rf /Library/Audio/Plug-ins/Components/Solid\ EQ.component
rm -Rf /Library/Audio/Plug-ins/Components/Supercharger.component
rm -Rf /Library/Audio/Plug-ins/Components/Transient\ Master.component
rm -Rf /Library/Audio/Plug-ins/Components/Replika.component

rm -Rf /Library/Audio/Plug-ins/VST/Absynth\ 5\ FX\ Surround.vst
rm -Rf /Library/Audio/Plug-ins/VST/Absynth\ 5\ FX.vst
rm -Rf /Library/Audio/Plug-ins/VST/Absynth\ 5\ Stereo.vst
rm -Rf /Library/Audio/Plug-ins/VST/Absynth\ 5.vst
rm -Rf /Library/Audio/Plug-ins/VST/Battery\ 4.vst
rm -Rf /Library/Audio/Plug-ins/VST/Choral.vst
rm -Rf /Library/Audio/Plug-ins/VST/Driver.vst
rm -Rf /Library/Audio/Plug-ins/VST/FM8 FX.vst
rm -Rf /Library/Audio/Plug-ins/VST/FM8.vst
rm -Rf /Library/Audio/Plug-ins/VST/Flair.vst
rm -Rf /Library/Audio/Plug-ins/VST/Guitar\ Rig 5.vst
rm -Rf /Library/Audio/Plug-ins/VST/Komplete\ Kontrol.vst
rm -Rf /Library/Audio/Plug-ins/VST/Kontakt\ 5\ 16out.vst
rm -Rf /Library/Audio/Plug-ins/VST/Kontakt\ 5\ 8out.vst
rm -Rf /Library/Audio/Plug-ins/VST/Kontakt\ 5.vst
rm -Rf /Library/Audio/Plug-ins/VST/Kontakt.vst
rm -Rf /Library/Audio/Plug-ins/VST/Massive\ X.vst
rm -Rf /Library/Audio/Plug-ins/VST/Massive.vst
rm -Rf /Library/Audio/Plug-ins/VST/Phasis.vst
rm -Rf /Library/Audio/Plug-ins/VST/Reaktor\ 6\ FX.vst
rm -Rf /Library/Audio/Plug-ins/VST/Reaktor\ 6.vst
rm -Rf /Library/Audio/Plug-ins/VST/Reaktor5\ 16out.vst
rm -Rf /Library/Audio/Plug-ins/VST/Reaktor5\ FX\ 16x16.vst
rm -Rf /Library/Audio/Plug-ins/VST/Reaktor5\ FX\ 2x8.vst
rm -Rf /Library/Audio/Plug-ins/VST/Reaktor5\ FX.vst
rm -Rf /Library/Audio/Plug-ins/VST/Reaktor5\ Surround.vst
rm -Rf /Library/Audio/Plug-ins/VST/Reaktor5.vst
rm -Rf /Library/Audio/Plug-ins/VST/Replika.vst
rm -Rf /Library/Audio/Plug-ins/VST/Solid\ Bus\ Comp.vst
rm -Rf /Library/Audio/Plug-ins/VST/Solid\ Dynamics.vst
rm -Rf /Library/Audio/Plug-ins/VST/Solid\ EQ.vst
rm -Rf /Library/Audio/Plug-ins/VST/Supercharger.vst
rm -Rf /Library/Audio/Plug-ins/VST/Transient\ Master.vst

rm -Rf /Library/Application\ Support/Avid/Audio/Plug-Ins/Absynth\ 5.aaxplugin
rm -Rf /Library/Application\ Support/Avid/Audio/Plug-Ins/Massive\ X.aaxplugin
rm -Rf /Library/Application\ Support/Avid/Audio/Plug-Ins/Battery\ 4.aaxplugin
rm -Rf /Library/Application\ Support/Avid/Audio/Plug-Ins/Massive.aaxplugin
rm -Rf /Library/Application\ Support/Avid/Audio/Plug-Ins/Choral.aaxplugin
rm -Rf /Library/Application\ Support/Avid/Audio/Plug-Ins/Phasis.aaxplugin
rm -Rf /Library/Application\ Support/Avid/Audio/Plug-Ins/Driver.aaxplugin
rm -Rf /Library/Application\ Support/Avid/Audio/Plug-Ins/Reaktor\ 6.aaxplugin
rm -Rf /Library/Application\ Support/Avid/Audio/Plug-Ins/FM8.aaxplugin
rm -Rf /Library/Application\ Support/Avid/Audio/Plug-Ins/Reaktor5.aaxplugin
rm -Rf /Library/Application\ Support/Avid/Audio/Plug-Ins/Flair.aaxplugin
rm -Rf /Library/Application\ Support/Avid/Audio/Plug-Ins/Solid\ Bus\ Comp.aaxplugin
rm -Rf /Library/Application\ Support/Avid/Audio/Plug-Ins/Guitar\ Rig\ 5.aaxplugin
rm -Rf /Library/Application\ Support/Avid/Audio/Plug-Ins/Solid\ Dynamics.aaxplugin
rm -Rf /Library/Application\ Support/Avid/Audio/Plug-Ins/Komplete\ Kontrol.aaxplugin
rm -Rf /Library/Application\ Support/Avid/Audio/Plug-Ins/Solid\ EQ.aaxplugin
rm -Rf /Library/Application\ Support/Avid/Audio/Plug-Ins/Kontakt\ 5.aaxplugin
rm -Rf /Library/Application\ Support/Avid/Audio/Plug-Ins/Supercharger.aaxplugin
rm -Rf /Library/Application\ Support/Avid/Audio/Plug-Ins/Kontakt.aaxplugin
rm -Rf /Library/Application\ Support/Avid/Audio/Plug-Ins/Transient\ Master.aaxplugin
rm -Rf /Library/Application\ Support/Avid/Audio/Plug-Ins/Replika.aaxplugin

rm -Rf /Library/Application\ Support/Native\ Instruments

rm -Rf /Users/*/Library/Preferences/com.native-instruments.*.plist

rm -Rf /Users/*/Library/Application\ Support/Native\ Instruments

rm -Rf /Users/Shared/Native\ Instruments

rm -Rf /Users/Shared/NI\ Resources

rm -Rf /Users/Shared/Komplete*

I tend to put the Libraries in a folder in Shared that starts with the name "Komplete" Which is what the last line is for.
Please test your environment if you use this script. As with everything Test, Test and Test again.
It is a full Nuke it script, and I have no problems reinstalling after it has run. It does not remove Keychains with passwords, any of those will remain in place.

Hope this helps

View solution in original post

4 REPLIES 4

PaulHazelden
Valued Contributor

In the past I have built a script to remove all of the Native Instruments stuff. Their linked page is a good start. I also set up a test Mac and installed it all in there using Composer to Snapshot the install. You can then look in Composer and see exactly where files are put and can then write your script based on those file locations.
I used to snapshot the install and build an installer for all of the required Apps and Libraries we use, but that is now around the 300Gb mark, and simply takes more time to sort and build than manually installing it on the Macs. Plus you still have to log in and activate whatever you install.
You can use Composer to snapshot each part of the installs, and then use that to make an uninstall script for each one individually, but that will take time to do if you are doing them all.

My current Nuke it script is...

# Delete Native Instruments


rm -Rf /Applications/Native\ Access.app
rm -Rf /Applications/Native\ Instruments/

rm -Rf /Library/Preferences/com.native-instruments.*.plist

rm -Rf /Library/Audio/Plug-ins/Components/Absynth\ 5.component
rm -Rf /Library/Audio/Plug-ins/Components/Battery\ 4.component
rm -Rf /Library/Audio/Plug-ins/Components/Choral.component
rm -Rf /Library/Audio/Plug-ins/Components/Driver.component
rm -Rf /Library/Audio/Plug-ins/Components/FM8.component
rm -Rf /Library/Audio/Plug-ins/Components/Flair.component
rm -Rf /Library/Audio/Plug-ins/Components/Guitar\ Rig\ 5.component
rm -Rf /Library/Audio/Plug-ins/Components/Komplete\ Kontrol.component
rm -Rf /Library/Audio/Plug-ins/Components/Kontakt\ 5.component
rm -Rf /Library/Audio/Plug-ins/Components/Kontakt.component
rm -Rf /Library/Audio/Plug-ins/Components/Massive\ X.component
rm -Rf /Library/Audio/Plug-ins/Components/Massive.component
rm -Rf /Library/Audio/Plug-ins/Components/Phasis.component
rm -Rf /Library/Audio/Plug-ins/Components/Reaktor\ 6.component
rm -Rf /Library/Audio/Plug-ins/Components/Reaktor5.component
rm -Rf /Library/Audio/Plug-ins/Components/Solid\ Bus\ Comp.component
rm -Rf /Library/Audio/Plug-ins/Components/Solid\ Dynamics.component
rm -Rf /Library/Audio/Plug-ins/Components/Solid\ EQ.component
rm -Rf /Library/Audio/Plug-ins/Components/Supercharger.component
rm -Rf /Library/Audio/Plug-ins/Components/Transient\ Master.component
rm -Rf /Library/Audio/Plug-ins/Components/Replika.component

rm -Rf /Library/Audio/Plug-ins/VST/Absynth\ 5\ FX\ Surround.vst
rm -Rf /Library/Audio/Plug-ins/VST/Absynth\ 5\ FX.vst
rm -Rf /Library/Audio/Plug-ins/VST/Absynth\ 5\ Stereo.vst
rm -Rf /Library/Audio/Plug-ins/VST/Absynth\ 5.vst
rm -Rf /Library/Audio/Plug-ins/VST/Battery\ 4.vst
rm -Rf /Library/Audio/Plug-ins/VST/Choral.vst
rm -Rf /Library/Audio/Plug-ins/VST/Driver.vst
rm -Rf /Library/Audio/Plug-ins/VST/FM8 FX.vst
rm -Rf /Library/Audio/Plug-ins/VST/FM8.vst
rm -Rf /Library/Audio/Plug-ins/VST/Flair.vst
rm -Rf /Library/Audio/Plug-ins/VST/Guitar\ Rig 5.vst
rm -Rf /Library/Audio/Plug-ins/VST/Komplete\ Kontrol.vst
rm -Rf /Library/Audio/Plug-ins/VST/Kontakt\ 5\ 16out.vst
rm -Rf /Library/Audio/Plug-ins/VST/Kontakt\ 5\ 8out.vst
rm -Rf /Library/Audio/Plug-ins/VST/Kontakt\ 5.vst
rm -Rf /Library/Audio/Plug-ins/VST/Kontakt.vst
rm -Rf /Library/Audio/Plug-ins/VST/Massive\ X.vst
rm -Rf /Library/Audio/Plug-ins/VST/Massive.vst
rm -Rf /Library/Audio/Plug-ins/VST/Phasis.vst
rm -Rf /Library/Audio/Plug-ins/VST/Reaktor\ 6\ FX.vst
rm -Rf /Library/Audio/Plug-ins/VST/Reaktor\ 6.vst
rm -Rf /Library/Audio/Plug-ins/VST/Reaktor5\ 16out.vst
rm -Rf /Library/Audio/Plug-ins/VST/Reaktor5\ FX\ 16x16.vst
rm -Rf /Library/Audio/Plug-ins/VST/Reaktor5\ FX\ 2x8.vst
rm -Rf /Library/Audio/Plug-ins/VST/Reaktor5\ FX.vst
rm -Rf /Library/Audio/Plug-ins/VST/Reaktor5\ Surround.vst
rm -Rf /Library/Audio/Plug-ins/VST/Reaktor5.vst
rm -Rf /Library/Audio/Plug-ins/VST/Replika.vst
rm -Rf /Library/Audio/Plug-ins/VST/Solid\ Bus\ Comp.vst
rm -Rf /Library/Audio/Plug-ins/VST/Solid\ Dynamics.vst
rm -Rf /Library/Audio/Plug-ins/VST/Solid\ EQ.vst
rm -Rf /Library/Audio/Plug-ins/VST/Supercharger.vst
rm -Rf /Library/Audio/Plug-ins/VST/Transient\ Master.vst

rm -Rf /Library/Application\ Support/Avid/Audio/Plug-Ins/Absynth\ 5.aaxplugin
rm -Rf /Library/Application\ Support/Avid/Audio/Plug-Ins/Massive\ X.aaxplugin
rm -Rf /Library/Application\ Support/Avid/Audio/Plug-Ins/Battery\ 4.aaxplugin
rm -Rf /Library/Application\ Support/Avid/Audio/Plug-Ins/Massive.aaxplugin
rm -Rf /Library/Application\ Support/Avid/Audio/Plug-Ins/Choral.aaxplugin
rm -Rf /Library/Application\ Support/Avid/Audio/Plug-Ins/Phasis.aaxplugin
rm -Rf /Library/Application\ Support/Avid/Audio/Plug-Ins/Driver.aaxplugin
rm -Rf /Library/Application\ Support/Avid/Audio/Plug-Ins/Reaktor\ 6.aaxplugin
rm -Rf /Library/Application\ Support/Avid/Audio/Plug-Ins/FM8.aaxplugin
rm -Rf /Library/Application\ Support/Avid/Audio/Plug-Ins/Reaktor5.aaxplugin
rm -Rf /Library/Application\ Support/Avid/Audio/Plug-Ins/Flair.aaxplugin
rm -Rf /Library/Application\ Support/Avid/Audio/Plug-Ins/Solid\ Bus\ Comp.aaxplugin
rm -Rf /Library/Application\ Support/Avid/Audio/Plug-Ins/Guitar\ Rig\ 5.aaxplugin
rm -Rf /Library/Application\ Support/Avid/Audio/Plug-Ins/Solid\ Dynamics.aaxplugin
rm -Rf /Library/Application\ Support/Avid/Audio/Plug-Ins/Komplete\ Kontrol.aaxplugin
rm -Rf /Library/Application\ Support/Avid/Audio/Plug-Ins/Solid\ EQ.aaxplugin
rm -Rf /Library/Application\ Support/Avid/Audio/Plug-Ins/Kontakt\ 5.aaxplugin
rm -Rf /Library/Application\ Support/Avid/Audio/Plug-Ins/Supercharger.aaxplugin
rm -Rf /Library/Application\ Support/Avid/Audio/Plug-Ins/Kontakt.aaxplugin
rm -Rf /Library/Application\ Support/Avid/Audio/Plug-Ins/Transient\ Master.aaxplugin
rm -Rf /Library/Application\ Support/Avid/Audio/Plug-Ins/Replika.aaxplugin

rm -Rf /Library/Application\ Support/Native\ Instruments

rm -Rf /Users/*/Library/Preferences/com.native-instruments.*.plist

rm -Rf /Users/*/Library/Application\ Support/Native\ Instruments

rm -Rf /Users/Shared/Native\ Instruments

rm -Rf /Users/Shared/NI\ Resources

rm -Rf /Users/Shared/Komplete*

I tend to put the Libraries in a folder in Shared that starts with the name "Komplete" Which is what the last line is for.
Please test your environment if you use this script. As with everything Test, Test and Test again.
It is a full Nuke it script, and I have no problems reinstalling after it has run. It does not remove Keychains with passwords, any of those will remain in place.

Hope this helps

It does help, thanks!

AJPinto
Honored Contributor II

If an application does not have a vendor provided uninstaller (script, package, etc), you really are stuck writing your own. What I do is when I am building a package, I will write an uninstall script at that time as everything is fresh on my mind. This is one area I am very jealous of Windows as Microsoft requires uninstallers to be written where Apple (by extension Unix) does not.

adrianw82
New Contributor II

Yeah that's what I figured...thanks!