Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Preserving a file while updating a component
Forum Updated to NodeBB v4.3 + New Features

Preserving a file while updating a component

Scheduled Pinned Locked Moved Installation and Deployment
2 Posts 2 Posters 626 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    manikk
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      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.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved