Exit Code=0 but installation does not work

Hi All,

I am about to install application using task action script, and because I have to add some regedit also so I use task action script rather than Software Distribution,

This task will download .bat file and run it locally, because the required file already stored in the local drive

I the log it said "Exit Code =0"
ActionLogMessage: (action:230) Non-Distributed - DownloadsAvailable
ActionLogMessage: (action:230) Action signature verified for Execution
ActionLogMessage: (action:230) starting action
At 22:11:56 -0500 - actionsite (http://iemserver.training.tivoli.edu:52311/cgi-bin/bfgather.exe/actionsite)
Command succeeded (Using download manager collected file) download http://192.168.1.100:52311/Uploads/odfb_achmad.bat (action:230)
Command succeeded copy “__Download/odfb_achmad.bat” “C:\odfb_achmad.bat” (action:230)
Command started - wait “C:\odfb_achmad.bat” (action:230)
At 22:12:07 -0500 -
Report posted successfully
At 22:12:33 -0500 - actionsite (http://iemserver.training.tivoli.edu:52311/cgi-bin/bfgather.exe/actionsite)
Command succeeded (Exit Code=0) wait “C:\odfb_achmad.bat” (action:230)
At 22:12:33 -0500 -
ActionLogMessage: (action:230) ending action
At 22:12:33 -0500 - mailboxsite (http://iemserver.training.tivoli.edu:52311/cgi-bin/bfgather.exe/mailboxsite8351253)
Not Relevant - OneDrive 2016 Achmad (fixlet:230)
At 22:13:06 -0500 -
Report posted successfully

Herewith the .bat file command
C:\onedrive\OneDriveSetup.exe /silent

In the Console it said completed but I can’t find any OneDrive application listed both in Start Menu and Control Panel.
If I double click the .bat file manually the installation will success,

Please advise,

Many Thanks

You could try

waithidden cmd.exe /c c:\onedrive\onedrivesetup.exe /silent

or

waithidden cmd.exe /c C:\odfb_achmad.bat

I find that using the “cmd.exe /c” has resolved similar issues in the past.

Martin

Hi Martin,

I have tried to use waithidden cmd.exe /c but it still same, it shows Exit Code=0 but the I can’t find any OneDriveApplication listed in the Control Panel,

Herewith actionscript that I use,
// Enter your action script here
download http://192.168.1.100:52311/Uploads/odfb_achmad.bat
copy “__Download/odfb_achmad.bat” "C:\odfb_achmad.bat"
waithidden cmd.exe /c “C:\odfb_achmad.bat”

// Enter your action script here
waithidden cmd.exe /c “C:\onedrive\OneDriveSetup.exe”

Please advise,

Many Thanks
Achmad

Hi Alan,

I already know the reason for this,
It caused by the application type. The OneDrive application cannot be installed from Local System user, thats way although the Exit Code=0 it looks does not work,

I know it after using PsExec tools from Microsoft to make sure whether the application can be installed from Local System user or no,

Workaround for this is to run the application from Current User,

Many Thanks
achmad