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 IFW - Add folder to the user TargetDir
Forum Update on Monday, May 27th 2025

Qt IFW - Add folder to the user TargetDir

Scheduled Pinned Locked Moved Solved Installation and Deployment
7 Posts 2 Posters 755 Views
  • 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.
  • L Offline
    L Offline
    LHPixel
    wrote on last edited by
    #1

    I need to add One more folder for all files because sometimes user can choose For Example To the Desktop and Desktop will be full of files . - I want to fix this adding one more folder to the targetdir (that the user selects during installation)

    J.HilkJ 1 Reply Last reply
    0
    • L LHPixel

      I need to add One more folder for all files because sometimes user can choose For Example To the Desktop and Desktop will be full of files . - I want to fix this adding one more folder to the targetdir (that the user selects during installation)

      J.HilkJ Offline
      J.HilkJ Offline
      J.Hilk
      Moderators
      wrote on last edited by
      #2

      @LHPixel the simplest method, put your whole application with the dlls etc into a folder and make the IFW over that folder :D


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      L 1 Reply Last reply
      0
      • J.HilkJ J.Hilk

        @LHPixel the simplest method, put your whole application with the dlls etc into a folder and make the IFW over that folder :D

        L Offline
        L Offline
        LHPixel
        wrote on last edited by LHPixel
        #3

        @J-Hilk This wouldnt work because files like "installerResouces" , "installer.dat", "components.xml" will be in the previous folder)))
        ba036f6a-4b06-4494-aa48-2e2939917c36-image.png
        If i do this, then i need to somehow get the installer to delete these file xD

        J.HilkJ 1 Reply Last reply
        0
        • L LHPixel

          @J-Hilk This wouldnt work because files like "installerResouces" , "installer.dat", "components.xml" will be in the previous folder)))
          ba036f6a-4b06-4494-aa48-2e2939917c36-image.png
          If i do this, then i need to somehow get the installer to delete these file xD

          J.HilkJ Offline
          J.HilkJ Offline
          J.Hilk
          Moderators
          wrote on last edited by
          #4

          @LHPixel you're right, thats a problem

          SO I looked into the documentation and I found this:

          https://doc.qt.io/qtinstallerframework/qtinstallerframework-modifyextract-example.html#modifying-target-path

          does that solve the issue for you?


          Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


          Q: What's that?
          A: It's blue light.
          Q: What does it do?
          A: It turns blue.

          L 1 Reply Last reply
          0
          • J.HilkJ J.Hilk

            @LHPixel you're right, thats a problem

            SO I looked into the documentation and I found this:

            https://doc.qt.io/qtinstallerframework/qtinstallerframework-modifyextract-example.html#modifying-target-path

            does that solve the issue for you?

            L Offline
            L Offline
            LHPixel
            wrote on last edited by
            #5

            @J-Hilk For some reason it just makes your first idea)6f260fe5-5a47-41f7-81a2-774d4415f619-image.png

            J.HilkJ 1 Reply Last reply
            0
            • L LHPixel

              @J-Hilk For some reason it just makes your first idea)6f260fe5-5a47-41f7-81a2-774d4415f619-image.png

              J.HilkJ Offline
              J.HilkJ Offline
              J.Hilk
              Moderators
              wrote on last edited by
              #6

              @LHPixel interesting.

              So I found this SO thread:
              https://stackoverflow.com/a/52390328/15422846

              seems like that could help :D


              Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


              Q: What's that?
              A: It's blue light.
              Q: What does it do?
              A: It turns blue.

              L 1 Reply Last reply
              1
              • J.HilkJ J.Hilk

                @LHPixel interesting.

                So I found this SO thread:
                https://stackoverflow.com/a/52390328/15422846

                seems like that could help :D

                L Offline
                L Offline
                LHPixel
                wrote on last edited by
                #7

                @J-Hilk It helped, you really are the GOD of this world))

                1 Reply Last reply
                1

                • Login

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