I created a snapin that runs a .bat file. If I run the .bat file locally on my computer (not using FOG), it runs fine. Using a FOG Snapin, it looks like it runs, even says successful, but no program is installed.
What is a return code 4?
------------------------------------------------------------------------------
---------------------------------SnapinClient---------------------------------
------------------------------------------------------------------------------
6/1/2016 11:00 AM Client-Info Client Version: 0.10.6
6/1/2016 11:00 AM Client-Info Client OS: Windows
6/1/2016 11:00 AM Client-Info Server Version: 7717
6/1/2016 11:00 AM Middleware::Response Success
6/1/2016 11:00 AM SnapinClient Snapin Found:
6/1/2016 11:00 AM SnapinClient ID: 37
6/1/2016 11:00 AM SnapinClient RunWith: cmd.exe
6/1/2016 11:00 AM SnapinClient RunWithArgs: /c
6/1/2016 11:00 AM SnapinClient Name: Beyond Question
6/1/2016 11:00 AM SnapinClient File: BeyondQuestion.bat
6/1/2016 11:00 AM SnapinClient Created: 2016-06-01 10:56:52
6/1/2016 11:00 AM SnapinClient Args:
6/1/2016 11:00 AM SnapinClient Action:
6/1/2016 11:00 AM Middleware::Communication Download: http://fog-server/fog/service/snapins.file.php?mac=F0:1F:AF:29:BF:C2|0C:84:DC:8E:2B:ED|0C:84:DC:8E:2B:ED|0A:00:27:00:00:0E||00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0&taskid=37
6/1/2016 11:00 AM SnapinClient C:\Program Files (x86)\FOG\tmp\BeyondQuestion.bat
6/1/2016 11:00 AM Bus {
"self": true,
"channel": "Notification",
"data": "{\r\n \"title\": \"Installing Beyond Question\",\r\n \"message\": \"Please do not shutdown until this is completed\",\r\n \"subjectID\": \"snapin-Beyond Question\"\r\n}"
}
6/1/2016 11:00 AM Bus Emmiting message on channel: Notification
6/1/2016 11:00 AM SnapinClient Starting snapin...
6/1/2016 11:00 AM SnapinClient Snapin finished
6/1/2016 11:00 AM SnapinClient Return Code: 4
6/1/2016 11:00 AM Bus {
"self": true,
"channel": "Notification",
"data": "{\r\n \"title\": \"Beyond Question Installed\",\r\n \"message\": \"Installation has finished and is now ready for use\",\r\n \"subjectID\": \"snapin-Beyond Question\"\r\n}"
}
6/1/2016 11:00 AM Bus Emmiting message on channel: Notification
6/1/2016 11:00 AM Middleware::Communication URL: http://fog-server/fog/service/snapins.checkin.php?taskid=37&exitcode=4&mac=F0:1F:AF:29:BF:C2|0C:84:DC:8E:2B:ED|0C:84:DC:8E:2B:ED|0A:00:27:00:00:0E||00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0&newService&json
------------------------------------------------------------------------------