Question

I have to create the language package for my customer released application, what is the best approach to create language package setup, so it will be installed on top customer release application.

I supposed to provide option to user to install and uninstall the language package as well.Suggest me the best way to do this through installshield 2011.

Was it helpful?

Solution

I would do it this way.

Surely your application stores the installation folder in the registry when it's installed. Then your language pack searches for this registry entry.

  • If the install location is not stored in the registry, then your application is not installed: report an error and exit.
  • Otherwise you know where to copy the language files, so proceed to installing your language pack.

Your language pack will have its own entry in Add/Remove Programs.
If you don't want it, there are two other options:

  1. Register the language pack as an update to your application. Then it will displayed only when user chooses to see installed updates.
    How to do it is explained in Filtering the Add or Remove Programs List.
  2. Hide your package from Add/Remove Programs. In this case you have to provide another way to uninstall the package.

There's one other thing: The uninstaller for your main application should (could) provide options to uninstall all the installed language packs. You don't want to make users uninstall them manually, right?

It is tricky. The simplest approach that comes to my mind is your main uninstaller enumerates the installed languages packs and schedules its removal. Yet this may be not UAC-friendly.

Approaches to implementing removal of languages packs depend on how these packages are created. If your uninstaller has a bootstrapper, an .exe rather than bare .msi, then it could be quite easy. The bootstrapper initiates uninstall process for the main application. If it's successful, it proceeds to removing language packs. And it would be UAC-friendly: the bootstrapper asks for elevation when started, thus all the processes it starts will also be elevated.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top