====== NI Package Manager ======
[[https://www.ni.com/de-de/support/downloads/software-products/download.package-manager.html|NI Package Manager Download]]
[[https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000g18jSAA&l=de-DE|Silent installation of NI Package Manager]].
===== FAQs =====
==== Error during installation of packages ====
Invalid checksum for package \somepackagename.nipkg
Please check your internet connection and try again.
* http://forums.ni.com/t5/LabVIEW/LabVIEW-NXG-1-0-installation-error-quot-Check-Internet/m-p/3635351#M1020794
- Close NI Package Manager
- Go to ''C:\ProgramData\National Instruments\NI Package Manager\Downloads\''
- Double-click on ''ni-labview-ng-1.0-released.nipkg'' and install the package
- Double-click on ''ni-labview-ng-1.0-released-critical.nipkg'' and install the package
- Restart NI Package Manager and try installing the package again
==== Restore space from downloaded packages ====
The NI Package Manager stores all downloaded packages (*.nipkg) under ''C:\ProgramData\National Instruments\NI Package Manager\packages''. Usually, these files are no longer needed by LabVIEW and can be removed to get used drive space back.
See also: https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019KdtSAE&l=de-DE
==== Store SystemLink Credentials in .lvproj ====
By default, LabVIEW does not store user credentials for SystemLink Feeds inside the LabVIEW project file. You can modify the .xml source of the .lvproj file manually to store the credentials persistently. Add the following entries to the corresponding build spec of your LabVIEW project:
####
####
Beware that even only opening and looking at the build spec in the LabVIEW IDE will remove those manual entries!
----
===== Debugging =====
==== Errors ====
//Courtesy Neil Pate//
Errors are logged to: ''C:\Users\\AppData\Local\National Instruments\NI Package Manager\Logs''
Under the hood the packages are MSI files, to get more detailed logging information run this command:
"C:\Program Files\National Instruments\NI Package Manager\nipkg.exe" config-set nipkg.plugin.wininst.msilogs-enabled=true
Additional information is available inside here:
{{:kb:labview:tools:wininstmsi.png?600|}}
----
===== Command Line Interface =====
* http://www.ni.com/documentation/en/ni-package-manager/1.0/manual/cli-package-manager/
You can use Package Manager's command line interface (CLI) to silently install and remove NI software, build and manage packages, and view the current state of your system.
To invoke the CLI, navigate to ''C:\Program Files\National Instruments\NI Package Manager'' from the Command Prompt and then enter ''nipkg''. The built-in help for the CLI is displayed.
You can access help for the CLI at any time by typing ''nipkg help''. For help on a specific command, type ''nipkg help command''.
==== Downloading a Package with Dependencies ====
It can be necessary to provide a package for offline installation. In this case, it's important to also provide all dependencies to the package, too. With the following command, a specific package with all needed dependencies can be downloaded.
>> nipkg download --all-deps PKG-NAME
The packages will be downloaded into the current working directory. Use the option ''--destination-dir='' to specify another destination.
To find the correct internal name of a package, you can use the Package Manager GUI. Find the package in the list of installed packages and point to the row with the searched package. The context help will display the internal package name. E.g. ''ni-labview-2020-runtime-engine-x68'' for the LabVIEW 2020 (32-bit) Runtime, see image below.
{{:kb:labview:nipkg_find_name.png?direct&600|}}
----
===== LabVIEW Package Builder =====
* Available from [[https://www.ni.com/de-de/support/downloads/software-products/download.ni-package-builder.html#342093|NI Downloads Website]]
* Last version to support anything but NXG5 and LV2020: NIPB 20.0
* https://forums.ni.com/t5/LabVIEW/NI-Package-Manager/td-p/3634594
{{:kb:labview:labview_package_builder.png?direct&600|}}