Need to distribute the ZENworks Management Agent to computers that only have the Novell Client on them and no previous ZENworks version? No problem!
Simply add the section below to your login script, changing paths, tree names and middle tier server names to match your environment. This script was based on the version number of the 6.5sp1b agent. If you are distributing a different agent version you should change the version # to match the one you are distributing.
REMARK **ZENworks Management Agent**
WRITE ""
WRITE "Checking to see if ZENworks Management Agent is installed..."
REGREAD "HKLM,SOFTWARE\Novell\ZENworks,Version"
IF "%99" <> "6.5.84.50204" THEN
WRITE "ZENworks Management agent is not installed. Installing now. Please wait..."
WRITE ""
WRITE "NOTE: COMPUTER WILL RESTART WHEN INSTALLATION IS COMPLETED."
#msiexec.exe /i \\myserver\SYS\public\zenworks\ZfDAgent\English\zfdagent.msi /q STARTUP_APPEXPLORER=1 ADDLOCAL=ALL MT_SERVER_ADDRESS=middletier.my.com LOGIN_PASSIVE_MODE=0 ZENWORKS_TREE=MY-TREE
ELSE
WRITE "ZENworks Management agent is already installed."
ENDIF