SilverlightShow: How to distribute a Silverlight OOB Application? Comments http://www.silverlightshow.net/ Silverlight articles, Silverlight tutorials, Silverlight videos, Silverlight samples SilverlightShow.net http://www.rssboard.org/rss-specification Argotic Syndication Framework 2008.0.2.0, http://www.codeplex.com/Argotic en-US estoychev@completit.com (Emil Stoychev) RE: How to distribute a Silverlight OOB Application? <p>I have solved that issue.The path was creating the issue in javascrip. I used "file://" as prefix and it is fixed now.</p> <p>Thanks Kunal u explained it very clear.</p> <p>Did u write any topic on Creating Websetup project for installing a silverlight application.</p> <p>If so please share the link</p> <p>Thanks once again.</p> <p>Dileep</p> http://www.silverlightshow.net/items/How-to-distribute-a-Silverlight-OOB-Application.aspx#comment6210 Dileep http://www.silverlightshow.net/items/How-to-distribute-a-Silverlight-OOB-Application.aspx Fri, 27 May 2011 10:59:14 GMT RE: How to distribute a Silverlight OOB Application? <p>Great , very nice and clear..</p> <p>i dont want to create a CD but i just want to distribute a folder with the install.hta and the remaining files xap,silverlight etc.</p> <p>i have followed all the steps and created a main folder named Project->batchInstall.cmd, Install.hta and Project->Silverlight->Silverlight.exe   and Project->XAP->Telstrat.xap</p> <p>i am getting error at   WshShell.Run("batchInstall.cmd", 0, false); line . </p> <p>Please can u help me out.</p> <p>My total hta file is..</p> <p><html><br /> <head><br />     <title>Application Executer</title><br />     <HTA:APPLICATION ID="oMyApp" <br />       APPLICATIONNAME="Application Executer" <br />        BORDER="No"       CAPTION="No"       SHOWINTASKBAR="No"       SINGLEINSTANCE="Yes"<br />         SYSMENU="No"        SCROLL="No"        Width="0"        Height="0"        maximizeButton="false"<br />         WINDOWSTATE="minimize"></p> <p>    <script type="text/javascript" language="javascript"><br />         function GetSilverlightVersion() {<br />             // initialize the silverlightVersion to -1.<br />             var silverlightVersion = -1;<br />             getSilverlightVersion = function () {<br />                 try {<br />                     // create the ActiveX Object of AgControl.<br />                     // This is the core of Silverlight runtime.<br />                     var control = new ActiveXObject('AgControl.AgControl');<br />                     // will execute if your latest Silverlight version is 4.<br />                     if (control.IsVersionSupported("4.0")) {<br />                         silverlightVersion = 4;<br />                     }<br />                     // will execute if your latest Silverlight version is 3.<br />                     else if (control.IsVersionSupported("3.0")) {<br />                         silverlightVersion = 3;<br />                     }<br />                     // will execute if your latest Silverlight version is 2.<br />                     else if (control.IsVersionSupported("2.0")) {<br />                         silverlightVersion = 2;<br />                     }<br />                     // if Silverlight version is not supported by your app,<br />                     // set it as 0 (zero).<br />                     else {<br />                         silverlightVersion = 0;<br />                     }<br />                     control = null;<br />                 }<br />                 catch (e) {                    // if any exception while creating the ActiveX Object,<br />                     // will set the silverlightVersion as -1.<br />                     silverlightVersion = -1;<br />                     alert("Unable to create the ActiveX Object from Browser window.");<br />                 }<br />             }<br />             // call to the inner function to detect the Silverlight.<br />             getSilverlightVersion();<br />             // return the version of the Silverlight.<br />            return silverlightVersion;<br />         }<br />         function InstallSilverlight() {<br />            WshShell = new ActiveXObject("WScript.Shell");<br />             WshShell.Run("Silverlight\\Silverlight.exe /q", 0, true);<br />         }<br />        function InstallOOBApplication() {<br />             WshShell = new ActiveXObject("WScript.Shell");<br />             WshShell.Run("Silverlight\\batchInstall.cmd", 0, false);<br />         }<br />         function Install() {<br />             var silverlightVersion = GetSilverlightVersion();<br />             if(silverlightVersion == 4) {<br />                 InstallOOBApplication();<br />             }<br />             else {<br />                 InstallSilverlight();<br />                 InstallOOBApplication();<br />             }<br />             self.opener = this;<br />             self.close();<br />         }<br />     </script><br /> </head><br /> <body onload="Install();"><br /> </body><br /> </html></p> <p>My bachtInstall file is..</p> <p>@ECHO OFF<br /> @"%ProgramFiles%\Microsoft Silverlight\sllauncher.exe" /install:"XAP\TelStrat.xap" /shortcut:desktop+startmenu /origin:http://172.20.25.101/TelStrat/ClientBin/TelStrat.xap /overwrite<br /> @EXIT</p> <p>Thanks .</p> <p>Dileep.</p> <p></p> http://www.silverlightshow.net/items/How-to-distribute-a-Silverlight-OOB-Application.aspx#comment6208 Dileep http://www.silverlightshow.net/items/How-to-distribute-a-Silverlight-OOB-Application.aspx Thu, 26 May 2011 18:56:25 GMT RE: How to distribute a Silverlight OOB Application? <p><strong>Thanks for very useful post .</strong>..I have similar scenario.We developed multiple silverlight apps and now  created a new centralized silverlightapplication to host links for my multiple apps by click on that icon is should show relevant application </p> <p>Especially in OOB mode once I click on install of my central app i want silently install all other modules then once I open the (OOB)centralized app and click on the link so that process continues.</p> <p>I am clear how to do batchinstall.cmd and hta/js but my case no cd/dvd so please suggest me how to proceed from InstallButton of my centralized app to call that hta file </p> <p>This is my high need right now...</p> <p> </p> http://www.silverlightshow.net/items/How-to-distribute-a-Silverlight-OOB-Application.aspx#comment5867 srinivas vutukuru http://www.silverlightshow.net/items/How-to-distribute-a-Silverlight-OOB-Application.aspx Thu, 07 Apr 2011 13:06:14 GMT RE: How to distribute a Silverlight OOB Application? <p>@fahim: because I explicitly set http://www.kunal-chowdhury.com (which is my blog URL) as the originator.</p> <p>@clinto: yes, OOB applications are only for running inside the client machine</p> http://www.silverlightshow.net/items/How-to-distribute-a-Silverlight-OOB-Application.aspx#comment5600 Kunal Chowdhury (kunal2383) http://www.silverlightshow.net/items/How-to-distribute-a-Silverlight-OOB-Application.aspx Mon, 28 Feb 2011 13:02:06 GMT RE: How to distribute a Silverlight OOB Application? is it possible to run a silverlight oob application on client machine http://www.silverlightshow.net/items/How-to-distribute-a-Silverlight-OOB-Application.aspx#comment5598 clinto http://www.silverlightshow.net/items/How-to-distribute-a-Silverlight-OOB-Application.aspx Mon, 28 Feb 2011 11:34:45 GMT RE: How to distribute a Silverlight OOB Application? Great! But why does www.kunal-chowdhury.com appear on the title of the application window? http://www.silverlightshow.net/items/How-to-distribute-a-Silverlight-OOB-Application.aspx#comment5064 fahim http://www.silverlightshow.net/items/How-to-distribute-a-Silverlight-OOB-Application.aspx Mon, 13 Dec 2010 21:26:55 GMT RE: How to distribute a Silverlight OOB Application? That's clean and very detailed. Thanks Kunal. http://www.silverlightshow.net/items/How-to-distribute-a-Silverlight-OOB-Application.aspx#comment4916 Chaitanya Venneti http://www.silverlightshow.net/items/How-to-distribute-a-Silverlight-OOB-Application.aspx Fri, 19 Nov 2010 08:16:09 GMT RE: How to distribute a Silverlight OOB Application? <p>No, this installs per user. And yes, you can uninstall this from the context menu. Once you right click on the Silverlight application, you will see a Remove menu item in the context menu. Click that to completely remove the application.</p> <p>Let me know, if you need further help.</p> http://www.silverlightshow.net/items/How-to-distribute-a-Silverlight-OOB-Application.aspx#comment4841 Kunal Chowdhury (kunal2383) http://www.silverlightshow.net/items/How-to-distribute-a-Silverlight-OOB-Application.aspx Wed, 10 Nov 2010 06:58:13 GMT RE: How to distribute a Silverlight OOB Application? <p>hi,</p> <p>Just checking, anyways to install this for allusers?<br /> Also, can we prevent users from uninstalling this file from the context menu?</p> <p>Thanks.</p> <p><br /> </p> http://www.silverlightshow.net/items/How-to-distribute-a-Silverlight-OOB-Application.aspx#comment4840 Hansen http://www.silverlightshow.net/items/How-to-distribute-a-Silverlight-OOB-Application.aspx Wed, 10 Nov 2010 06:20:00 GMT RE: How to distribute a Silverlight OOB Application? <p>@Schubidu: The above tutorial is specifically for Windows. You may change the batch script to work in other platform.</p> http://www.silverlightshow.net/items/How-to-distribute-a-Silverlight-OOB-Application.aspx#comment4682 kunal2383 http://www.silverlightshow.net/items/How-to-distribute-a-Silverlight-OOB-Application.aspx Thu, 14 Oct 2010 04:47:27 GMT RE: How to distribute a Silverlight OOB Application? How it works on a MAC? http://www.silverlightshow.net/items/How-to-distribute-a-Silverlight-OOB-Application.aspx#comment4680 Schubidu http://www.silverlightshow.net/items/How-to-distribute-a-Silverlight-OOB-Application.aspx Thu, 14 Oct 2010 01:04:50 GMT RE: How to distribute a Silverlight OOB Application? <p>Good.</p> http://www.silverlightshow.net/items/How-to-distribute-a-Silverlight-OOB-Application.aspx#comment4674 Hiren @CP http://www.silverlightshow.net/items/How-to-distribute-a-Silverlight-OOB-Application.aspx Wed, 13 Oct 2010 15:09:40 GMT RE: How to distribute a Silverlight OOB Application? <p>Thanks Richard. It will be more useful & practical enough, if you do it using some installer. This is just a demonstration to showcase it for better understanding.</p> <p>Regards,<br /> Kunal</p> http://www.silverlightshow.net/items/How-to-distribute-a-Silverlight-OOB-Application.aspx#comment4669 Kunal Chowdhury http://www.silverlightshow.net/items/How-to-distribute-a-Silverlight-OOB-Application.aspx Wed, 13 Oct 2010 14:55:32 GMT RE: How to distribute a Silverlight OOB Application? <p>Many thanks, very useful</p> <p>Richard</p> http://www.silverlightshow.net/items/How-to-distribute-a-Silverlight-OOB-Application.aspx#comment4667 Richard G http://www.silverlightshow.net/items/How-to-distribute-a-Silverlight-OOB-Application.aspx Wed, 13 Oct 2010 14:25:41 GMT