We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

qureshi123
Posts: 3
Joined: Wed Nov 09, 2016 4:22 pm

how to edit json file

Hi

In advanced installer, i have a file in "json format" (see attached file*) which i have to deploy. I want to edit this json file and replace the word "PATH" with the path of [APPDIR]. e.g "PATH\test.dll" with APPDIR\test.dll and save it in json format. I tried to use "text file update" feature but it did not work. One possibility is to write custom action but then things will get complex, what are the other possibilities ?

Thanks,
Q

*attach file is in txt format because i cannot upload it in .json format
Attachments
test.txt
(55 Bytes) Downloaded 308 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: how to edit json file

Hello and welcome to our forums,

To achieve what you want you can simply use our "Text File Updates" feature.

Just go to 'Files and Folders" page and in the folder where you will deploy your JSON file add a new text file update configured to replace the "path" string with the [APPDIR] property formatted reference. Please find attached a sample which implemets this configuration.

All the best,
Daniel
Attachments
sample.zip
(3.15 KiB) Downloaded 490 times
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”