I'm doing a QT app for windows that during the execution I need to start another program that is on the same folder than the executable. The thing is that I have this currently working but it only fails when I copy the folder into "C:/program files (x86)", it just doesn't execute it and neither giving any QProcessError.
For example, if I put the folder of my program (with all necessary DLL's and the other .exe) at desktop or directly in c:, it does work, but the moment it's inside ProgramFiles (x86) it stops working the part that automatically execute the second program.
I think it should be some kind of permision problem, but, my QT app asks for admin right when it's executed.
Here, the code:
QProcess procStart;
...
connect(procStart, SIGNAL(error(QProcess::ProcessError)),this, SLOT(slotProcessError(QProcess::ProcessError)));
...
void AppName::launchProcess()
{
procStart.start(rootPath + ressources + app);
}
Any idea? I've tried with start, startDetached, execute, etc... and same result always, outside programfiles works flawlesly, but not inside.
Thanks!