LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ni-driver installation from docker

Hi, i want to install the daq driver from in windows docker. i used this commands in the dockerfile:

# Use an official Python runtime as a parent image
FROM mcr.microsoft.com/windows/servercore:ltsc2019

# Define the work dir
WORKDIR /home/automation

# Download and install Python
RUN ["powershell", "Invoke-WebRequest -Uri https://www.python.org/ftp/python/3.7.9/python-3.7.9-amd64.exe -UseBasicParsing -OutFile python-installer.exe"]
RUN ["powershell", "Start-Process python-installer.exe -Wait -ArgumentList '/quiet InstallAllUsers=1 PrependPath=1'"]
RUN ["powershell", "Remove-Item python-installer.exe"]

# Download and install ni-driver
RUN ["powershell", "Invoke-WebRequest -Uri https://download.ni.com/support/nipkg/products/ni-d/ni-daqmx/23.5/online/ni-daqmx_23.5_online.exe -OutFile ni-daqmx_installer.exe"]
RUN ["powershell", "ni-daqmx_installer.exe --passive"]
RUN ["powershell", "Remove-Item ni-daqmx_installer.exe"]

bassicaly this is the command i use in powershell:
ni-daqmx_installer.exe --passive

but for some reason the installation isnt complete, only manually i can complete it.

 

can someone help me figure out how to complete the installation passively/quietly?

 

p.s. i couldnt find the right subject for it sorry

0 Kudos
Message 1 of 3
(716 Views)

A challenging aspect of LabVIEW is installing it.  I always volunteer to do it for my colleagues and students.  NIPM was "supposed" to help automate it, but we aren't there, yet.  I'm a believer in "installing the minimum necessary", but even then, a trouble-free installation of LabVIEW is, in my experience, has, at best, a 40% chance of success on the first try.

 

Based on my own experience with hundreds of LabVIEW installations, I cannot imagine an "automated" installation (at least, not at the present time).

 

Bob Schor

0 Kudos
Message 2 of 3
(657 Views)

Yehonatan, the issue is likely that almost all NI software installed non-interactively must specify --accept-eulas due to the NI license agreement that is minimally displayed when run interactively, and you may need to consider --prevent-reboot as well. You can refer to Automating an Installer for more information.

 

FWIW, I am not that familiar with using docker, but when I did this a while ago, I believe that any NI software installation that installs a kernel driver would error. However, if you are able to install interactively, non-interactive should also just work.

Scott Richardson
https://testeract.com
0 Kudos
Message 3 of 3
(644 Views)