19 Upgrade an Existing V12 Application

LANSA Deployment Tool

19. Upgrade an Existing V12 Application

By default, an MSI installs into \Program Files for an All User Install or \Documents and Settings for a Current User install. If an existing Version 12 LANSA application has been installed into an alternate location the MSI may not be able to install into the same location, for example, the default location c:\x_win95.

To upgrade a Version 12 LANSA application the LANSA Developer must identify that the MSI needs to offer the opportunity to upgrade. When the MSI is installed it will then prompt for the location of the existing install, offering the last installed application as the default. It will copy the whole partition across to the new location and then perform the install. In particular this will allow the database tables to be upgraded correctly.

To support this functionality there are two settings in an MSI:

Delete Previous Target Directory

If this Application has already been installed on the target machine in a different directory, the install process can attempt to automatically remove the previous installation. The Application Code will be used to look up the previous install location in the registry and will attempt to delete the associated folder. This setting can be prompted during the installation.

Yes – Remove the directory where this Application was previously installed.

No – Do not remove the directory where this Application was previously installed.

Default: No

Previous Application Folder Name Directory

If the previous installation is to be removed, indicate the name of the Previous Application Folder as it was installed. Any desktop icon or program folder matching this name will be deleted during the installation process.

Default: [Application Name]

Refer to <a href="its:lansa022.CHM::/lansa/dt_0220.HTM">Upgrade Options</a> for more information.