Microsoft KB Archive/314781

= HOW TO: Start Programs from Pocket Internet Explorer =

Article ID: 314781

Article Last Modified on 10/20/2003

-

APPLIES TO


 * Microsoft Pocket PC 2002 Software Standard Edition
 * Microsoft Pocket Internet Explorer 2.0

-



This article was previously published under Q314781



IN THIS TASK
SUMMARY
 * Preparing the Program for Downloading
 * Handling Streams



SUMMARY
This article describes how to configure Pocket Internet Explorer to start programs from links in Web pages.

You may want to start Pocket PC programs from Web pages. To make this possible, the Web page must download and install the program when you tap its link in a page. When the program is installed, the appropriate registry keys and values must be set. Pocket Internet Explorer cannot do this directly. However, you can use the installation process to handle this.

back to the top

Preparing the Program for Downloading

 * 1) Insert a link to the program's .cab file in the Web page.
 * 2) Place the following registration keys in your installation script:
 * 3) * [HKEY_CLASSES_ROOT\. ] @=&quot; file&quot; - Specifies the program file name extension. Substitute the program's data file name extension for.
 * 4) * [HKEY_CLASSES_ROOT\ file] @=&quot; File&quot; - Specifies the class entry. Substitute the program's data file name extension for.
 * 5) * &quot;EditFlags&quot;=dword:00010000 - Specifies that the file is safe to download. If you omit this, Pocket Internet Explorer displays a dialog box prompting the user to download the file and start it. If you include the key and the set the value, your program starts immediately after the user taps the link.
 * 6) * [HKEY_CLASSES_ROOT\ file\DefaultIcon] @=&quot;\\Windows\\ .exe,1&quot; - Specifies the icon for the program. Substitute the program's data file name extension for . Substitute your program's name for.
 * 7) * [HKEY_CLASSES_ROOT\ file\Shell\Open\Command] @=&quot;\\Windows\\ .exe %1&quot; - Specifies the command that the ShellExecute function uses to run your program. Substitute your program's name for.

back to the top

Handling Streams
If your program requires a file stream from the Internet, it must connect directly to the stream itself.
 * 1) Create a data file that contains the address of the stream.
 * 2) Use the procedure that is listed in the &quot;Preparing the Program for Downloading&quot; section of this article to associate your program with the data file.
 * 3) Place a link to the program's .cab file in a Web page that your Pocket PC users browse.
 * 4) Insert a link to the data file in a Web page.
 * 5) Publish the Web pages. When a user taps the link for the Setup program, the Setup program installs the program. It also configures the registry to recognize the extension for the data files.

NOTE: When a user then taps the link for the data file, Pocket Internet Explorer starts the program and loads the data file. The program uses the address that is contained in the data file to connect to the Internet-based stream.

back to the top

Keywords: kbhowtomaster KB314781

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.