Search code examples
resourceswixwindows-installerwix3satellite-assembly

Reading string resources from satellite assemblies in Wix?


Is it possible through WIX to read resources from resource DLLs than hard-coding the strings in WXS/WXL files? I have the resources in satellite DLLs and I need something more efficient then copying and hard-coding them in WXS/WXL files.

Thanks


Solution

  • It is possible to get strings from resource DLL and then store them in properties using Custom Action. Then you can use these properties to display text in dialogs.

    But I wouldn't advise using this approach. If these strings are meant to be used only during installation, then they should better go to WSX or WXL files: it is more straightforward and efficient.