如何使用 WixToolset v3.11 修改 json [英] How to modify json with WixToolset v3.11

查看:31
本文介绍了如何使用 WixToolset v3.11 修改 json的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想修改现有 json 文件中的值.

当我运行我的安装程序时,我输入指向我的 API 的服务器名称.输入服务器名称后,我想在应用设置 json 文件中添加该值.

解决方案

(SOLUTION)

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.

解决方案

(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.

Good luck!

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

这篇关于如何使用 WixToolset v3.11 修改 json的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆