NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

CI/CD integration

Hey there,

I'm currently setting up a docker container to build a test application against some NI libraries. In order for that to work, I wound need to download and install this package https://www.ni.com/en/support/downloads/drivers/download.ni-daq-mx.html#494676 from command line. I couldn't seem to find the instructions how to do that. Right now the test application is windows-based, but that might change.

 

Thanks,

Slava

0 Kudos
Message 1 of 4
(1,605 Views)

Did you try installation using NIPM?

0 Kudos
Message 2 of 4
(1,532 Views)

I'm still not sure this is the correct forum to post at, but I keep going my attempts 🙂

 

I figured that I need NIPM, but like I mentioned, there was no README how the installer is supposed to work. I finally was able to google this article https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000g18jSAA&l=en-GB , which was supposed to give me what I need, but alas. more questions...

 

First of all, the approach in the article leaves a lot to figure out for the user, like mounting the image on windows, for example (it's not that straightforward as in Linux).

Secondly, it assumes that I'm supposed to run it in cmd, but I have a powershell in my container. Thus the command

start /wait Install.exe --quiet --accept-eulas --prevent-reboot doesn't work any more.

 

I came up with something like this:

`Start-Process -FilePath "${driverLetter}:/Install.exe" -ArgumentList "--quiet --accept-eulas --prevent-reboot" -PassThru -Wait`,

but this also doesn't work, because '-Wait' in 'Start-Process' waits for the whole process tree to be finished, but I see in the task manager that NI Error Reporting Server is still running. Only when I kill it manually, my command returns.

 

I tried to work around it with

`Start-Process -FilePath "${driverLetter}:/Install.exe" -ArgumentList "--quiet --accept-eulas --prevent-reboot" -PassThru | Wait-Process`,

but it returns immediately, I assume because the Installer spawns another process for the installation.

 

And the last part of my rant, I couldn't find how to uninstall NI Package manager from the command line. Another article mentioned to contact the support if I don't have access to "Add / Remove Programs" in the control panel.

 

0 Kudos
Message 3 of 4
(1,506 Views)

Seems you have already found the right person on the NIPM forum 🙂

0 Kudos
Message 4 of 4
(1,476 Views)