Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. [SOLVED] Qt Installer Framework - question about setting enviroment variables
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Qt Installer Framework - question about setting enviroment variables

Scheduled Pinned Locked Moved Qt Creator and other tools
2 Posts 1 Posters 2.3k 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.
  • GianlucaG Offline
    GianlucaG Offline
    Gianluca
    wrote on last edited by
    #1

    Dear all,
    I'm not sure if it's the right board for asking questions about the use of Qt Installer Framework.
    If not, please, can you redirect me to the right board ??

    I'm starting to use it, and when I tested the EnviromentVariable operation I found a strange problem.
    If I write on the component script the following code:
    @component.addOperation("EnvironmentVariable", "FARSA_DIR", "@TargetDir@", true);@
    After the installation the enviroment variable will containg a path formatted for linux machines, and not for windows machine.
    The installer has been created on windows and tested on windows.
    The path written on FARSA_DIR variable is: C://Laral/FARSA (that's wrong on windows) instead of C:\Laral\FARSA

    Why ??

    Thanks,
    Gianluca.

    1 Reply Last reply
    0
    • GianlucaG Offline
      GianlucaG Offline
      Gianluca
      wrote on last edited by
      #2

      I solved the problem looking at the examples.
      The above command has to be inserted into the createOperation function of the script and not in the constructor.
      My first attempt was to put the addOperation command into the constructor of a Component, but at that point the variables does not have the correct value (at least for the path that are not in native format).
      While, when exectued into the createOperations function the path variables are in native format.

      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