Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Incorporate and run an exe file inside the app - static standalone building

Incorporate and run an exe file inside the app - static standalone building

Scheduled Pinned Locked Moved Unsolved General and Desktop
10 Posts 3 Posters 1.9k 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.
  • KonstantinosK Offline
    KonstantinosK Offline
    Konstantinos
    wrote on last edited by Konstantinos
    #1

    I have two executable files that I want to incorporate and run inside my new app. For example in the code I will write something like this:

    QProcess p;
    p.start();
    p.waitForFinished();

    ...

    Can you tell me step by step how to do so?

    For example I will declare these exe files in .pro, like the libraries?
    If so, how then I will call them with QProcess class?
    And finally, how the final exe file of my app will be static-standalone, without any external need for these exe files?

    So far, I put them in the directory of my app, and with QProcess I call them to run. But I do not want them to be visible in the final exe that I will give out.

    Thanks in advance.

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by A Former User
      #2

      Hi! What you want to do isn't possible. QProcess asks the operating system to run an external .exe in a separate process.

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

        Hi,

        Out of curiosity, what are these applications you want to execute externally ?

        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
        • ? A Former User

          Hi! What you want to do isn't possible. QProcess asks the operating system to run an external .exe in a separate process.

          KonstantinosK Offline
          KonstantinosK Offline
          Konstantinos
          wrote on last edited by
          #4

          So, I cannot use exe files in programming like dll libraries?

          Instead of having one.exe and two.exe in the same directory (the one calls the two), I cannot incorporate the two inside the one? Or somehow to hide its existence?

          ? 1 Reply Last reply
          0
          • KonstantinosK Konstantinos

            So, I cannot use exe files in programming like dll libraries?

            Instead of having one.exe and two.exe in the same directory (the one calls the two), I cannot incorporate the two inside the one? Or somehow to hide its existence?

            ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #5

            @Konstantinos No, you can't. Also: Why would you want to do that?

            KonstantinosK 1 Reply Last reply
            0
            • ? A Former User

              @Konstantinos No, you can't. Also: Why would you want to do that?

              KonstantinosK Offline
              KonstantinosK Offline
              Konstantinos
              wrote on last edited by
              #6

              @Wieland Just I want to hide the existence of some exe files.

              ? 1 Reply Last reply
              0
              • KonstantinosK Konstantinos

                @Wieland Just I want to hide the existence of some exe files.

                ? Offline
                ? Offline
                A Former User
                wrote on last edited by A Former User
                #7

                @Konstantinos Yeah, and my question was: Why would you want to do that? ^_^

                KonstantinosK 1 Reply Last reply
                0
                • ? A Former User

                  @Konstantinos Yeah, and my question was: Why would you want to do that? ^_^

                  KonstantinosK Offline
                  KonstantinosK Offline
                  Konstantinos
                  wrote on last edited by
                  #8

                  @Wieland Because I don't want the people who will use my app to be able to see the other app. But why this? Just for simplicity. Nothing bad or curious. One exe file is better than 20 ones.

                  ? 1 Reply Last reply
                  0
                  • KonstantinosK Konstantinos

                    @Wieland Because I don't want the people who will use my app to be able to see the other app. But why this? Just for simplicity. Nothing bad or curious. One exe file is better than 20 ones.

                    ? Offline
                    ? Offline
                    A Former User
                    wrote on last edited by
                    #9

                    @Konstantinos In this case, maybe the Qt Installer Framework is what you're looking for.

                    KonstantinosK 1 Reply Last reply
                    0
                    • ? A Former User

                      @Konstantinos In this case, maybe the Qt Installer Framework is what you're looking for.

                      KonstantinosK Offline
                      KonstantinosK Offline
                      Konstantinos
                      wrote on last edited by
                      #10

                      @Wieland Ok, thank you.

                      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