Publishing Applications to the Internet Using OSDPublishing Applications to the Internet Using OSD*
*



Contents  *



Index  *Topic Contents
*Previous Topic: Open Software Description Overview
*Next Topic: Automatically Updating ActiveX Controls

Publishing Applications to the Internet Using OSD

This article describes how to use Microsoft® Internet Explorer 4.01 support for the Channel Definition Format (CDF) and Open Software Description (OSD) to publish applications to the Internet.

This article describes how to:

Notes and Requirements

Preparing the Application

Before creating a software update channel, the application should be prepared to handle two tasks:

Modifying the Registry to Maintain the User's Security Settings

Because your users are receiving updates through the Internet, Internet Explorer respects the URL Security Zone setting you are in when making the software update. The behavior is as follows.
Security Zone level for your site Software update channel behavior
High No software update functions available
Medium Requires the AuthorizedCDFPrefix (see below)
Low All software update functions available

For the medium setting, you must (during your installation routine) set the AuthorizedCDFPrefix key in the registry for your particular AppName (the Microsoft Application Logo 5 name). This authorizes particular URLs to notify the user of updates. The reason for this is security. By entering the URLs that are authorized to update your software, you prevent rogue sites from publishing false updates.

AuthorizedCDFPrefix is a new key you must create under the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\<Your App Name> branch of the registry. Any number of new string values is added to this key, each of which represents a location where Internet Explorer can get software updates. For example, if one of the strings is "http://testserver", any URL beginning with these letters is authorized to publish software updates. If you want to allow any site to publish updates, you can simply use "http:" as the string.

Modifying the shortcut

In either the installation process for the software or the initial launch of the application, the shortcut to the application must be modified so that the system will be able to notify the user of any updates. This also requires Internet Explorer 4.01 to work.

Note Microsoft Installer (MSI) technology, which will be released in the near future, automatically generates modified shortcuts.

To modify the shortcut, you must do one of following:

Creating the Software Update Channel

Creating your own software update channel for Internet Explorer 4.01 is extremely easy. Simply use the following example, replacing the information with your own by following the simple steps below.

<?XML version="1.0"?>

<CHANNEL HREF="http://testserver/logo5/logo5.htm">
	<TITLE>Green (MSAppLogo5) Test Channel</TITLE>
	<LOGO HREF="http://testserver/logo5/green.ico" STYLE="icon"/>
	<USAGE VALUE="SoftwareUpdate"/>
	<SOFTPKG HREF="http://testserver/logo5/logo5.htm"
		NAME="{55272F7E-1B37-11D1-8933-00805F8A4D63}"
		VERSION="1,1,0,1"
		STYLE="MSAppLogo5"
		PRECACHE="yes"> 
		<TITLE>Green</TITLE>
		<ABSTRACT>Abstract: Green v1.1 application installed via channel</ABSTRACT>
		<IMPLEMENTATION>
			<CODEBASE HREF="http://testserver/logo5/green-x.exe" />
		</IMPLEMENTATION>
	</SOFTPKG>
</CHANNEL>

Make these changes to customize this example for your own software update channel:

  1. Replace CHANNEL HREF to point to a URL that you want users to be sent to when they first subscribe to the channel and when they click the channel in the future.
  2. Change the TITLE to your own. This will show up in the Internet Explorer Favorites/Software Updates folder. This is usually your software's title plus the words "Update Channel".
  3. The LOGO is shown next to the TITLE in the Internet Explorer Software Updates folder. Choose your own custom icon or delete this tag (from <LOGO to />) to use the default satellite dish logo from Internet Explorer.
  4. Replace SOFTPKG HREF to point to a URL that you want users to be sent to when an update is available. Initially (before there's a new version), if you don't know where the new information will be posted, you can point this to the same location as used for the CHANNEL HREF.
  5. Change the NAME to either a GUID (as shown) representing your software or to the application's name in the Uninstall branch of the registry (not the friendly name). If you don't know the name, run Regedit and look at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall to find the name. It will be listed under the Uninstall branch on the left.
  6. Change the VERSION number to your own. The version "a,b,c,d" is a.b.d.
  7. Change the PRECACHE to "no" if you do not want Internet Explorer to automatically receive the update at the subscription update time (either way, Internet Explorer will not install the update; it will simply make it available offline on the user's computer if you leave PRECACHE on).
  8. Change the TITLE to reflect your software's name. This will be shown in the update dialog box when the user is notified of an update.
  9. Change the ABSTRACT to give the user a description of the software. This will also be shown in the update dialog box.
  10. Change the CODEBASE to point to the URL of your software. This can point to a CAB or an EXE file. This does not point to an HTML page.

When you are done with these easy steps, put the CDF file on your Web server and request your users to subscribe to this channel when they come to your page. Your text can say, "Click here to subscribe to a channel to receive notifications of future updates of this software. You will remain anonymous, and we will not give out your name and address."

Handling Updates

In the future, when the new version is available, you will need to change the CDF file on your Web server. On the next subscription update on your users' computers, they will get the new CDF. Make the following modifications:

  1. Change the VERSION number to a larger number.
  2. Either overwrite the old CAB, EXE, or other file pointed to by the CODEBASE element with the new file, or change the CODEBASE to point to the new file.
  3. Replace the SOFTPKG HREF to point to the URL that you want the user to be sent to in order to read about the features and installation instructions of the new software.

After the next subscription update, the users can be notified of the new software in two ways:

You can use this example with your own software update channel to get up and running very quickly.

For additional information about the OSD vocabulary, see the specification at http://www.microsoft.com/standards/osd. For additional information on CDF, see the specification at http://www.microsoft.com/standards/cdf-f.htm.


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.