Automating Uninstallation of NI SoftwarePrimary Software: NI Installers>>Installer FrameworkPrimary Software Version: 2.6 Primary Software Fixed Version: N/A Secondary Software: N/A
Problem: How can I automate the uninstallation of National Instruments software? Solution:
Warning: To uninstall a specific product, you may need to use the flag /ForceDependents. However, this forces the uninstallation of all dependent products, which could include all NI software installed on your computer. For more information on this flag, please see below.
Uninstaller Modes:
To uninstall all NI software installed on the system:
uninst.exe /qb /x all
To uninstall specific NI software:
uninst.exe /qb /ForceDependents /x "product name"
/ForceDependents: The /ForceDependents flag is optional, though recommended, because it forces products that have a dependency on the specified product to also be uninstalled. If this flag is not specified, and the specified product is depended upon by another product, then the uninstall will fail without uninstalling any products. For example, assume you have a system that has the LabVIEW 8.0 Run-time Engine and NI DAQmx 8.0 installed. You want to remove only the run-time engine, so you use the following command-line: uninst.exe /qb /x “NI LabVIEW Run-Time*” /log: To create a log of the uninstallation, use the /log logfilename.txt flag. Note that the log file can become very large.
Error Codes
What Versions of NI Installers Support Automated Uninstallation? The flag /qb /x all is supported if there is a product installed on your system that was shipped with NI Installers 2.0 or higher. The remaining flags were added with NI Installers version 2.6 or higher. To learn how to determine the version of your installer, see the related links below (the type is not important in this case). Alternatively, you can check the version of uninst.exe on your system instead of setup.exe on the media. The version of this file will reflect the latest version of NI Installers on your system. Related Links: KnowledgeBase 4CJDP38M: Automating the Installation of National Instruments Software Attachments:
Report Date: 04/22/2008 Last Updated: 04/24/2008 Document ID: 4KLG5OH0 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||

