On Sun, Mar 21, 2010 at 1:05 PM, Dave Brotherstone <[email protected]> wrote:

> For the application, we have a language definition file that contains the
> localized strings for each language, and a single file that represents the
> active language.  I would like to offer the user a drop down of available
> languages (defaulted to the current UserLanguageID) and then copy the
> relevant file to the active language file.
>
> I could do this with a custom action, and accept that I will need one to
> map the UserLanguageID to our filename,  However, reading the "custom action
> = admission of failure", I'm sure there must be a way to copy a
> user-specified installed file? CopyFile seems to either copy a single
> installed file (given a fixed FileId), or a user selected file (ie from a
> property) that already exists before install?
>

Answering my own question, after days of googling, an hour after I sent the
message to the list I solved this using a Component for each language, with
a Condition that the selected language was that component's language.  I got
a warning for each one that the same file could be copied more than once if
the conditions aren't mutually exclusive, but they are, so I presume I can
safely ignore that.

Thanks for any other suggestions...

Cheers,
Dave
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to