Install/Upgrade/Uninstall Agent by command

Note!: It is easier to use agentinstaller.exe instead of silent msi command, since it has built-in version check. See next chapter.

Install Agent by command

If agents are to be installed in another way than Nilex Network Scanning manager, there are some parameters that need to be provided in order to do a complete silent install, i.e. without dialogs prompting.

The following command is to be used in order to do a quiet install of agent:

msiexec /i FullPath\AgentWin32Setup.msi /qn ENTEREDSERVER=strHost  ENTEREDPORT=strPort USEHARDWARESN=1

Fullpath is complete path to location of agentwin32setup.msi.

strHost is the name of the server where Inventory Service is installed and strPort is the port number which Inventory Service uses.

UseHardware is a setting that, if set to 1, improves generating unique ID for computer.

Upgrade Agent by command

The command for silent uninstall of agent (use for upgrade for example) is:

msiexec /x AgentWin32Setup.msi /qn

Uninstall agent permanently by command

If agent is to be permanently uninstalled with all information cleared then add the parameter CLRFF:

msiexec /x AgentWin32Setup.msi /qn CLRFF=”CLEAR