# Installation
This chapter describes the procedure required to install SEC on Windows, MacOS, and Linux operating systems. For the list of supported operating systems, refer to Minimum system requirements.
## Minimum system requirements
The tool runs on Microsoft\(R\) Windows\(R\), Ubuntu, and macOS operating systems. The detailed system requirements are specified in *MCUXpresso Secure Provisioning Tool Release Notes* (document MCUXSPTRN, section *System requirements*). The document also describes what debug probe drivers should be installed. These drivers might also be needed for communication with the processor in ISP mode where the probe provides USB to UART/SPI/I2C converter.
## Windows
To install SEC as a desktop application on a local host, perform the following steps:
1. Visit the NXP website to download the SEC installer for Windows.
2. Double-click the `MCUXpresso_Secure_Provisioning_.exe` installer to begin installation.
3. On the first page of the wizard, click **Next**.
```{eval-rst}
.. figure:: _images/1.png
:scale: 80%
:align: center
**MCUXpresso Secure Provisioning Tool Setup**
```
4. On the **End-User License Agreement** page of the wizard, select **I accept the terms of the License Agreement** and click **Next**.
```{eval-rst}
.. figure:: _images/la_latest.png
:scale: 80%
:align: center
**Accepting the end-user license agreement**
```
5. On the **Select Installation Folder** page of the wizard, select **Browse** and navigate to a destination folder you want to install the SEC to and click **Next**.
```{eval-rst}
.. figure:: _images/path_latest.png
:scale: 80%
:align: center
**Selecting installation folder**
```
6. On the **Configure Shortcuts** page of the wizard, select shortcuts you want to be created for SEC and click **Next**.
```{eval-rst}
.. figure:: _images/4.png
:scale: 80%
:align: center
**Configuring shortcuts**
```
7. On the **Ready to Install** page of the wizard, select **Install**.
The setup begins the installation.
**Note:** If you want to review or change any of your installation settings, click **Back**. Click **Cancel** to exit the wizard.
The installer prompts you when the installation completes.
```{eval-rst}
.. figure:: _images/5.png
:scale: 80%
:align: center
**Ready to install**
.. figure:: _images/6.png
:scale: 80%
:align: center
**Installing MCUXpresso Secure Provisioning Tool**
```
8. Click **Finish** to close and exit the setup wizard.
```{eval-rst}
.. figure:: _images/7.png
:scale: 80%
:align: center
**Completing installation**
```
9. To start using SEC, run the tool from the desktop shortcut on the desktop or from the **Start** menu. You can also navigate to the *\\bin\\* folder and launch the `securep.exe` or launch the shortcut in the **.
### Windows CLI
It is possible to install the SEC tool using the command line. In this case, use **Run the installer** with the following parameters: start /wait
```
MCUXpresso_Secure_Provisioning_v.exe /exenoui /qn
```
## MacOS
To install SEC as a desktop application on a local host, perform the following steps:
1. Visit the NXP website to download the SEC installer for MacOS. Based on your computer, select either an installer for an Intel or Apple M processor.
2. Double-click the `MCUXpresso_Secure_Provisioning_.pkg` to start the **Install MCUXpresso Secure Provisioning Tool** wizard.
**Note:** When you try to open the MacOS installer, you may receive an error. To avoid it, manually select the option **Mac App Store and identified developers** in the **Security & Privacy** menu.
3. On the **Introduction** page, click **Continue**.
```{eval-rst}
.. figure:: _images/macos2.png
:scale: 80%
:align: center
**Introduction**
```
4. On the **Software License Agreement** page, click **Continue**.
```{eval-rst}
.. figure:: _images/macos3.png
:scale: 80%
:align: center
**Software license agreement**
```
5. Confirm that you have read and agreed to the terms of the Software License Agreement by clicking **Agree**.
```{eval-rst}
.. figure:: _images/macos4.png
:scale: 80%
:align: center
**Accepting software license agreement**
```
6. On the **Destination Select** page, click the green arrow to select the installation folder, and once done, click **Continue**.
```{eval-rst}
.. figure:: _images/macos5.png
:scale: 80%
:align: center
**Select destination**
```
7. On the **Installation Type** page, click **Install**.
```{eval-rst}
.. figure:: _images/macos6.png
:scale: 80%
:align: center
**Installation type**
```
8. Type in your login credentials to continue with the installation and click **Install Software**.
```{eval-rst}
.. figure:: _images/macos7.png
:scale: 80%
:align: center
**Install software**
```
9. Click **Continue**.
Unless errors are reported, the **Summary** page confirms that the installation was completed successfully.
10. On the **Summary** page, click **Close**.
```{eval-rst}
.. figure:: _images/macos8.png
:scale: 80%
:align: center
**Summary**
```
### Enabling USB connection on MacOS
During the first connection to the target by USB, MacOS X Catalina blocks the access to USB HID devices as a security measure and the operation will fail with error. In MacOS 13 \(Ventura\), this works differently and these steps are not needed.
Perform the following steps to enable USB connection:
1. In the OS security alert message box, select **Open System Preferences**.
```{eval-rst}
.. figure:: _images/macerrornew1.png
:scale: 100%
:align: center
**Open System Preferences**
```
2. Unlock **Privacy** preferences to enable changes.
3. Select **MCUXpresso Secure Provisioning **, confirm, and quit the application.
```{eval-rst}
.. figure:: _images/macerrornew2.png
:scale: 100%
:align: center
**Confirm change**
```
4. Lock **Privacy** preferences.
5. If the application was not closed, close it manually.
6. Start the application and proceed with the operation.
## Linux
Installation of SEC on Ubuntu can be done in the Terminal.
1. Visit the NXP website to download the SEC installer for Linux.
2. Open the terminal and change the directory where the installer is downloaded, install using dpkg with sudo.
```
$ cd ~/Downloads
$ sudo dpkg -i ./mcuxpresso-secure-provisioning-__.deb
```
If the command executed with sudo is successful, the setup will install the SEC in the dedicated folder /opt/nxp/.
**Note:** SEC depends on other packages that has to be installed in advance:
```
$ sudo apt install libhidapi-dev libsdl2-2.0-0
```
**Note:** For trust provisioning, additional packages are necessary for the Smart Card access:
```
$ sudo apt install libpcsclite1 pcscd pcsc-tools
```
## Uninstalling
### Windows
Secure Provisioning Tool can be uninstalled in the following ways:
- by using Settings \| Apps & features
```{eval-rst}
.. figure:: _images/uninstalling_1.png
:scale: 60%
:align: center
**Settings**
```
- by navigating into the `%APPDATA%\NXP Semiconductors` and then finding the appropriate MSI installer in the `MCUXpresso Secure Provisioning x.y.z.zz\install\` folder and choosing the **Remove** option in the wizard.
```{eval-rst}
.. figure:: _images/uninstalling2.png
:scale: 80%
:align: center
**MCUXpresso Secure Provisioning setup wizard**
```
### MacOS
Secure Provisioning Tool can be uninstalled by using Finder, navigating to Applications, and moving `MCUX_Provi_vX` into the Trash.
### Linux
Secure Provisioning Tool can be uninstalled by using the Debian package manager.
In the Terminal you can get the list of secure provisioning tools with the package names:
```
$ dpkg --list "mcuxpresso-secure-provisioning*"
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-=======================================-============-============-====================================
rc mcuxpresso-secure-provisioning-tools-v1 1.0.1 amd64 MCUXpresso Secure Provisioning Tools
rc mcuxpresso-secure-provisioning-v2 2.0 amd64 MCUXpresso Secure Provisioning
rc mcuxpresso-secure-provisioning-v2.1 2.1 amd64 MCUXpresso Secure Provisioning
ii mcuxpresso-secure-provisioning-v3 3.0 amd64 MCUXpresso Secure Provisioning
ii mcuxpresso-secure-provisioning-v3.1 3.1 amd64 MCUXpresso Secure Provisioning
ii mcuxpresso-secure-provisioning-v4 4.0 amd64 MCUXpresso Secure Provisioning
```
Now the desired version can be uninstalled:
```
$ sudo dpkg -r mcuxpresso-secure-provisioning-25.03
```
Several versions can be uninstalled at once:
```
sudo dpkg --remove mcuxpresso-secure-provisioning-v2 mcuxpresso-secure-provisioning-v2.1
```
When additional packages have been installed for TP, you might consider to remove them as well:
```
$ sudo apt remove libpcsclite1 pcscd pcsc-tools
```
### Remove configuration files
The user preferences are stored in the folder `\.nxp\secure_provisioning_\` and are not removed by uninstalling the product. These folders can be removed manually. For more details about preferences, see [Preferences](./05_user_interface.md#preferences).
### Remove restricted data
The restricted data are installed in the folder `\.nxp\secure_provisioning_restricted_data\` and are not removed by uninstalling the product. These folders can be removed manually.