Need snapin assistance
-
Can’t seem to get this figured out, have looked at all posts and not getting it. Have created snapin for Adobe Reader DC using 7-zip to create SFX file “AdobeReaderDCInstaller.exe”. This file contains Adobe Reader installer, .MST transform file, and a batch file to run the install command. Snapin deploys okay to …\FOG\tmp but then disappears while fog.log shows this activity.
---------------------------------SnapinClient--------------------------------- ------------------------------------------------------------------------------ 7/30/2016 3:16 PM Client-Info Client Version: 0.11.4 7/30/2016 3:16 PM Client-Info Client OS: Windows 7/30/2016 3:16 PM Client-Info Server Version: 1.3.0-RC-2 7/30/2016 3:16 PM Middleware::Response Success 7/30/2016 3:16 PM SnapinClient Snapin Found: 7/30/2016 3:16 PM SnapinClient ID: 103 7/30/2016 3:16 PM SnapinClient Name: ReaderDC 7/30/2016 3:16 PM SnapinClient Created: 2016-07-30 15:14:24 7/30/2016 3:16 PM SnapinClient Action: 7/30/2016 3:16 PM SnapinClient Pack: True 7/30/2016 3:16 PM SnapinClient Hide: False 7/30/2016 3:16 PM SnapinClient Server: http://192.168.120.19/fog 7/30/2016 3:16 PM SnapinClient TimeOut: 0 7/30/2016 3:16 PM SnapinClient SnapinPack File: 7/30/2016 3:16 PM SnapinClient SnapinPack Args: 7/30/2016 3:16 PM SnapinClient File: AdobeReaderDCInstaller_exe 7/30/2016 3:16 PM Middleware::Communication Download: http://192.168.120.19/fog/service/snapins.file.php?mac=34:17:EB:A6:DA:77||00:00:00:00:00:00:00:E0&taskid=103 7/30/2016 3:16 PM SnapinClient C:\Program Files (x86)\FOG\tmp\AdobeReaderDCInstaller_exe 7/30/2016 3:16 PM SnapinClient Processing SnapinPack AdobeReaderDCInstaller_exe 7/30/2016 3:16 PM SnapinClient Extracting SnapinPack 7/30/2016 3:16 PM SnapinClient ERROR: Cannot find central directory 7/30/2016 3:16 PM Middleware::Communication URL: http://GB-FOGSERVER/fog/service/snapins.checkin.php?taskid=103&exitcode=-1&mac=34:17:EB:A6:DA:77||00:00:00:00:00:00:00:E0&newService&json ------------------------------------------------------------------------------
Can’t seem to find any current documentation on the snapin pack creation process which I’m assuming is used if there is more than a single .msi or .exe file with arguments. Not sure if it’s relevant that my AdobeReaderDCInstaller.exe file is being renamed to AdobeReaderDCInstaller_exe, nor how I’m supposed to tell FOG to run the batch file after extraction. Maybe I’ve overlooked documentation that would clarify this process. I’ve seen https://forums.fogproject.org/topic/289/how-to-make-a-simple-snapin-start-to-finish but the referenced pdf document doesn’t seem to be available. Thank you all for any assistance, or for pointing in right direction!
-
Would you mind updating to RC-4? Also, is this snapin supposed to be in a “snapin pack” form?
-
@Tom-Elliott Will do the update tonight and reply tomorrow. Part of problem is not knowing what a snapin pack is? I have one working snapin which runs a simple batch file but this one is different. Again, I’m assuming a “pack” is appropriate since this one has an executable and transform file and batch file all together.
-
@Tom-Elliott Got update done, tried again same error.
------------------------------------------------------------------------------ ---------------------------------SnapinClient--------------------------------- ------------------------------------------------------------------------------ 7/30/2016 4:11 PM Client-Info Client Version: 0.11.4 7/30/2016 4:11 PM Client-Info Client OS: Windows 7/30/2016 4:11 PM Client-Info Server Version: 1.3.0-RC-4 7/30/2016 4:11 PM Middleware::Response Success 7/30/2016 4:11 PM SnapinClient Snapin Found: 7/30/2016 4:11 PM SnapinClient ID: 104 7/30/2016 4:11 PM SnapinClient Name: ReaderDC 7/30/2016 4:11 PM SnapinClient Created: 2016-07-30 16:11:21 7/30/2016 4:11 PM SnapinClient Action: 7/30/2016 4:11 PM SnapinClient Pack: True 7/30/2016 4:11 PM SnapinClient Hide: False 7/30/2016 4:11 PM SnapinClient Server: http://192.168.120.19/fog 7/30/2016 4:11 PM SnapinClient TimeOut: 0 7/30/2016 4:11 PM SnapinClient SnapinPack File: 7/30/2016 4:11 PM SnapinClient SnapinPack Args: 7/30/2016 4:11 PM SnapinClient File: AdobeReaderDCInstaller_exe 7/30/2016 4:11 PM Middleware::Communication Download: http://192.168.120.19/fog/service/snapins.file.php?mac=34:17:EB:A6:DA:77||00:00:00:00:00:00:00:E0&taskid=104 7/30/2016 4:12 PM SnapinClient C:\Program Files (x86)\FOG\tmp\AdobeReaderDCInstaller_exe 7/30/2016 4:12 PM SnapinClient Processing SnapinPack AdobeReaderDCInstaller_exe 7/30/2016 4:12 PM SnapinClient Extracting SnapinPack 7/30/2016 4:12 PM SnapinClient ERROR: Cannot find central directory 7/30/2016 4:12 PM Middleware::Communication URL: http://GB-FOGSERVER/fog/service/snapins.checkin.php?taskid=104&exitcode=-1&mac=34:17:EB:A6:DA:77||00:00:00:00:00:00:00:E0&newService&json ------------------------------------------------------------------------------
Given my lack of understanding of the snapin process, I’m sure FOG is fine, I’m just not telling it the right things…
-
@gwhitfield you can change the snapin type right in the snapin now, if you change it from pack to just normal does it work for you?
-
@Tom-Elliott When changed from pack to normal I get this response:
------------------------------------------------------------------------------ ---------------------------------SnapinClient--------------------------------- ------------------------------------------------------------------------------ 7/30/2016 8:52 PM Client-Info Client Version: 0.11.4 7/30/2016 8:52 PM Client-Info Client OS: Windows 7/30/2016 8:52 PM Client-Info Server Version: 1.3.0-RC-4 7/30/2016 8:52 PM Middleware::Response Success 7/30/2016 8:52 PM SnapinClient Snapin Found: 7/30/2016 8:52 PM SnapinClient ID: 105 7/30/2016 8:52 PM SnapinClient Name: ReaderDC 7/30/2016 8:52 PM SnapinClient Created: 2016-07-30 20:50:52 7/30/2016 8:52 PM SnapinClient Action: 7/30/2016 8:52 PM SnapinClient Pack: False 7/30/2016 8:52 PM SnapinClient Hide: False 7/30/2016 8:52 PM SnapinClient Server: http://192.168.120.19/fog 7/30/2016 8:52 PM SnapinClient TimeOut: 0 7/30/2016 8:52 PM SnapinClient RunWith: cmd.exe 7/30/2016 8:52 PM SnapinClient RunWithArgs: /c 7/30/2016 8:52 PM SnapinClient Args: ReaderDC.bat 7/30/2016 8:52 PM SnapinClient File: AdobeReaderDCInstaller_exe 7/30/2016 8:52 PM Middleware::Communication Download: http://192.168.120.19/fog/service/snapins.file.php?mac=34:17:EB:A6:DA:77||00:00:00:00:00:00:00:E0&taskid=105 7/30/2016 8:52 PM SnapinClient C:\Program Files (x86)\FOG\tmp\AdobeReaderDCInstaller_exe 7/30/2016 8:52 PM Bus { "self": true, "channel": "Notification", "data": "{\r\n \"title\": \"Installing ReaderDC\",\r\n \"message\": \"Please do not shutdown until this is completed\"\r\n}" } 7/30/2016 8:52 PM Bus Emmiting message on channel: Notification 7/30/2016 8:52 PM SnapinClient Starting snapin... 7/30/2016 8:52 PM SnapinClient Snapin finished 7/30/2016 8:52 PM SnapinClient Return Code: 1 7/30/2016 8:52 PM Bus { "self": true, "channel": "Notification", "data": "{\r\n \"title\": \"ReaderDC Installed\",\r\n \"message\": \"Installation has finished and is now ready for use\"\r\n}" } 7/30/2016 8:52 PM Bus Emmiting message on channel: Notification 7/30/2016 8:52 PM Middleware::Communication URL: http://GB-FOGSERVER/fog/service/snapins.checkin.php?taskid=105&exitcode=1&mac=34:17:EB:A6:DA:77||00:00:00:00:00:00:00:E0&newService&json ------------------------------------------------------------------------------
but nothing is installed which isn’t surprising as the file is now “AdobeReaderDCInstaller_exe” which doesn’t seem to be a self-extracting .exe file anymore. It downloads to …\FOG\tmp folder but then disappears after execution. I must be mis-configuring the snapin. After setting batch file template and pointing to AdobeReaderDCInstaller.exe and uploading it all goes south.
That snapin command doesn’t look right at all -
@gwhitfield RC4 had an issue with the regex to replace non valid characters to change out to _ instead of whatever the invalid character was.
The problem is, I forgot to check about a
.
character. I have addressed this issue for RC5 though.In that case, then, I suppose you still want the snapin as a snapin pack (which @joe-schmitt can help you out more than I can).
Of course, right now the issue is the filename won’t maintain the period. You can fix this if you absolutely need to by replacing the
/var/www/fog/lib/pages/snapinmanagementpage.class.php
with the file here: https://raw.githubusercontent.com/FOGProject/fogproject/a4bdcceb8e95bb8fb0c2efc15547f6b2ac0e2b24/packages/web/lib/pages/snapinmanagementpage.class.phpYou can do so by running:
wget -O /var/www/fog/lib/pages/snapinmanagementpage.class.php https://raw.githubusercontent.com/FOGProject/fogproject/a4bdcceb8e95bb8fb0c2efc15547f6b2ac0e2b24/packages/web/lib/pages/snapinmanagementpage.class.php
as root. You will have to replace the file with the proper file you require of course. -
@Tom-Elliott
Cool, I’ll look forward to RC5! THANK YOU for hanging in with me on this! I’ll remember to get with @joe-schmitt to get the other details ironed out. -
#wiki need to work on snapin pack article.