Prepare Files on Online Machine
From an online machine that has an internet connection, install and run NI Package Manager to download the files you need. Then, prepare the files before moving them to your offline machine.
- Launch NI Package Manager.
- Find your desired product on the Browse Products tab. Click Install.
In this example, NI Help Viewer will be installed.
- When the installation is complete, navigate to the Installed tab and search for your product. Hover over the product and note its package name in the hover text.
In this example, the package name is ni-help-viewer.
Create Offline Feed
- Open a command window to C:\Program Files\National Instruments\NI Package Manager.
cd C:\Program Files\National Instruments\NI Package Manager
- Execute the following commands to download the package to a destination directory and create the feed.
Note: The destination directory name can be a local folder on the computer (e.g. C:\feeds\myfeed) or a shared network folder (e.g. \\mynetwork\feeds\myfeed).
nipkg.exe download --all-deps --destination-dir="C:\feeds\<Your Folder Name>" <package name>
nipkg.exe feed-create "C:\feeds\<Your Folder Name>"
For example, here are the commands for the NI Help Viewer package:
nipkg.exe download --all-deps --destination-dir="C:\feeds\NI Help Viewer Download" ni-help-viewer
nipkg.exe feed-create "C:\feeds\NI Help Viewer Download"
- (Optional) The download --all-deps command downloads the primary package and all required dependencies. If you are creating an offline feed for a product that also recommends additional optional packages, you must also complete the following commands to include those additional optional packages in the offline feed.
Note: This step does not apply to the NI Help Viewer.
- Execute the following command to determine the package names of the optional recommended packages for your primary package.
nipkg.exe install <package name>
Example
nipkg.exe install ni-daqmx
- Press n not to continue but note the Recommended packages.
- Repeat the download and feed-create commands for each recommended package that you want to include in the offline feed.
nipkg.exe download --all-deps --destination-dir="C:\feeds\<Your Folder Name>" <package name>
nipkg.exe feed-create "C:\feeds\<Your Folder Name>"
- Navigate to the destination directory and move both the NI Package Manager installer .exe and the feed folder you created to the offline machine. If the offline machine can access a shared network folder, move the NI Package Manager installer .exe and feed folder to a shared network folder.
Install Product Packages on Offline Machine
- Install NI Package Manager on the offline machine: You can download the offline installer of NI Package Manager from an online machine by clicking the "Offline Install" button on this website: Package Manager.
- Launch NI Package Manager on the offline machine.
- Click on the Settings gear. Enable the Show available packages and feed management tools checkbox.
- Select Feeds and then click Add.
- Input a feed name. Browse to the folder containing the feed you created in the previous section. Click Add to register the feed on the offline machine.
- In NI Package Manager, navigate to the Packages tab and search for the product. Select the product and click Install to install it.