Please find the below. i tried for installing and uninstall for the below batchfiles in the AD login script
msiexec.exe /x "\\testsrv\test.msi" ALLUSERS=3 /quiet /norestart
msiexec.exe /i "\\testsrv\testnew.msi" ALLUSERS=3 /quiet /norestart
Able to run both the Batch file individually. but i want to know is there any options to run this file in a single batch file and need to uninstall the old version and install the latest version of the Msi file in the user system at the same time. Also need to know if the new version is installed, it should skip the installation since its already been installed.
Please let me know is there any command or script to perform this task.