NI Package Manager (NIPM)

cancel
Showing results for 
Search instead for 
Did you mean: 

NIPM CLI Install-Root Option

If I run nipkg.exe help install I can find the --install-root=<DIRECTORY>option. It states the following:

Override the default installation root for packages installed by this operation. Applies only to packages with the control file attribute "Plugin: relative-file".

What is this "Plugin: relative-file" attribute and how to configure it?

Michał Bieńkowski
CLA, CTA, CPI

  1. Did someone devote their time to help solve your problem? Appreciate it and give kudos.
  2. Problem solved? Accept as a solution so that others can find it faster in the future.
  3. Contribute to the development of TestStand by voting on the TestStand Idea Exchange.
0 Kudos
Message 1 of 4
(62 Views)

Take a look at Assembling a Relative File Package.

When NI was working on NXG, they were looking at adding relative file packages that could install a package multiple times similar to VIPM. What NXG added is only supported in the CLI and not the GUI. Once NXG development ended, the relative file package work was no longer worked on. 

LabVIEW is the main product that needs/uses relative file packages so I believe LabVIEW is focusing on better support for VIPM packages.

Scott Richardson
https://testeract.com
0 Kudos
Message 2 of 4
(38 Views)

You're talking about NXG, but will it also be possible to use this flag to install LabVIEW packages from a feed into, for example, a working directory? I'm thinking about specifying a project folder where I could install specific packages from my feed to work on a particular project.

Michał Bieńkowski
CLA, CTA, CPI

  1. Did someone devote their time to help solve your problem? Appreciate it and give kudos.
  2. Problem solved? Accept as a solution so that others can find it faster in the future.
  3. Contribute to the development of TestStand by voting on the TestStand Idea Exchange.
0 Kudos
Message 3 of 4
(26 Views)

I think the answer to your question is "no". Looking at the CLI commands and options supported, it looks like the current shipping functionality does not contain the required feature to make relative file packages useful. I think I am remembering what the NXG team was planning to implement and they never got to it.

 

What appears to be implemented already is installing relative packages to a "root" location that would install an "installed.dat" SQLite database file. So when you create a relative package and install it, the directory structure looks like this:

    \installed.dat

    \<PackageName>\

        \<PackageVersion>\

            \<FilesFromPackageDataDirectory>

 

I think the part that is missing from the CLI is the ability to then install the "root" version of the package to other locations on the system, like different versions of LabVIEW.

Scott Richardson
https://testeract.com
0 Kudos
Message 4 of 4
(20 Views)