Compilation and permission have nothing to do with, who installs the software gives permission to what it can do, a created executable has no privilege property, so the question doesn’t even make sense. Then you will have to ask for permission and the user will determine whether you give it or not. Often an installer can help with this. Nor could it be different, otherwise making attacks will be extremely simple.
Actually it doesn’t even make sense to do what you did. The question is mainly answer linked are very bad, do not need to do what the person said to get the requested result, nor does it make sense to do what she wanted, is just a wrong "solution" to the real need.
So what would be the correct way to ask and what would be the correct solution to this problem (change parameters of an executable)
– Henrique
And on the compilation, I just meant that it loses Adm permission when I compile a file
.il
. Was basically that I did in the application, initially, for it to ask Adm permission when running.– Henrique
Parameters should not be in the executable, simple.
– Maniero
But to make it more practical for the user, what I want to do, needs to. Explaining better, the user will choose certain things on a site, and I have to send him an executable with the parameters according to what he chose...
– Henrique
This is no longer practical and is wrong. Find the right solution, this is not.
– Maniero
Yeah, I always value good practice. But the only way I found it was this. Because the program I did installs some programs in the mode Silent. Is basically that what I want to do. Do you know/indicate another alternative to solve this problem? I am doing this for C learning purposes#
– Henrique