English Deutsch Français Italiano Particle Software Buy Now


Particle Software
 
Find Application
   ..::   About  •  Purchasing  •  Search  •  Contact  • Home   ::..
 
Screenshots
• Sample
Downloads
Resources
• FAQ
• Macros

 
   With IntraLaunch 4.1 and higher is the ability to determine if an application is installed on the workstation. Administrator privileges are required for the following. If this is not possible you must at least give "Full Control" permissions to non-administrator accounts for the following App Paths key. You can use the Registry Editor to modify the App Paths key permissions. This is an insignificant security risk as the App Paths keys are simply a group of fixed string values.

   Most major applications add an entry to "HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ App Paths" in the system registry which holds the full path to where it was installed. IntraLaunch can query this information and obtain the full path then execute the application.

   All you need is the executable's file name. For example, Microsoft Word's is winword.exe, Adobe Acrobat's is AcroRd32.exe, these are case sensitive file names. Not all applications add an entry to App Paths, please check your registry first for your specific application.

   FindApp is great if the application is not in the system path, and you don't know where its installed. See some examples on its usage below. Also see the source code for the sample site included with the trial archive for complete code details.

  Each application you wish to automatically find using FindApp() must have an entry in the above registry path. Also, the currently logged in local user may need Administrator privileges to access this part of the registry.


  A basic example that runs MS Word no matter where its installed. Great if several workstations have different versions of Word installed in different places - this same link runs them all.

 
 
<HTML>
<BODY>

<OBJECT ID="IntraLaunch" WIDTH=65 HEIGHT=65    CODEBASE="http://intranet.net/menu/IntraLaunch.CAB#version=5,0,0,0"
   CLASSID="CLSID:0AE533FE-B805-4FD6-8AE1-A619FBEE7A23">
   <PARAM NAME="ImageLoc" VALUE="Remote">
   <PARAM NAME="ImageSrc" VALUE="http://intranet.net/word.gif">
   <PARAM NAME="Run" VALUE="IntraLaunch:FindApp(winword.exe)">
   <PARAM NAME="Display" VALUE="MAX">
</OBJECT>

</BODY>
</HTML>
 
 
       



   A function is included with IntraLaunch called CheckInstalledApp(), it is used to verify if the application is installed from Javascript. You could dynamically populate a drop down box with installed applications automatically when the web page is viewed. A full example of this is included in the sample site of the trial archive.

 
 
<HTML>

<SCRIPT LANGUAGE="JavaScript">
  function CheckForExcel()
  {
      var varIsAppFound;
      if ((varIsAppFound = IntraLaunch.CheckInstalledApp("excel.exe")) != "0")
      {
         alert("Full Excel Path: " + varIsAppFound);
      }
      else
      {
         alert("Excel not installed");
      }
  }
</SCRIPT>

<BODY>

<a href="Javascript:CheckForExcel();">Check for MS-Excel</a>

</BODY>

<OBJECT ID="IntraLaunch" STYLE="display : none" WIDTH=1 HEIGHT=1    CODEBASE="http://intranet.net/menu/IntraLaunch.CAB#version=5,0,0,0"    CLASSID="CLSID:0AE533FE-B805-4FD6-8AE1-A619FBEE7A23">
   <PARAM NAME="ImageLoc" VALUE="Null">
   <PARAM NAME="ImageSrc" VALUE="Null">
   <PARAM NAME="Run" VALUE="Null">
   <PARAM NAME="Display" VALUE="MAX">
</OBJECT>

</HTML>
 
 
       


  Dynamically through DHTML you could also use these features to display graphics for applications only if they are installed on the web page.



Copyright © 1997-2008 Particle Software - All Rights Reserved
Web services provided by Extreme Hosting