{"id":104,"date":"2014-12-18T09:16:06","date_gmt":"2014-12-18T09:16:06","guid":{"rendered":"http:\/\/www.troliver.com\/?p=104"},"modified":"2014-12-18T20:46:17","modified_gmt":"2014-12-18T20:46:17","slug":"running-msis-with-fog","status":"publish","type":"post","link":"https:\/\/www.troliver.com\/?p=104","title":{"rendered":"Running MSIs with FOG"},"content":{"rendered":"<p>I was trying to work out today why some of my snapins weren&#8217;t working for FOG. One issue I came across was to do with an MSI file. Although it deploys, the following text from fog.log seems to indicate that the MSI\u00a0isn&#8217;t a valid application.<\/p>\n<blockquote><p>\u00a004\/11\/2014 14:00 FOG::SnapinClient Snapin Found:<br \/>\n04\/11\/2014 14:00 FOG::SnapinClient\u00a0\u00a0\u00a0\u00a0 ID: 2458<br \/>\n04\/11\/2014 14:00 FOG::SnapinClient\u00a0\u00a0\u00a0\u00a0 RunWith:<br \/>\n04\/11\/2014 14:00 FOG::SnapinClient\u00a0\u00a0\u00a0\u00a0 RunWithArgs:<br \/>\n04\/11\/2014 14:00 FOG::SnapinClient\u00a0\u00a0\u00a0\u00a0 Name: PCCAL<br \/>\n04\/11\/2014 14:00 FOG::SnapinClient\u00a0\u00a0\u00a0\u00a0 Created: 2014-11-04 13:14:10<br \/>\n04\/11\/2014 14:00 FOG::SnapinClient\u00a0\u00a0\u00a0\u00a0 Args:<br \/>\n04\/11\/2014 14:00 FOG::SnapinClient\u00a0\u00a0\u00a0\u00a0 Reboot: No<br \/>\n04\/11\/2014 14:00 FOG::SnapinClient Starting FOG Snapin Download<br \/>\n04\/11\/2014 14:00 FOG::SnapinClient Download complete.<br \/>\n04\/11\/2014 14:00 FOG::SnapinClient Starting FOG Snapin Installation.<br \/>\n04\/11\/2014 14:00 FOG::SnapinClient The specified executable is not a valid Win32 application.<br \/>\n04\/11\/2014 14:00 FOG::SnapinClient\u00a0\u00a0\u00a0 at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)<br \/>\nat FOG.SnapinClient.startWatching()<\/p><\/blockquote>\n<p>Now, snapins have worked fine when using the steps linked to in this post, which use a self-extracting executable file to package the snapin. However, for MSI files, you seem to have to modify your snapin to do the following:<\/p>\n<p><strong>Snapin run with:<\/strong> msiexec (you don&#8217;t seem to need the full path to its location on your system)<br \/>\n<strong>Snapin run with arguements:<\/strong> \/i (needed, otherwise things just hang)<br \/>\n<strong>Snapin arguments:<\/strong> \/qn (or \/quiet)<\/p>\n<p>This runs <em>msiexec<\/em> as an installation (\/i) with no UI (\/qn, but \/quiet seems to work just as well.). Finally, the MSI\u00a0now works! So, self-extracting executables don&#8217;t need to be run with anything nor do any arguments need to be specified, but MSI installers\u00a0<em>do<\/em>!<br \/>\nFog Client settings change<\/p>\n<p>Whilst testing snapins, I was finding the 5 minute delay a bit too much. Its actually 307 seconds, as specified in the config.ini file located in your FOG installation directory on each desktop (e.g. C:\\Program Files (x86)\\FOG\\etc). Find the references to 307 and replace them with something else if you want the checkin time to be less &#8211; I changed it to 10 seconds so I could test things much faster. You can also expand the log file size &#8211; I changed it to 100KB but you can go much higher as, after that limit is reached, it will just be deleted anyway. Some guides online have suggested a .dll recompile for the relevant services &#8211; but it can just be changed in the config. Which is probably better. Safer\/<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was trying to work out today why some of my snapins weren&#8217;t working for FOG. One issue I came across was to do with an MSI file. Although it deploys, the following text from fog.log seems to indicate that the MSI\u00a0isn&#8217;t a valid application. \u00a004\/11\/2014 14:00 FOG::SnapinClient Snapin Found: 04\/11\/2014 14:00 FOG::SnapinClient\u00a0\u00a0\u00a0\u00a0 ID: 2458 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_newsletter_tier_id":0,"jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[2],"tags":[13,29,16],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6PQZ3-1G","_links":{"self":[{"href":"https:\/\/www.troliver.com\/index.php?rest_route=\/wp\/v2\/posts\/104"}],"collection":[{"href":"https:\/\/www.troliver.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.troliver.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.troliver.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.troliver.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=104"}],"version-history":[{"count":5,"href":"https:\/\/www.troliver.com\/index.php?rest_route=\/wp\/v2\/posts\/104\/revisions"}],"predecessor-version":[{"id":132,"href":"https:\/\/www.troliver.com\/index.php?rest_route=\/wp\/v2\/posts\/104\/revisions\/132"}],"wp:attachment":[{"href":"https:\/\/www.troliver.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=104"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.troliver.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=104"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.troliver.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=104"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}