Error "NI LXI Discovery Service Could Not Be Stopped" in Package Manager

Updated Nov 15, 2022

Reported In

Software

  • Package Manager

Issue Details

  • I am trying to install software through NI Package Manager and I keep seeing an error that reports that "NI LXI Service could not be stopped". What's causing this?
  • I am upgrading PXI Platform Services but Package Manager shows the error below. I have administrator privileges. How can I fix this?
An error occurred while upgrading from package <package name> to <package name>

Additional error information:
An error occurred while installing the MSI at 'NIVISAENETPassport.msi'. Service 'NI LXI Discovery Service' (niLXIDiscovery) could not be stopped. Verify that you have sufficient privileges to stop system services.


PM PPS Error.jpg

Solution

This error occurs due to insufficient privileges. Check the points below to resolve this error:
 
  • Ensure that full control has been enabled for the LXI Discovery executable.
    1. Navigate to C:\Program Files (x86)\National Instruments\Shared\NI-VISA.
    2. Right-click on niLxiDiscovery.exe and select Properties.
    3. In the pop-up window, select the Security tab.
    4. Ensure that Full Control has been allowed for your user account.
  • Ensure that you're launching Package Manager as an administrator.
    1. Search for "NI Package Manager" in the Windows start menu.
    2. Right-click the application and select Run as administrator.
  • Manually stop the LXI Discovery Service and restart the software installation.
    1. In the Windows start menu, search for "Services" and launch the application.
    2. Scroll through the services to locate NI LXI Discovery Service.
    3. Right-click on the service and select Stop.
    4. Retry the software installation. Note: Ensure that you restart the service after the installation completes.