From Saturday, Nov 23rd 7:00 PM CST - Sunday, Nov 24th 7:45 AM CST, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

NI Package Manager (NIPM)

cancel
Showing results for 
Search instead for 
Did you mean: 

How to automate download and install of ni package manager NI-DAQmx 2024 Q2 for windows 64 bit

Solved!
Go to solution

Hey, I need suggestions on how to automate the download and install of NI-DAQmx 2024 Q2 package manager. The url I got is "

 
If anyone could point me towards the right url, that would be great.
0 Kudos
Message 1 of 10
(895 Views)

Try the offline version,

 

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000YGjPCAW&l=en-US

 

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
Message 2 of 10
(868 Views)

I meant how to get the nipkg.exe in the first place via batch scripts?

for this command to work, nipkg.exe needs to be present there. Even that guide says to install the package manager in an online machine via web

 

how to automate the whole process so user only clicks the batch file and it installs the ni-daqmx software.

 

nipkg.exe install ni-daqmx

 

0 Kudos
Message 3 of 10
(844 Views)

Try something like (I believe I got the link from the offline installer already mentioned, but it's maybe fiddly, I don't completely recall)

 


ARG NIPM_Url="https://download.ni.com/support/nipkg/products/ni-package-manager/installers/NIPackageManager21.0.0...."

 

RUN powershell.exe -Command `

    $ErrorActionPreference = 'Stop'; `

    Invoke-WebRequest -Uri $env:NIPM_Url -OutFile nipm_installer.exe ; `

    # Install NIPM

    Start-Process -wait .\nipm_installer.exe `

        -ArgumentList '--passive','--accept-eulas','--prevent-reboot' ; `

    # Remove the installer

    Remove-Item nipm_installer.exe;

 

These are taken from a Dockerfile, but should give clues for normal command line usage.

 

For context, see https://github.com/oist/LabVIEW_Dockerfiles/blob/main/Dockerfile.BaseNIPM#L7-L14


GCentral
Message 4 of 10
(833 Views)

Hey, 

 

Thanks for the reply. That link works and it installs the ni package manager.

 

Now I am encountering issue while installing ni-daqmx  saying

 

Unable to locate package with a compatible version and architecture.

 

Do you know any work around this problem?

0 Kudos
Message 5 of 10
(799 Views)

Glad it helped.

 

For DAQmx, sure - basically the problem (I'm guessing, since I haven't seen what you've done exactly) is that there are no appropriate feeds registered containing the package you need.

 

This will be true for quite a lot of packages - and the solution is to add them using the feed-add command for nipkg.exe.

I'm not sure which (if any) feeds are automatically included with NIPM, but since you're asking about DAQmx (and not immediately LabVIEW) I guess LabVIEW's source feed is included.

 

To find the arguments needed for the nipkg feed-add commands, the most common approach (that I know of) is to install the thing you want manually on another PC (or if you already have it installed, great), and then run a (set of, if required) command(s) like

 

nipkg list-installed ni*daqmx* // This command accepts glob patterns (*)
nipkg list-source-feeds ni-daqmx // This command requires exact names, taken from the previous results

returning results like (depending on your registered feeds, i.e. whatever you manually installed):

nipkg list-source-feeds ni-daqmx
ni-daqmx-20-0-released  https://download.ni.com/support/nipkg/products/ni-d/ni-daqmx/20.0/released
ni-daqmx-17-5-0-beta2-released  http://download.ni.com/support/nipkg/products/may2017beta2/ni-daqmx/17.5.0/released/


You can then run something like 

nipkg feed-add --name="ni-daqmx-20-0-released" --system https://download.ni.com/support/nipkg/products/ni-d/ni-daqmx/20.0/released

using the two values provided by the list-source-feeds command (--system adds it as a system-wide feed).

 

If you'd like a list of potential feeds, or a script that adds them, you can also look at the AddFeeds.ps1 script in the repository I linked before.


GCentral
Message 6 of 10
(792 Views)

Hey,

 

Thanks for the reply again.

I tried to run the command in cmd before automating it. It gives the following errors:

Error -125104: Unable to locate one or more packages with a compatible version and architecture in the registered feeds.
Additional error information:
Error -125103: Unable to locate package 'ni-daqmx' with a compatible version and architecture in the registered feeds.

0 Kudos
Message 7 of 10
(786 Views)

After you do the nipkg.exe feed-add, you then need to call nipkg.exe update so-as to update the local cache. These options are separate commands as you might want to add a number of feeds, then do the more expensive update operation only once.

Message 8 of 10
(765 Views)

Brother,

 

when I run 

nipkg list-source-feeds ni-daqmx 

it is giving error as follows:

 

Error -125104: Unable to locate one or more packages with a compatible version and architecture in the registered feeds.
Additional error information:
Error -125103: Unable to locate package 'ni-daqmx' with a compatible version and architecture in the registered feeds.

 

So, it seems there are no feeds to add or update.

0 Kudos
Message 9 of 10
(730 Views)
Solution
Accepted by topic author automate44

Hey,

 

Thank you for the all the help provided to me.

 

I have managed to figure it out and created a gist to help others as well. Below is the link for the gist.

 

It also has instructions to figure out feed url for any product of ni.

 

https://gist.github.com/Sbasu2512/3e81c271573567fd3ecd46838d79664c

 

Thanks and regards to this awesome community.

0 Kudos
Message 10 of 10
(726 Views)