Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Preserving a file while updating a component
manikk last edited by
I have to rollout an update for a product we are building. It is for windows platform. The installer is created using Qt Installer Framework 1.5. I am able to create the repositories. The application is having an "ini" file, in which we store the settings of the application. The ini file is in the root directory of the application. The installer seems to be deleting the file while updating the components. I want to preserve that file and roll out the update. How to achieve this?
Not really an answer to your question but using an ini file in the root path of your application is not the right thing to do. Each OS has a specific path where you should store these kind of files, you can use QStandardPaths for that.