{"id":1141,"date":"2012-12-08T11:38:43","date_gmt":"2012-12-08T16:38:43","guid":{"rendered":"https:\/\/www.tmurgent.com\/TmBlog\/?p=1141"},"modified":"2013-04-06T11:39:46","modified_gmt":"2013-04-06T15:39:46","slug":"app-v-4-6-and-the-case-of-the-bad-url","status":"publish","type":"post","link":"https:\/\/www.tmurgent.com\/TmBlog\/?p=1141","title":{"rendered":"App-V 4.6* and the case of the bad URL"},"content":{"rendered":"<table>\n<tr>\n<td><font size=\"8\">&nbsp;<em>401<\/em>&nbsp;&nbsp;<\/font><\/td>\n<td>We ran into this in our Masters Level App-V Training class this week.  We love to try things &#8220;outside the box&#8221; in these classes because we always learn more.  Thanks to Mike from the UK for coming up with this one!<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>When we sequence a package, the sequencer goes to great lengths to translate hard coded paths and your user ID into pseudo variables in the output package.  The client then re-translates them dynamically to what is appropriate.<\/p>\n<p>Of course, one of the things that the sequencer will map is the reference to the virtual drive, as in &#8220;Q:&#8221;.  Since there isn&#8217;t a CSIDL for this, Microsoft uses %SFT_MNT% for the intermediate form to store.<\/p>\n<p>But it has been beaten into our heads over the years that it is important to have ALL of the App-V clients use the same drive letter as the one we sequence on to improve application compatibility and consistency.  I usually describe the reason for this need as being apps that hide file references in places that App-V doesn&#8217;t look (like a .dat file).<\/p>\n<p>But there is this other case where the translation can generate a problem, and this is what we found when the app would not launch.<\/p>\n<p>These translations also apply to command line parameters that you catch in the OSD.  In our case, the &#8220;command&#8221; was to run iexplore.exe with an &#8220;https:\/\/server\/path\/file.html&#8221; parameter.<\/p>\n<p>But it was sequenced on a machine with S: as the virtual drive letter.  So the OSD reference had a parameter &#8220;http%SFT_MNT%\/\/server\/path\/file.html&#8221;.<\/p>\n<p>This is OK, when the client is also using &#8220;S:&#8221; for the virtual drive, as the client translates back the original form.  But not when you drop it on a client with a different drive letter.  Drop it on a lab client machine using &#8220;Q:&#8221;, and the translation reads &#8220;httpq:\/\/server\/path\/file.html&#8221;, which of course will not be found.<\/p>\n<p>PS: The same problem should occur if you standardized on the &#8220;P:&#8221; drive.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp;401&nbsp;&nbsp; We ran into this in our Masters Level App-V Training class this week. We love to try things &#8220;outside the box&#8221; in these classes because we always learn more. Thanks to Mike from the UK for coming up with this one! When we sequence a package, the sequencer goes to great lengths to translate&hellip; <a class=\"more-link\" href=\"https:\/\/www.tmurgent.com\/TmBlog\/?p=1141\">Continue reading <span class=\"screen-reader-text\">App-V 4.6* and the case of the bad URL<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[36,35,48],"tags":[4],"class_list":["post-1141","post","type-post","status-publish","format-standard","hentry","category-all","category-appv4","category-sequencing","tag-app-v","entry"],"_links":{"self":[{"href":"https:\/\/www.tmurgent.com\/TmBlog\/index.php?rest_route=\/wp\/v2\/posts\/1141","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=1141"}],"version-history":[{"count":8,"href":"https:\/\/www.tmurgent.com\/TmBlog\/index.php?rest_route=\/wp\/v2\/posts\/1141\/revisions"}],"predecessor-version":[{"id":1400,"href":"https:\/\/www.tmurgent.com\/TmBlog\/index.php?rest_route=\/wp\/v2\/posts\/1141\/revisions\/1400"}],"wp:attachment":[{"href":"https:\/\/www.tmurgent.com\/TmBlog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1141"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tmurgent.com\/TmBlog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1141"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tmurgent.com\/TmBlog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}