02-23-2022 02:42 AM - edited 02-23-2022 02:44 AM
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?
02-23-2022 05:05 AM - edited 02-23-2022 05:06 AM
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
?
02-23-2022 06:52 AM
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.