This content is not available in your preferred language.

The content is shown in another available language. Your browser may include features that can help translate the text.

NI Package Manager Crashes without Error Messages during LabVIEW Installation

Updated Aug 22, 2022

Reported In

Software

  • Package Manager
  • LabVIEW

Issue Details

  • When I install LabVIEW 2021 SP1 after some minutes the installer freezes and then it dissapears from the screen without any error message. In Windows task manager there is no sign for any running NI installation process. 
  • My LabVIEW installation has failed without an error message the Package Manager log file says the following error:
===== 2022-Mar-02 20:53:22.813537 =====
Exception in PreInstall::LaunchPackageManager. Error code: -126309
Launched NI Package Manager, but it returned an error
-126309: Error '-1073740791' occurred when launching NI Package Manager.
File: source\preinstall\Main.cpp
Line number: 737
  • Whenever I try to update or install NI Package Manager, I receive the following error:
    NI Package Manager cannot launch because this user account does not have administrative privileges.
     

    package mgr admin.png

Solution

This error occurs when Package Manager tries to install a package that loads files from the %temp% directory to which it was temporarily extracted. This could happen when the permissions for the %temp% directory have been changed from the default or are corrupted. 

The following steps will determine if your Windows Temp directory permissions have been modified and reset them to their default values if they have been modified: 
  1. Open the Run dialog by using Windows + R keyboard shortcut. Enter %localappdata% and click OK
  2. In the Windows explorer window that opens, right-click on Temp folder and select Properties.
  3. Navigate to the Security tab. 
If there are no permissions assigned to the Temp folder as shown in the image below, then the Temp directory permissions are incorrect and are likely the source of this error.
image.png
If the above step indicates that the Temp directory permissions are incorrect, then follow the steps below to reset them to the default inherited permissions: 
  1. Open the command prompt as an administrator. 
  2. Run the following command, which will reset the Windows Temp folder permissions to its default permissions: icacls %temp% /q /c /t /reset 
Note: It may display errors like Access is denied for certain folders or files. Those can be safely ignored.
  1. After the permissions have been reset, re-run the NI installer.

Additional Information

You can also try to run the installer with administrator rights by right clicking the installer and selecting Run as administrator.