This is caused because the task type “application” expects to run an executable file. This can be seen by looking at the tasks.xml from the task engine “Task Error” screen.
As an example, Application Pre Install task contains a zip file with mybatchfile.bat.
The parameter command line would be “mybatchfile.bat” .
The task will fail with a return code of 2.
View the tasks.xml file by selecting "Edit Task.xml file with Notepad"
- Making note of the task ID. In this example "50"
- Scroll down until the noted task ID is found.
- Examine "Exe"
The application task is expecting to run a .exe file extension.
my task
Y:\preinstall\50\contents
Application
Exe
15437037a61908