Method 1: Automatically Mount the ISO Using PowerShell
This method fully automates the mounting, installation, and cleanup process through a PowerShell script.
Note: Make sure to replace C:\Path\To\NI_Installer.iso below with the actual path to your ISO file.
$isoPath = "C:\Path\To\NI_Installer.iso"
$mount = Mount-DiskImage -ImagePath $isoPath -PassThru
$drive = ($mount | Get-Volume).DriveLetter
$exe = "${drive}:\Install.exe"
$proc = Start-Process -FilePath $exe `
-ArgumentList "--quiet","--accept-eulas","--prevent-reboot" `
-Wait -NoNewWindow -PassThru
$exitCode = $proc.ExitCode
Dismount-DiskImage -ImagePath $isoPath
Write-Host "Exit code: $exitCode"
Method 2: Extract the ISO and Deploy the Files
For the initial setup, manually mount the ISO by right-clicking the file and selecting Mount. Once mounted, copy all contents of the installer to a new folder. You can then distribute the new folder to target systems and execute the installation silently. Follow the instructions below:
- Open Command Prompt or PowerShell as an administrator.
- Run the following commands and arguments:
start "" /wait "path of install.exe" --quiet --accept-eulas --prevent-reboot
Method 3: Extract the ISO Using 7-Zip
If 7-Zip is available on the system, you can extract the ISO contents and run the installer directly from the extracted directory.
Note: Make sure to replace C:\Path\To\NI_Installer.iso below with the actual path to your ISO file.
"C:\Program Files\7-Zip\7z.exe" x "C:\Path\To\NI_Installer.iso" -o"C:\Temp\NI_Extracted" -y
start "" /wait "C:\Temp\NI_Extracted\Install.exe" --quiet --accept-eulas --prevent-reboot
echo %errorlevel%