Upgrading Applications

Upgrading applications is fully supported on Smartphone and Pocket PC. As discussed in other sections, Smartphone and Pocket PC transact and record installations to ensure that they can be removed safely and successfully.

When creating an upgrade file, package the upgrade using the following steps:

  1. Create an application name, specified by the %AppName% variable in the .inf file, by combining the original application's name (for example, MyApp) and a patch or version indication for the update (for example, MyApp patch 2). This method ensures that the previous application is not automatically uninstalled.
  2. When packaging the .cab file by using CABWizSP, be sure to include the /nouninstall command-line parm. This method ensures that only one entry for the upgraded application appears on the Remove Programs screen.

For the uninstallation to complete successfully, the new upgraded .cab file should include only files that were installed by the original application. Otherwise, these files may not be removed during uninstallation. If you want to add files to an application, it is best to repackage the entire application, not just an upgrade.

See Also

.inf File Options

Send feedback on this topic to the authors.

© 2005 Microsoft Corporation. All rights reserved.