Editing JSON file - Advanced Installer Community
Antarctica
Posts: 110
Joined: Tue Jul 08, 2014 9:24 am

Editing JSON file

I want to fill a JSON file with content entered on setup.

So I went into "Edit Text File Update" and made a "create or append" operation. Under "Create file with encoding", I then wanted to select "UTF-8 without BOM", because this is required encoding for JSON.

But there is no such selection; instead, I only have "ANSI using system code page", "UTF-8 with BOM", "UTF-16 Little Endian with BOM".

What am I overlooking?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Editing JSON file

Hello,

Please note that the file encoding will be used only if the file is created by our "Text File Updates" support, if the target file doesn't already exist on target machine at install time. If the file already exists on target machine, then our text updates support will preserve the existing file encoding. So, if your file is already created on disk with the required encoding before the text updates applies, then the encoding type you selected will be ignored.

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”