Wix: Set semicolon to CustomActionData

后端 未结 3 1625
猫巷女王i
猫巷女王i 2021-01-19 14:22

I have a problem with setting data that contains semicolons to CustomActionData property. By default CustomActionData class uses semicolon as DataSeparator and it breaks my

3条回答
  •  悲哀的现实
    2021-01-19 14:57

    Back in 2006 I wrote a blog article and sample project:

    InstallScript, meet CustomActionData

    Basically I used the pattern: /KEY1=VALUE1 /KEY2=VALUE2

    The library worked by calling a lookup function passing it "/KEY1=". It then returned all data until the end of until the next " /".

    Regardless I don't really use this much any more since I've moved onto C# DTF which has a CustomActionData class handles the derialization/deserialization for me.

提交回复
热议问题