This document is part of the NI Package Management Portal.
Distribute Packages Using NI Package Manager
If you create a single package that does not have any dependencies, you could install that package by simply double-clicking the .nipkg file on a computer that has NI Package Manager (NIPM) installed.
If your package has dependencies or you want end-users to browse/install your package using the NI Package Manager GUI, then you should follow the instructions below:
1) Create a feed
If you do not have an existing feed yet, create a feed using one of the following methods:
NIPM CLI Method
Example
Let’s say you have placed several packages (.nipkg) on a network folder at “\\mycompany\Feeds\My Feed”, and you want to create a feed in the same folder as these packages. You would run the following command in the NIPM CLI, and see the following output.
Your feed folder would then look like this. NI Package Manager created the feed manifest files (Packages, Packages.gz, Packages.stamps) in the “\\mynetwork\Feeds\My Feed” directory using the package (.nipkg) files in “\\mynetwork\Feeds\My Feed” directory.
Feed Manager GUI Method
If you would prefer to use a GUI and you have LabVIEW 2014 or later, then you can use the Feed Manager GUI (created in LabVIEW).
Note: Launching the NIPM Feed Manager launches a VI. The VI resides in the <labview>\project\NIPM Feed Manager directory. You can modify the VI to suit your needs.
2) Publish your package to the feed
There are two methods to publish your package to a feed. You can either use the NIPM CLI or a Feed Manager GUI.
NIPM CLI Method
Example
You have already created a feed at \\mynetwork\Feeds\My Feed. Now you want to add your compdemo-main_1.0.0-7_windows_x64.nipkg package file to this feed. First, you can copy the package file to the same directory as the other packages in this feed. Then, you would run the following command in the NIPM CLI, and see the following output.
Feed Manager GUI Method
If you would prefer to use a GUI and you have LabVIEW 2014 or later, then you can use the Feed Manager GUI.
3) Register the feed on the target computer
4) Install the package on the target computer using the NIPM GUI
5) Update source files and package on development computer
Do the following on your development computer:
6) Install the update on the target computer using the NIPM GUI
I have found a bug that prevented me from installing packages published with this tool. In the support VI "Read Feed INI.vi" the Package Destination Folderpath should have the input "read raw string" set to True. (Well, it should actually be using a path, not a string). Otherwise if the path is a network folder beginning "\\" one of the slashes is removed and instead of being a network path it becomes a relative path.
@allen_h
Is there way to automate "Register the feed on the target computer"? I have noticed that NI had a package that installed/updated a NIPM Feed.
Great hint there @Gregory ! I had exactly the same problem and was wondering what was exactly happening - saved me a lot of time 😉
Thanks a lot !
Sincerely yours,
Denis