Unsolved Incorporate and run an exe file inside the app - static standalone building
-
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.
-
Hi! What you want to do isn't possible. QProcess asks the operating system to run an external .exe in a separate process.
-
Hi,
Out of curiosity, what are these applications you want to execute externally ?
-
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?
-
@Konstantinos No, you can't. Also: Why would you want to do that?
-
@Wieland Just I want to hide the existence of some exe files.
-
@Konstantinos Yeah, and my question was: Why would you want to do that? ^_^
-
@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.
-
@Konstantinos In this case, maybe the Qt Installer Framework is what you're looking for.
-
@Wieland Ok, thank you.