<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Using Scripts with SoftGrid</title><link>http://blogs.technet.com/softgrid/archive/2007/04/18/using-scripts-with-softgrid.aspx</link><description>We often times get questions about using scripts with SoftGrid so we thought we would post some basics to get you started. We have the ability to run any number and style of scripts within an OSD file and these scripts can be immensely useful in overcoming</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Using Scripts with SoftGrid </title><link>http://blogs.technet.com/softgrid/archive/2007/04/18/using-scripts-with-softgrid.aspx#786178</link><pubDate>Wed, 18 Apr 2007 21:43:03 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:786178</guid><dc:creator>Ron Crumbaker at myITforum.com, Inc.</dc:creator><description>&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://blogs.technet.com/softgrid/archive/2007/04/18/using-scripts-with-softgrid.aspx"&gt;http://blogs.technet.com/softgrid/archive/2007/04/18/using-scripts-with-softgrid.aspx&lt;/a&gt; The following was&lt;/p&gt;
</description></item><item><title>re: Using Scripts with SoftGrid</title><link>http://blogs.technet.com/softgrid/archive/2007/04/18/using-scripts-with-softgrid.aspx#789787</link><pubDate>Thu, 19 Apr 2007 10:31:45 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:789787</guid><dc:creator>fgrosswig</dc:creator><description>&lt;p&gt;&amp;quot;...All scripts must be placed between the &amp;lt;DEPENDENCY&amp;gt; tags within the OSD files...&amp;quot;&lt;/p&gt;
&lt;p&gt;I do not agree with that since we use Citrx Terminal Server Environment. Let me explain a situation why we place an self written wsh script into the CODEBASE TAG to launch an application and not like the usual way into the DEPENDENCY TAG.&lt;/p&gt;
&lt;p&gt;&amp;lt;CODEBASE...&lt;/p&gt;
&lt;p&gt;FILENAME=&amp;quot;%WINDIR%\System32\wscript.exe&amp;quot;&lt;/p&gt;
&lt;p&gt;PARAMETERS=&amp;quot;prelaunch.vbs&amp;quot; &lt;/p&gt;
&lt;p&gt;SYSGUARDFILE.../&amp;gt;&lt;/p&gt;
&lt;p&gt;If you want to stream an application which its size is about 250 MB or bigger than that and you have registry / ocx / dll files you'll need run before the application is launched. And you'll need to map different network drives for each client but for the same application. This normally happens if you have one application you use for several clients but with different environments. Then you need to execute the script before you stream the entire application and prepare the virtual registry for your client and your network mapping etc... If the script execute fails then your script gets noticed about this error and stops streaming the entire application. This saves you network traffic and you see errors before the application gets started. You can modify clients error messages instead having SoftGrid errors which may not SoftGrid errors at all if an ocx or dll file is missing or an registry setting isn’t performed or an network drive is wrong mapped which this application needs to get started. The advantage why we don’t place the script in the DEPENDENCY TAG is as follow.&lt;/p&gt;
&lt;p&gt;The OSD File is streamed by sfttray and you do not have any control of the osd afterwards. The application tries to launch after unsuccessful streaming because the osd file does not interrupt on any error. So you cant shut down a application before getting noticed about any wrong settings or errors. Since we discovered that SoftGrid proceeds with the osd launch phase, no matter if you try to set the TAG to WAIT=&amp;quot;TRUE&amp;quot;. So we had to place the script above all the other TAGS and we developed a script which starts the application. All information we need to run the application we placed out in a ini file which will parsed from the vbs file. So we can run multiple programs, perform multiple registry settings or registering ocx/dll files. But this is only necessary if you have a Terminal Environment which is really limited to clients. Like administrator shuts off the administrative rights for normal users.&lt;/p&gt;
&lt;p&gt;The other problem is if you set the PARAMTER TIMEOUT the script you try to perform does not complete all settings before the timeout is reached. The Client tries to launch the application after the timeout is over and this time varies to each client. This was our secondary problem that all clients we tried to perform registry settings, dll/ocx registrations where too slow before the client launched the application. The timeout settings would be too high and not countable to set in the osd file. So we come to the conclusion to place the script above the DEPENDENCY TAG to make all settings trough the script and after that we launch the application. So we make sure we do not have unnecessary timeouts and we guarantee the application launches in the quite correct manner. &lt;/p&gt;
&lt;p&gt;I hope this comment is helpful to anyone who tries to script with SoftGrid.&lt;/p&gt;
&lt;p&gt;Good luck and comments are welcome.&lt;/p&gt;
&lt;p&gt;Sincerely yours,&lt;/p&gt;
&lt;p&gt;Falk G.&lt;/p&gt;
</description></item><item><title>SoftGrid team at Microsoft adds blog entry describing how to use scripts within an .OSD file for specific launch conditions</title><link>http://blogs.technet.com/softgrid/archive/2007/04/18/using-scripts-with-softgrid.aspx#792110</link><pubDate>Thu, 19 Apr 2007 19:40:20 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:792110</guid><dc:creator>shawnbass.com - Virtualization blog</dc:creator><description>&lt;p&gt;The MS SoftGrid team has added a blog entry describing how to use scripts within .OSD files to modify the behavior of the application launch. They've also provided some basic examples of how one ...&lt;/p&gt;
</description></item><item><title>Using Scripts with SoftGrid</title><link>http://blogs.technet.com/softgrid/archive/2007/04/18/using-scripts-with-softgrid.aspx#820013</link><pubDate>Wed, 25 Apr 2007 11:40:09 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:820013</guid><dc:creator>The World Simplified is a Virtual World</dc:creator><description>&lt;p&gt;The chaps out in Boston are doing some great work at the moment and have even started getting there blog&lt;/p&gt;
</description></item></channel></rss>