07-17-2019 08:28 AM
Dear community,
I'm trying to create a batch file that automatically silent installs the packages that I need via the command line of NIPKG, but I'm stuck at the installation part of the batch file.
I have these commands written in the batch file, but what do I need to do when I want to install the specific packages, also provided in this topic?
cd C:\Program Files\National Instruments\NI Package Manager
nipkg.exe
nipkg.exe feed-create "C:\VLI2019_Installer\feeds\labviewPackage"
nipkg.exe feed-add --name= Labview2019feed "C:\VLI2019_Installer\feeds\labviewPackage"
nipkg.exe install -y --accept-eulas [What to fill in here?]
pause
The wanted packages:
ni-labview-2019-core-en ni-labview-2019-runtime-engine-x86 ni-labview-2015-runtime-engine-x86 ni-labview-2019-runtime-engine ni-cvi-runtime-engine ni-distributed-system-manager-2019 ni-license-manager ni-max ni-update-service
The nipkg package files are located under C:\VLI2019_Installer\feeds\labviewPackage
Thanks in advance!
07-17-2019 08:41 AM
It sounds like you are trying to create the deployment media in the batch file instead of just running the deployment media in the batch file. Ideally, you would create a feed and add all packages that you are wanting to install to it. Then, you would create a batch file that would register the feed you created, and then run the installation of packages that are part of that feed. You don't want to create the feed as part of the batch file but instead should already have that created before running the batch file.
If the number of packages is medium to large, it may be worth creating a top level package that has no included components and just lists out all of other desired packages as dependencies and include that in your created feed as well. Then, from the batch file, you can just register your created feed, and then install your top level package.
Also, are you using a VLI? If so, is there a reason you don't want to use the installer provided by the VLI?
07-18-2019 02:58 AM - edited 07-18-2019 03:17 AM
@GreyGrey
The reason why I don't use the VLI, is because I need specific packages.
It's not only Labview that I need, but also these packages:
ni-modulation-toolkit
ni-certificates
ni-usrp
ni-daqmx
ni-labview-nxg-3.0.0-communications
Could you explain what I need to create to be able to silent install the packages with a batch file?
Is it correct that you first create a batch file that creates the feeds and the another batch file to add and install the feeds?
Kind regards,
Kevin
07-18-2019 03:54 PM
Where are these feeds going to live? Are they going to be hosted like on an internal network for others to access? Or would they be added to a USB key and used for installation that way?
Either way, you would just use the command line (no need to use a batch file) to create the feeds and add all the packages to the feed, then you would put that feed and those packages wherever you intend to make them accessible for installation. You would only need to do this once since you are in essence creating the installation media. Once you have that media created, you would just need to create a batch file to interact with the media.
The batch file would just include the "nipkg install ..." command that you included in the OP.