{"id":2957,"date":"2019-10-21T21:14:04","date_gmt":"2019-10-22T01:14:04","guid":{"rendered":"https:\/\/www.tmurgent.com\/TmBlog\/?p=2957"},"modified":"2019-11-10T21:13:45","modified_gmt":"2019-11-11T02:13:45","slug":"fix-for-1809-and-later-app-v-sequencer-issues","status":"publish","type":"post","link":"https:\/\/www.tmurgent.com\/TmBlog\/?p=2957","title":{"rendered":"Fix for 1809 and later App-V Sequencer Issues"},"content":{"rendered":"\n<p><img loading=\"lazy\" decoding=\"async\" width=\"88\" height=\"110\" class=\"alignleft wp-image-2529 size-full\" alt=\"\" src=\"https:\/\/www.tmurgent.com\/TmBlog\/wp-content\/uploads\/2016\/08\/10.png\"\/><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I&#8217;ve noticed lately a few people complaining that they needed to go back to the Windows 10 ADK&nbsp;1803 sequencer in order to get some applications to work. Recently, a student came to one of our App-V Training Classes and brought with him a reproducible application that demonstrated the problem.&nbsp; Based on what we learned in the class debugging it, and additional work in my lab after, we can now fix these issues with version 1.9 of <a aria-label=\"TMEdit (opens in a new tab)\" href=\"https:\/\/www.tmurgent.com\/appv\/en\/buy\/tmedit\/tmedit-download\" target=\"_blank\" rel=\"noreferrer noopener\">TMEdit<\/a>, but first let me explain the issue.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The student came with a package of Google Chrome made with the 1803 Sequencer, and another with the 1903 Sequencer.&nbsp; The packages were made as identically as possible, using automation.&nbsp; But no matter what the client OS was, the 1803 package worked while the 1903 package would fail upon launch.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Before we debug the issue, I&#8217;ll note that my own packages of Google Chrome Enterprise have no issues, no matter what OS I sequence on.&nbsp; So clearly there are differences either in how he configures Chrome or in the setup of the Sequencing ,and\/or Client VMs.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We started by eliminating the differences in Client VMs by having the student test on my training lab VMs.&nbsp; This showed the problems on my Client VMs just as he had described on his own clients.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The package could be added and published, But when the application was launched it would immediately fail with a popup Windows Error dialog shown here:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"413\" height=\"164\" src=\"https:\/\/www.tmurgent.com\/TmBlog\/wp-content\/uploads\/2019\/10\/ErrorDialogCapture-2.png\" alt=\"Chrome Error Dialog\" class=\"wp-image-2960\" srcset=\"https:\/\/www.tmurgent.com\/TmBlog\/wp-content\/uploads\/2019\/10\/ErrorDialogCapture-2.png 413w, https:\/\/www.tmurgent.com\/TmBlog\/wp-content\/uploads\/2019\/10\/ErrorDialogCapture-2-300x119.png 300w\" sizes=\"auto, (max-width: 413px) 100vw, 413px\" \/><figcaption>Error dialog on launching the 1903 Chrome Package<\/figcaption><\/figure>\n\n\n\n<p>We started by comparing the files within the two packages.\u00a0 This was done by making copies of the packages and renaming the files to have a .zip extension and then opening them. The packages where mostly the same, with the problem package containing a few more files that looked like they could possibly be cleaned up.<\/p>\n<p>We checked the Windows Application event log to see if Chrome provided more information there, and found the following:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2961 size-large\" src=\"https:\/\/www.tmurgent.com\/TmBlog\/wp-content\/uploads\/2019\/10\/EventLogApplication-1024x871.png\" alt=\"\" width=\"840\" height=\"714\" srcset=\"https:\/\/www.tmurgent.com\/TmBlog\/wp-content\/uploads\/2019\/10\/EventLogApplication-1024x871.png 1024w, https:\/\/www.tmurgent.com\/TmBlog\/wp-content\/uploads\/2019\/10\/EventLogApplication-300x255.png 300w, https:\/\/www.tmurgent.com\/TmBlog\/wp-content\/uploads\/2019\/10\/EventLogApplication-768x653.png 768w, https:\/\/www.tmurgent.com\/TmBlog\/wp-content\/uploads\/2019\/10\/EventLogApplication-1200x1020.png 1200w, https:\/\/www.tmurgent.com\/TmBlog\/wp-content\/uploads\/2019\/10\/EventLogApplication.png 1250w\" sizes=\"auto, (max-width: 840px) 100vw, 840px\" \/><\/p>\n<p>This didn&#8217;t seem to help at the time, but actually turns out to have been related to the problem, even if it wasn&#8217;t clear at the time.<\/p>\n<p>We also ran a Procmon trace to see what that might show us. The trace wasn&#8217;t helpful. If anything, it seemed to confirm that possibly the SvcHost process was the problem, but that didn&#8217;t make sense for this application. The only direct use of SVCHost for this package would be virtual services, but these were all disabled or set to manual. I guessed that the SvcHost process involved was just to play the audio for the error dialog box after the real issue occurred and was just distracting us. We needed to look elsewhere.<\/p>\n<p>Even though it seemed like it probably wasn&#8217;t going to show us any errors, we looked into the App-V event logs. The <em>Admin<\/em> and <em>Informational<\/em> logs contained nothing of value.\u00a0 Even turning on the App-V <em>Debug<\/em> logs didn&#8217;t help. But the App-V <em>Virtual Applications<\/em> log contained an error &#8211; the third I&#8217;ve seen ever in App-V 5.x!<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2962 size-large\" src=\"https:\/\/www.tmurgent.com\/TmBlog\/wp-content\/uploads\/2019\/10\/EventLogVirtualApplications-1024x871.png\" alt=\"\" width=\"840\" height=\"714\" srcset=\"https:\/\/www.tmurgent.com\/TmBlog\/wp-content\/uploads\/2019\/10\/EventLogVirtualApplications-1024x871.png 1024w, https:\/\/www.tmurgent.com\/TmBlog\/wp-content\/uploads\/2019\/10\/EventLogVirtualApplications-300x255.png 300w, https:\/\/www.tmurgent.com\/TmBlog\/wp-content\/uploads\/2019\/10\/EventLogVirtualApplications-768x653.png 768w, https:\/\/www.tmurgent.com\/TmBlog\/wp-content\/uploads\/2019\/10\/EventLogVirtualApplications-1200x1020.png 1200w, https:\/\/www.tmurgent.com\/TmBlog\/wp-content\/uploads\/2019\/10\/EventLogVirtualApplications.png 1250w\" sizes=\"auto, (max-width: 840px) 100vw, 840px\" \/><\/p>\n<p>We compared the AppXManifest.xml files between the two packages, and found nothing significant.\u00a0 The failure of the Virtual FileSystem made me suspicious of the FilesystemMetadata.XML file, which supplements the zip compressed file system to provide additional features including Override-Local folders (called Opaque in the file), Empty Folders, and short names.\u00a0 I talked about Short Names in <a href=\"https:\/\/www.tmurgent.com\/TmBlog\/?p=2902\" target=\"_blank\" rel=\"noopener noreferrer\">this post last spring<\/a>.\u00a0 Looking at the two files there were clearly differences in how the short names were generated in the two files.<\/p>\n<p>Two forms of short names are generated in both files, the standard &#8220;~1&#8221; kind and the special type that App-V will generate to ensure uniqueness. But there seemed to be more of the special type in the newer package. So I was suspicious.<\/p>\n<p>The FilesystemMetadata file for the problem package had a few extra folders referenced in it.\u00a0 They looked like folders that probably could be cleaned up in the package; in fact they were folders that I include in my standard setups.\u00a0 A couple of different students used TMEdit to cleanup the problem package through removing unnecessary folders, and these cleaned up packages seemed to work.<\/p>\n<p>After the class I took the packages back into my lab for further investigation. Over a glass of wine (which seemed to help) I suddenly saw the problem in the FilesystemManifest file.\u00a0 It wasn&#8217;t where Microsoft made up short names, but where they didn&#8217;t complete the job.\u00a0 Look at the short name on this entry:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2963 size-large\" src=\"https:\/\/www.tmurgent.com\/TmBlog\/wp-content\/uploads\/2019\/10\/SmokingGun-1024x219.png\" alt=\"\" width=\"840\" height=\"180\" srcset=\"https:\/\/www.tmurgent.com\/TmBlog\/wp-content\/uploads\/2019\/10\/SmokingGun-1024x219.png 1024w, https:\/\/www.tmurgent.com\/TmBlog\/wp-content\/uploads\/2019\/10\/SmokingGun-300x64.png 300w, https:\/\/www.tmurgent.com\/TmBlog\/wp-content\/uploads\/2019\/10\/SmokingGun-768x165.png 768w, https:\/\/www.tmurgent.com\/TmBlog\/wp-content\/uploads\/2019\/10\/SmokingGun-1200x257.png 1200w\" sizes=\"auto, (max-width: 840px) 100vw, 840px\" \/>Notice the folders on the Short Name of the highlighted item:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2964 size-large\" src=\"https:\/\/www.tmurgent.com\/TmBlog\/wp-content\/uploads\/2019\/10\/SmokingGun2-1024x80.png\" alt=\"\" width=\"840\" height=\"66\" srcset=\"https:\/\/www.tmurgent.com\/TmBlog\/wp-content\/uploads\/2019\/10\/SmokingGun2-1024x80.png 1024w, https:\/\/www.tmurgent.com\/TmBlog\/wp-content\/uploads\/2019\/10\/SmokingGun2-300x23.png 300w, https:\/\/www.tmurgent.com\/TmBlog\/wp-content\/uploads\/2019\/10\/SmokingGun2-768x60.png 768w, https:\/\/www.tmurgent.com\/TmBlog\/wp-content\/uploads\/2019\/10\/SmokingGun2.png 1041w\" sizes=\"auto, (max-width: 840px) 100vw, 840px\" \/><\/p>\n<p>&#8220;<em>systemprofile<\/em>&#8221; is 13 characters long, not exactly meeting the 8.3 requirements!\u00a0<\/p>\n<p>Version 1.9 of my TMEdit package editor has now been updated to address these issues.\u00a0 It will scan the FileSystemMetadata.xml file for non-compliant short names and offer to fix them. To avoid potential problems at the client I opted to use a &#8220;~T&#8221; style replacement rather than &#8220;~1&#8221; to avoid potential local system folders that already have &#8220;~#&#8221; short names.\u00a0 Additionally, it will scan the registry for strings containing the replaced short names (sometimes COM registrations use short names) and fix those up also.\u00a0 The fix is available both in the Graphical editor and in the command line AutoUpdateFixup utility that uses an XML input file to configure which fixups are desired.\u00a0 Current subscribers to TMEdit will be able to update to version 1.9 for free. Others can buy it <a href=\"https:\/\/www.tmurgent.com\/appv\/en\/buy\/tmedit\/purchase-tmedit\" target=\"_blank\" rel=\"noopener noreferrer\">online here<\/a>.\u00a0<\/p>\n<p>Hopefully Microsoft will take this info and fix the sequencer.\u00a0 It is probably too late to make the 1909 ADK, but perhaps the 20H1 version next year.<\/p>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve noticed lately a few people complaining that they needed to go back to the Windows 10 ADK&nbsp;1803 sequencer in order to get some applications to work. Recently, a student came to one of our App-V Training Classes and brought with him a reproducible application that demonstrated the problem.&nbsp; Based on what we learned in&hellip; <a class=\"more-link\" href=\"https:\/\/www.tmurgent.com\/TmBlog\/?p=2957\">Continue reading <span class=\"screen-reader-text\">Fix for 1809 and later App-V Sequencer Issues<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[47,48],"tags":[4,13],"class_list":["post-2957","post","type-post","status-publish","format-standard","hentry","category-appv5","category-sequencing","tag-app-v","tag-sequencing","entry"],"_links":{"self":[{"href":"https:\/\/www.tmurgent.com\/TmBlog\/index.php?rest_route=\/wp\/v2\/posts\/2957","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tmurgent.com\/TmBlog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tmurgent.com\/TmBlog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tmurgent.com\/TmBlog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tmurgent.com\/TmBlog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2957"}],"version-history":[{"count":3,"href":"https:\/\/www.tmurgent.com\/TmBlog\/index.php?rest_route=\/wp\/v2\/posts\/2957\/revisions"}],"predecessor-version":[{"id":2966,"href":"https:\/\/www.tmurgent.com\/TmBlog\/index.php?rest_route=\/wp\/v2\/posts\/2957\/revisions\/2966"}],"wp:attachment":[{"href":"https:\/\/www.tmurgent.com\/TmBlog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2957"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tmurgent.com\/TmBlog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2957"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tmurgent.com\/TmBlog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2957"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}