NBInstallAnswer file CLIENT silent install
Hello everyone,
I'm attempting to perform a silent installation on some client machines. My ultimate goal is to automate the procedure, but I'm encountering some issues.
Even after correctly populating the /tmp/NBInstallAnswer.conf file, I'm still being interactively prompted to confirm if I want to proceed with the installation, and subsequently asked to enter the Primary Server information, etc.
I'm certain that the NBInstallAnswer.conf file is being read correctly because the ACCEPT_EULA parameter is processed properly. (I've included a screenshot where I explain that I added the "Proceed to install" message in the source code to verify it's being read.)
Here my NBInstallAnswer.conf
Additionally, I tried performing a push installation from the Primary Server to the same client using the same answer file, and the installation proceeded without requiring interaction (after exchanging keys with the Primary Server) and completed successfully.
Has anyone experienced the same issues or found a solution?
Thank you all.
I managed to find a solution that, while not the cleanest, might be useful for anyone facing the same issue. I modified the script NBClients/catalog/anb/client.inst as follows:
- Modify the confirm function: Locate the confirm function and have it immediately return 0.
- Automate the input of the Primary Server hostname: Find where the script prompts for the Primary Server hostname and make it read the value directly from the NBInstallAnswer.conf file.
Even though it's not the most elegant solution, it allows the installation to proceed without manual interaction.