I'm using AI 7.7 build 28804
Originally, I was building only an English install package, but now I need to build install packages for several languages. Because my localized resources are large (images with text, etc), I am creating a separate install package for each language. Additionally, my app is not designed to handle side-by-side installs, so it is very important that only one instance of the app be allowed per-user.
As stated in the Product Identification documentation,
Because AI gives each language a unique ProductCode, users are able to install multiple instances of the same version. For example, a user can install both the English and the German packages for version 1.0.0The ProductCode property is a unique GUID used to identify your application. This identifier varies from version to version, or between different languages of the same installer. You can check this first hand from Advanced Installer by going to Project->Options->Project IDs. You will notice a different ProductCode associated with each language your installer supports.
I realize that one way I could prevent this is to create only a "multilingual package" so that there is only one ProductCode. However, as I stated earlier, the localized resources for my app are quite large (lots of images with text, etc) so putting them all in a single package is not feasible - the package will be too large.
I think another way to prevent these type of side-by-side installs would be to use the same ProductCode across all the languages in my project. Interestingly, it seems that previous versions of AI defaulted to that behavior (one ProductCode for all languages in the project), but that behavior was changed at the request of at least one user.
So, how can I share the same ProductCode across all of the languages? Well -
(1)
I am aware that I can manually edit the ProductCode, but this is not a viable long-term solution. I have AI nicely integrated with our continuous-build system and do not want any manual steps.
(2)
I am also aware that I can set it from the command-line using the /SetProductCode flag. However, the limitation I see with this approach is that I must provide the ProductCode (GUID) myself. When I change the Product Version (1.0.0 -> 1.0.1) I must provide a new GUID. Previously, when I only needed to build a single English package, I could simply use the /SetVersion flag and AI would automatically generate a new GUID for me. I would strongly prefer to let AI handle the GUID for me, so that I do not need to maintain a separate list of GUIDs myself.
The /SetProductCode documentation also states that the GUID parameter is optional, and that a new one will be generated if I do not provide one. That almost solves my problem, but then how can ensure all languages use this new GUID? It seems a new GUID will be generated for each language. If let AI automatically generate a new GUID for the default language (English), and then force the other languages to use that GUID, I suppose that would work, but I would need the ability to "query" AI and ask for the new GUID for English and no such query functionality exists (to the best of my knowledge).
Also, if I already passed the /SetVersion flag and thus allowed AI to generate a new GUID, does the /SetProduceCode flag (with or without a GUID given by me) then over-write the GUID with the new value?
Thanks very much for any insight you can provide on this situation,
Todd
FOLLOW US
Get the latest news in Application Packaging