Search code examples
.netjsonwpfwixwindows-installer

How to modify json with WixToolset v3.11


I want to modify values in an existing json file.

When I run my installer I type server name which points to my API. After I typed server name I want to add that value in app settings json file.

enter image description here

enter image description here

enter image description here


Solution

  • http://dotnetbyexample.blogspot.ro/2010/11/wix-configurable-search-replace-custom.html

    You need to create a wix project (Custom Action Class Library) create logics, after that you need to use dll in Product.wxs (Installer project) like in example.

    PS: if you want to change one property from file, you should have something like this:

    enter image description here