NI Package Manager (NIPM)

cancel
Showing results for 
Search instead for 
Did you mean: 

How to find feed URI for the package I want to install using CLI

How to find feed URI for the package I want to install using CLI?

 

I found the below hint, which suggests that I can't find URI without prior installation. Is this still true? I really can't determine it without installing it? If so then it is really lame.


@CL_eisenwr wrote:

The easiest way to find the feed information is to first manually install the package. NI software will automatically add its feeds to NIPM. In the NIPM GUI, check Show available packages and feed management tools to see all the added feeds. There is now FEEDS tab in the configure gear menu. Each "major" tool (DAQmx, LabVIEW, drivers) have their own matching name feed. However if you know the package name, you can find the feed via the command line: nipkg.exe list-source-feeds package-name

Then you can install the same way as the marked solution on another PC. Also you can use NI Package Builder to build a package installer with all the packages you want installed together. The package installer can be run without user intervention via command line.


Is this new feature means that if I want to install LabVIEW (or other NI soft) using CLI I don't need to explicitly specify feed?

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 3
(1,803 Views)

I realized that in the NIPM folder I can find some .NET DLLs I could use to create some kind of feeds search tool. In the attachment is what I was able to get with 0 documentation. It seems doable. There is StoreApi constructor from Store assembly which requires userAgent string input. I have no idea what it is supposed to be. It seems like it needs to be generated. Inside of NIPMP exe I found something like get_NipkgUserAgent and ConstructUserAgent. So, it might not be as simple as some constant value. But anyway, can someone help with it? What should I wire as userAgent?

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 2 of 3
(1,773 Views)

It seems that the userAgent should be Microsoft Edge/98.0.1108.56 Windows but StoreApi doesn't want to initialize anyway... It is not as simple as I thought.

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 3
(1,763 Views)