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!

budyn321
Posts: 4
Joined: Mon Oct 09, 2017 11:09 pm

Request for help - 'backup' and create example settings file

Hello

I am looking for best solution for setting file which must install.
1.After installing/updating/reinstalling setup, settings file must be named appsetting.json and the file is not changed in installation directory (custom configuration)
2.After installing/updating/reinstalling setup, example settings file (like appsetting_example.json) exists in installation directory (example/sample configuration from source)

Assumptions:
1.This is the MSI setup
2.Installation files are synchronizing

In the attachment I add example setup. I use three custom actions to copy files. It seems to work to me, but exists other way to get the same result?
Attachments
Test.zip
(3.73 KiB) Downloaded 199 times
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Request for help - 'backup' and create example settings file

Hello and welcome to our forums,

Unfortunately, I am not quite sure I understand your scenario here.
1.After installing/updating/reinstalling setup, settings file must be named appsetting.json and the file is not changed in installation directory (custom configuration)
By this, do you mean you want the file to not be removed during an upgrade? If that is the case, please follow our "How do I prevent a file or registry entry from being uninstalled or repaired?" article.

In what regards the other points, please give me some more details so I can better understand what you are trying to achieve.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”