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. Qt Installer Framework Persistent variables
Qt 6.11 is out! See what's new in the release blog

Qt Installer Framework Persistent variables

Scheduled Pinned Locked Moved Installation and Deployment
qtifwinstallerframeworkpersistent
1 Posts 1 Posters 1.0k 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.
  • C Offline
    C Offline
    circlesquare
    wrote on last edited by
    #1

    I have created a custom installer page for the user to enter the directory of a an application that my application depends on. Currently, it is possible to access the directory of the supporting application through the installer, but when I need to use it with the updater or package manager, that path is not available. I need that path in order to register my component.addOperation(...).

    I have already tried

    installer.setValue("directory", myDirectory);
    var dir = installer.value("directory");
    

    but the value does not persist after the installer finishes and it becomes empty when I use the updater.

    How can I create a persistent value?

    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