Thanks @JasonWalker. I am not using Software Deployment Wizard. I am trying to write action scripts that uses exe and msi installers to install the applications on D: drive. The environment uses D: drive for most the cases.
For update, the script will check where the application is installed and then push it to that path. Will it automatically install update on the path which is used for the previous installation?
For new installation, the script will check whether other packages are installed on “c:\Program Files (x86)” or on “d:\Program Files (x86)” and then install the new one on to that path.
Any idea on the exe parameter for TARGETDIR?