Wix: Set semicolon to CustomActionData

后端 未结 3 1649
猫巷女王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 15:14

    JSON Strings: Chris Painter - who has also answered this question with an older approach - has a blog entry that revolutionizes CustomActionData handling by using JSON strings. Now there is no string parsing to do, so far as you use a proper JSON library. Built-in serialization / deserialization: http://blog.iswix.com/2011/10/beam-me-up-using-json-to-serialize.html.

    Technically: The technical nitty-gritties would be different depending on language, but JSON strings themselves are simple:

    Groups=[{"Name":"Rockers","Description":"People who rock!"}]
    

    You can resurrect an object in deferred mode! Just by calling Serialize and Deserialize.

提交回复
热议问题