LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need help uninstalling LabVIEW Community edition on from MacOS

Hi there,

 

I would be very grateful if anyone can help. I recently downloaded the community edition for my home laptop for personal projects however for whatever reason the activation won't work so am trying to uninstall and I will just use my work laptop instead which runs windows.

 

However after following the uninstall guide on NI online whereby it says to copy Uninstall.sh to your drive and run my Mac won't even allow me to open the uninstaller file I simply get a

"Apple could not verify “Uninstaller” is free of malware that may harm your Mac or compromise your privacy."

message.

 

Please would someone be able to help as I am lost as to how to uninstall this software.

 

Dragging to the bin doesnt work at all.

 

I am running MacOS Sequoia 15.4

 

Any help is appreciated

0 Kudos
Message 1 of 3
(253 Views)

To Add to my request for help I have now got the file to run from inside the folder however once it advises deleted Labview still exists. lease see screenshot.

Screenshot 2025-05-05 at 20.22.33.png

0 Kudos
Message 2 of 3
(206 Views)

To help anybody else I found another post which helped although wouldn't quite work due to the NI permissions set on the uninstall.command file.

 

To delete everything except now I am left with the NI help preferences only you have to edit the file as stated in the other post (absolutely no credit to myself). 

 

I had to drag the delete file onto desktop and then go to get info and remove all of the permissions other with you can't edit it. then run as per the guide.

 

Type cd (space) in terminal then drag the directory file into terminal and hit enter.

 

Complete text that should be in the .command file;

 

 

#! /bin/bash

SHOW_WARNING="false"
UNINSTALL="true"
UNINSTALL_ALL="false"
LV_64_INSTALLED="false"
UNINST_LABVIEW_64="false"
UNINST_PREFS="true"
UNINST_DATA="true"
UNINST_RTE="true"
UNINST_EXFINDER="true"

EXFI_VERSION=23.3.0
LV_VERSION_MAJOR=23
LV_VERSION_RECEIPTS=$LV_VERSION_MAJOR"0"
LVMERG_VERSION=$LV_VERSION_MAJOR".0"
LVCOMP_VERSION=$LV_VERSION_MAJOR".0"
LV_YEAR=20$LV_VERSION_MAJOR
LV_R_YEAR="2023"
LV_R_YEAR_ID=2023
VI_ANALYZER_VER_YEAR=2023
LV_DISPLAY_VERSION="LabVIEW 2023 Q3"

LABVIEW_OPEN=$(pgrep LabVIEW)
while [ "$LABVIEW_OPEN" ]; do
echo "Please quit LabVIEW, then press any key to continue."
read -n1 -s
LABVIEW_OPEN=$(pgrep LabVIEW)
done

if [ -e "/Applications/National Instruments/LabVIEW $LV_R_YEAR 64-bit/LabVIEWCommunity.app/Contents/MacOS/LabVIEWCommunity" ]; then
LV_64_INSTALLED="true"
UNINST_LABVIEW_64="true"

fi

if [ "$1" != "-q" ]; then
SHOW_WARNING="true"
echo -n "Would you like to know what files Uninstall.sh will remove? (Y/N) [Y]: " ; read ans
case "$ans" in
n*|N*)
SHOW_WARNING="false";
esac
fi

if [ "$SHOW_WARNING" = "true" ]; then
echo "NI $LV_DISPLAY_VERSION 64-bit installs many files."
echo
echo "Running this uninstaller will uninstall $LV_DISPLAY_VERSION 64-bit."
echo "Save important files to another location before uninstalling $LV_DISPLAY_VERSION 64-bit (changed files in vi.lib, for example)."
echo
echo "Files NOT removed for $LV_DISPLAY_VERSION 64-bit:"
echo "---------------------------------- "
echo "[HOME]/Documents/LabVIEW Data"
echo "[HOME]/Library/Preferences/LabVIEW.app $LV_YEAR 64-bit Preferences"
echo "(You must manually remove these files yourself if you want LabVIEW $LV_R_YEAR 64-bit completely removed)"
echo
echo "Files that will be removed for $LV_DISPLAY_VERSION 64-bit: "
echo "----------------------------------- "
echo "/Applications/National Instruments/LabVIEW $LV_R_YEAR 64-bit"
echo
echo "Files shared between multiple versions of LabVIEW, which will only be removed if no LabVIEW folders are found in /Applications/National Instruments or LabVIEW Runtime Engines found in /Library/Frameworks:"
echo "----------------------------------- "
echo "/Library/Application Support/National Instruments/LabVIEW Compare"
echo "/Library/Application Support/National Instruments/LabVIEW Merge"
echo "/Library/Application Support/National Instruments/LVComponentLocationInfo"
echo "/Library/Application Support/National Instruments/NI Spy"
echo "/Library/Application Support/National Instruments/nissl"
echo "/Library/Application Support/National Instruments/NIPythonInterface"
echo "/Library/Application Support/National Instruments/LabVIEW CLI"
echo "/Library/Application Support/National Instruments/Errors/English/LabVIEWCLI-errors.txt"
echo "/Library/Frameworks/nicurl.framework"
echo "/Library/Frameworks/nilibeay.framework"
echo "/Library/Frameworks/nissleay.framework"
echo "/Library/Frameworks/nisslinit.framework"
echo "/Library/Frameworks/niws_repl.framework"
echo "/Library/Frameworks/niPythonInterface.framework"
echo "/Library/Frameworks/tdms.framework"
echo "/Library/Frameworks/NILVRuntimeManager.framework"
echo "/Library/Frameworks/nilvcli.framework"
echo
echo "Files that will be removed for the NI $LV_DISPLAY_VERSION Runtime Engine: "
echo "------------------------------------------------------"
echo "/Library/Frameworks/LabVIEW $LV_VERSION_MAJOR.0 Runtime.framework"
echo "/Library/Internet Plug-Ins/LV"$LV_VERSION_MAJOR"0HelperLauncher.plugin"
echo
echo "Files that will be removed for the NI Example Finder:"
echo "--------------------------------------"
echo "/Library/Application Support/National Instruments/example finder"
echo "/Library/Application Support/National Instruments/nisysapi"
echo "/Library/Application Support/National Instruments/uixml"
echo "/Library/Application Support/National Instruments/nisyscfg"
echo "/Library/Application Support/National Instruments/Errors/English/nisyscfg-errors.txt"
echo "/Library/Application Support/National Instruments/nirpc"
echo "/Library/Preferences/National Instruments/nisysapi"
echo "/Library/Frameworks/nisysapi.framework"
echo "/Library/Frameworks/nisyscfg.framework"
echo "/Library/Frameworks/NI-RPC.framework"
echo
echo "Files that will be removed for the NI Service Locator: "
echo "------------------------------------------- "
echo "/Library/Application Support/National Instruments/Service Locator"
echo "/Library/LaunchDaemons/com.ni.ServiceLocator.plist"
echo
fi

if [ "$1" != "-q" ]; then
UNINSTALL="false"
echo
echo "Would you like to continue uninstalling $LV_DISPLAY_VERSION 64-bit and related products?"
echo "Enter \"Y\" to choose $LV_DISPLAY_VERSION 64-bit and related products to uninstall."
echo "Enter \"N\" to cancel the uninstall process and keep the system as-is."
echo "Enter \"A\" to uninstall $LV_DISPLAY_VERSION 64-bit, and all related products."
echo " (WARNING: This may disable other NI-related products)"
echo -n "(Y/N/A) [N]: " ; read ans
case "$ans" in
y*|Y*)
UNINSTALL="true"
;;
a*|A*)
UNINSTALL="true"
UNINSTALL_ALL="true"
;;
esac
fi

if [ "$1" != "-q" ] && [ "$UNINSTALL_ALL" = "false" ] && [ "$UNINSTALL" = "true" ]; then
UNINST_LABVIEW_64="false"
UNINST_PREFS="false"
UNINST_DATA="false"
UNINST_RTE="false"
UNINST_EXFINDER="false"

if [ "$LV_64_INSTALLED" = "true" ]; then
echo -n "Would you like to uninstall $LV_DISPLAY_VERSION 64-bit? (Y/N) [N]: " ; read ans
case "$ans" in
y*|Y*)
UNINST_LABVIEW_64="true"
esac
fi

echo -n "Would you like to uninstall the NI Example Finder (WARNING: This may disable functionality in other NI products)? (Y/N) [N]: " ; read ans
case "$ans" in
y*|Y*)
UNINST_EXFINDER="true"
esac
echo -n "Would you like to uninstall the $LV_DISPLAY_VERSION Runtime Engine (WARNING: This may disable applications built by $LV_DISPLAY_VERSION 64-bit)? (Y/N) [N]: " ; read ans
case "$ans" in
y*|Y*)
UNINST_RTE="true"
esac
fi

if [ "$UNINSTALL" = "true" ]; then

echo "Proceeding with uninstallation. The Dock may become unresponsive during this process."

if [ "$UNINST_LABVIEW_64" = "true" ]; then
echo "Uninstalling $LV_DISPLAY_VERSION 64-bit..."
sudo rm -rf "/Applications/National Instruments/LabVIEW $LV_R_YEAR 64-bit/"*

IS_EMPTY=$(ls "/Applications/National Instruments/LabVIEW $LV_R_YEAR 64-bit" | grep -c .)
if [ $IS_EMPTY -eq 0 ]; then
sudo rm -rf "/Applications/National Instruments/LabVIEW $LV_R_YEAR 64-bit"
fi

sudo pkgutil --forget com.ni.LabVIEWAppBuilder_x64_$LV_VERSION_RECEIPTS &> /dev/null
sudo pkgutil --forget com.ni.LabVIEWCore_x64_$LV_VERSION_RECEIPTS &> /dev/null
sudo pkgutil --forget com.ni.LabVIEWDocuments_x64_$LV_VERSION_RECEIPTS &> /dev/null
sudo pkgutil --forget com.ni.LabVIEWExamples_x64_$LV_VERSION_RECEIPTS &> /dev/null
sudo pkgutil --forget com.ni.LabVIEWExecutable_x64_$LV_VERSION_RECEIPTS &> /dev/null
sudo pkgutil --forget com.ni.LabVIEWProParts_x64_$LV_VERSION_RECEIPTS &> /dev/null
sudo pkgutil --forget com.ni.LabVIEWVIObjCache_x64_$LV_VERSION_RECEIPTS &> /dev/null
sudo pkgutil --forget com.ni.LabVIEWFullLicense_x64_$LV_VERSION_RECEIPTS &> /dev/null
sudo pkgutil --forget com.ni.LabVIEWProLicense_x64_$LV_VERSION_RECEIPTS &> /dev/null
sudo pkgutil --forget com.ni.LabVIEWStudentLicense_x64_$LV_VERSION_RECEIPTS &> /dev/null
sudo pkgutil --forget com.ni.pkg.lv$VI_ANALYZER_VER_YEAR.vianalyzer.lvsupp_x64 &> /dev/null
fi

if [ "$UNINST_RTE" = "true" ]; then
echo "Uninstalling the $LV_DISPLAY_VERSION Runtime Engine..."
sudo rm -rf "/Library/Frameworks/LabVIEW $LV_VERSION_MAJOR.0 Runtime.framework"
sudo rm -rf "/Library/Internet Plug-Ins/LV"$LV_VERSION_MAJOR"0HelperLauncher.plugin"

sudo pkgutil --forget com.ni.LabVIEWRuntime$LV_VERSION_RECEIPTS &> /dev/null
sudo pkgutil --forget com.ni.LabVIEWNSPlugin$LV_VERSION_RECEIPTS &> /dev/null
fi

if [ "$UNINST_EXFINDER" = "true" ]; then
echo "Uninstalling the NI Example Finder..."
sudo rm -rf "/Library/Application Support/National Instruments/example finder"

sudo pkgutil --forget com.ni.LabVIEWExampleFinder$LV_VERSION_RECEIPTS &> /dev/null
sudo pkgutil --forget com.ni.pkg.lv$VI_ANALYZER_VER_YEAR.vianalyzer.examplefinder &> /dev/null

sudo rm -rf "/Library/Frameworks/nisysapi.framework"
sudo pkgutil --forget com.ni.nisysapi.LibFwk.pkg &> /dev/null
sudo rm -rf "/Library/Application Support/National Instruments/nisysapi"
sudo rm -rf "/Library/Application Support/National Instruments/uixml"
sudo rm -rf "/Library/Preferences/National Instruments/nisysapi"
sudo rm -rf "/Library/Application Support/National Instruments/nisyscfg"
sudo rm -rf "/Library/Application Support/National Instruments/Errors/English/nisyscfg-errors.txt"
sudo rm -rf "/Library/Frameworks/nisyscfg.framework"
sudo pkgutil --forget com.ni.nisysapi.LibAppSupp.pkg &> /dev/null
sudo pkgutil --forget com.ni.nisysapi.LibPrefs.pkg &> /dev/null
sudo pkgutil --forget com.ni.nisysapi.UsrLocalBin.pkg &> /dev/null
sudo pkgutil --forget com.ni.nisyscfg.LibFwk.pkg &> /dev/null
sudo pkgutil --forget com.ni.nisyscfg.LibAppSupp.pkg &> /dev/null

sudo rm -rf "/Library/Application Support/National Instruments/nirpc"
sudo rm -rf "/Library/Frameworks/NI-RPC.framework"
sudo pkgutil --forget com.ni.pkg.nirpc &> /dev/null

fi

# These files may be shared between multiple LabVIEW versions
IS_EMPTY=$(ls "/Applications/National Instruments" | grep -c LabVIEW)
if [ $IS_EMPTY -eq 0 ]; then
echo "Uninstalling LVMerge and LVCompare..."
sudo rm -rf "/Library/Application Support/National Instruments/LabVIEW Merge"
sudo rm -rf "/Library/Application Support/National Instruments/LabVIEW Compare"

sudo pkgutil --forget com.ni.LabVIEWLVCompare$LV_VERSION_RECEIPTS &> /dev/null
sudo pkgutil --forget com.ni.LabVIEWLVMerge$LV_VERSION_RECEIPTS &> /dev/null

sudo rm -rf "/Library/Application Support/National Instruments/LabVIEW CLI"
sudo rm -rf "/Library/Application Support/National Instruments/Errors/English/LabVIEWCLI-errors.txt"
sudo rm -rf "/Library/Frameworks/nilvcli.framework"
sudo pkgutil --forget com.ni.pkg.nilvcli &> /dev/null
fi

# These files may be shared between multiple LabVIEW and Runtime Engine versions
IS_EMPTY=$(ls "/Applications/National Instruments" /Library/Frameworks| grep -c LabVIEW)
if [ $IS_EMPTY -eq 0 ]; then
echo "Stopping the NI Service Locator..."
SERVICEFOUND=$(sudo launchctl list | grep -c com.ni.ServiceLocator)
if [ $SERVICEFOUND -ne 0 ]; then
sudo launchctl unload /Library/LaunchDaemons/com.ni.ServiceLocator.plist
fi
sudo rm -rf "/Library/Application Support/National Instruments/Service Locator"
sudo rm -rf "/Library/LaunchDaemons/com.ni.ServiceLocator.plist"

sudo pkgutil --forget com.ni.LabVIEWServiceLocator &> /dev/null
sudo pkgutil --forget com.ni.LabVIEWServiceLocator.Launchd &> /dev/null

sudo rm -rf "/Library/Application Support/National Instruments/LVComponentLocationInfo"
sudo pkgutil --forget com.ni.pkg.jsonmap &> /dev/null

echo "Uninstalling NI Offline Help Viewer..."
sudo rm -rf "/Library/Application Support/National Instruments/LabVIEW Offline Help Manual"
sudo pkgutil --forget com.ni.LabVIEWOfflineHelpManual &> /dev/null
sudo "/Library/Application Support/National Instruments/Offline Help Viewer/Uninstall.command" &> /dev/null

sudo rm -rf "/Library/Frameworks/niws_repl.framework"
sudo rm -rf "/Library/Frameworks/nicurl.framework"
sudo rm -rf "/Library/Frameworks/nilibeay.framework"
sudo rm -rf "/Library/Frameworks/nisslinit.framework"
sudo rm -rf "/Library/Frameworks/nissleay.framework"
sudo rm -rf "/Library/Frameworks/NILVRuntimeManager.framework"
sudo rm -rf "/Library/Application Support/National Instruments/nissl"

sudo pkgutil --forget com.ni.niwsrepl.LibFwk.pkg &> /dev/null
sudo pkgutil --forget com.ni.nisslcerts.LibAppSupp.pkg &> /dev/null
sudo pkgutil --forget com.ni.nissl.LibFwk.pkg &> /dev/null
sudo pkgutil --forget com.ni.nicurl.LibFwk.pkg &> /dev/null

sudo rm -rf "/Library/Frameworks/niPythonInterface.framework"
sudo rm -rf "/Library/Application Support/National Instruments/NIPythonInterface"
sudo pkgutil --forget com.ni.pkg.nipythoninterface &> /dev/null

sudo rm -rf "/Library/Frameworks/tdms.framework"
sudo pkgutil --forget com.ni.pkg.tdms &> /dev/null

sudo rm -rf "/Library/Application Support/National Instruments/NI Spy"
sudo pkgutil --forget com.ni.LabVIEWNISpySupport$LV_VERSION_RECEIPTS &> /dev/null
fi

if [ "$1" = "-q" ]; then
echo "Removing preferences and LabVIEW Data directories..."
sudo rm -rf "~/Library/Preferences/LabVIEW.app $LV_YEAR Preferences"
sudo rm -rf "~/Documents/LabVIEW Data"
fi

IS_EMPTY=$(ls "/Applications/National Instruments" | grep -c .)
if [ $IS_EMPTY -eq 0 ]; then
sudo rm -rf "/Applications/National Instruments"
fi

IS_EMPTY=$(ls "/Library/Application Support/National Instruments/Errors/English" | grep -c .)
if [ $IS_EMPTY -eq 0 ]; then
sudo rm -rf "/Library/Application Support/National Instruments/Errors/English"
fi

IS_EMPTY=$(ls "/Library/Application Support/National Instruments/Errors" | grep -c .)
if [ $IS_EMPTY -eq 0 ]; then
sudo rm -rf "/Library/Application Support/National Instruments/Errors"
fi

IS_EMPTY=$(ls "/Library/Application Support/National Instruments" | grep -c .)
if [ $IS_EMPTY -eq 0 ]; then
sudo rm -rf "/Library/Application Support/National Instruments"
fi

IS_EMPTY=$(ls "/Library/Preferences/National Instruments" | grep -c .)
if [ $IS_EMPTY -eq 0 ]; then
sudo rm -rf "/Library/Preferences/National Instruments"
fi

echo
echo "The Dock may be unresponsive for several minutes after this process is completed."

echo "Uninstallation complete."
else
echo "Uninstallation canceled."
fi
echo "Press any key to continue."
read -n1 -s

 

They drag the uninstall file into command and hit enter and it should (fingers crossed) delete.

 

 

0 Kudos
Message 3 of 3
(194 Views)