Hello,
I'm trying to deploy a package zipped with these 2 files:
1. SETUP.cmd
echo 'start of the installation' >> C:\Logs\result.txt
START"INSTALLATION THROUGH OCS" /wait MyProgram.exe /S
echo%errorlevel%>> C:\Logs\result.txt
echo 'before reboot' >> C:\Logs\result.txt
shutdown.exe /r /f
echo 'after reboot' >> C:\Logs\result.txt
exit /b %errorlevel%
2. MyProgram.exe. It's a executable created with NSIS.
When I always deploy the SETUP.cmd, it does not reach this part of the code:
echo%errorlevel%>> C:\Logs\result.txt
echo 'before reboot' >> C:\Logs\result.txt
shutdown.exe /r /f
echo 'after reboot' >> C:\Logs\result.txt
exit /b %errorlevel%
After some hours, the package's deployment ends as error due to the timeout. What am I doing wrong? When I launch the SETUP.cmd manually, it works perfectly fine. It does all of the steps from the code.
Thanks in advance for any tip/advice