NI Package Manager (NIPM)

cancel
Showing results for 
Search instead for 
Did you mean: 

Error "unknown root name: myinstalldir", when installing custom package!

Solved!
Go to solution

I am evaluating NIPM for custom/personal packages. I used it for NI packages just fine.

I used NIPM cli to create a package. 

 

Here are my control file contents:

Architecture: windows_x64
CompatibilityVersion: 185002
Description: Test Kata Files
DisplayName: katafiles released feed
DisplayVersion: 1.0.0
Essential: no
Homepage: http://www.xyz.com/
Maintainer: xyz<kata@xyz.com>
Package: test-kata-package
XB-Plugin: file
Section: Feed
Version: 1.0.0

 

I am able to build the package, create a feed, find my package on that feed, all ok.

When I click install, I get the error: (see NIPM-error.png)

 

I cannot find anything on this specific error. I am using 18.5.1 ... and need help understanding why this is happening.

 

Thanks in advance.

-Kamran

 

 

 

0 Kudos
Message 1 of 4
(3,442 Views)
Solution
Accepted by kamrantav

Kamran,

I'm going to assume that you have a folder hierarchy such as:
c:\some\path\on\disk\mypackage\data\myinstalldir\some_file.txt

 

This is not going to work because NI Package Manager expects to find only valid target root directories in 'data' folder  (e.g ProgramFiles, Temp, System, etc...), and 'myinstalldir' is not. The list of valid root directories is documented here:

http://www.ni.com/documentation/en/ni-package-manager/latest/manual/installation-target-roots/

 

Instead you need to select the desired target root directory, and then 'myinstalldir' like this:

c:\some\path\on\disk\mypackage\data\ProgramFiles\myinstalldir\some_file.txt

 


You can find more information regarding package creation here:

http://www.ni.com/documentation/en/ni-package-manager/latest/manual/package-creation/

 

Hope this helps!

Daniel

__________________
Daniel Jaramillo
National Instruments
Message 2 of 4
(3,434 Views)
Solution
Accepted by kamrantav

Also, you should change the category (aka Section) of the package in the control file.

The attribute you are using (Section=Feed) is used to indicate that the package contains a feed which is something older versions of NIPM used to register feeds on the system.

 

You can find the available Section options here:

http://www.ni.com/documentation/en/ni-package-manager/latest/manual/control-file-attributes/

 

__________________
Daniel Jaramillo
National Instruments
Message 3 of 4
(3,430 Views)

Hi Daniel, Wow, Impressed with the quick response!! Thanks a million!!

 

You are right, I will adjust things and try again. The documentation sounded like “anywhere was possible” given it was just random test files.

0 Kudos
Message 4 of 4
(3,424 Views)