Quantcast
Channel: Microsoft Deployment Toolkit forum
Viewing all articles
Browse latest Browse all 11297

Pass exit code from batch file to MDT 2012?

$
0
0

So i have batch file that creates some directories, sets up the path for log files before i install an application ( msi installer).

It goes something like this :

MD C:\mylogfolders
Set logfilename = C:\mylogfolders\appl1-date.log
msiexec /i app1.msi /qb REBOOT="ReallySuppress" /l*e "%logfilename%"
exit /B %errorlevel%

This batch file was imported into MDT along with the msi files, and the silent command is running this batch file.

The installation works fine, the log produced also indicates it is successfully installed, with error code 0. I double confirmed the errorlevel variable is 0 by echoing it.

But at the summary pane, it always shows warning with error code 255 for this application. Is there any other way to pass the error code to MDT??


Viewing all articles
Browse latest Browse all 11297

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>