A
A
Alexander2015-10-04 11:03:04
Qt
Alexander, 2015-10-04 11:03:04

How to set application launch rights in Windows C++?

I have an application written in Qt. In Inno Setup I made an installer for it, in the settings I forbade changing the installation path - it is installed in Program Files. The application creates files in the working directory, from the working directory it launches other utilities that also create new files in the working directory ...
So, in Windows 7 the application works fine, but in Windows 8 and 10 it cannot create either directories or files . Running as administrator does not particularly solve the problem - the utilities launched by the application still cannot write to disk.
I'm somehow not strong with these, excuse me, inadequate Microsoft oversights about security ... tell me what needs to be done so that the application has full rights to write and delete files in its directory?
In my opinion, the problem with the main application should be solved at the compilation stage - you just need to add some config to the RC file (I would be grateful for links to information if this is the case). But what about the utilities that are launched by the application? Utilities used are Qt's qmake, mingw-make, g++, etc. By the way, Qt is installed on the system drive and calmly creates project folders there, calmly launches third-party compilers, which in turn quietly create new files and directories. How to achieve similar functionality?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Antony, 2015-10-04
@wxmaper

I suspect that you just need to stick the correct manifest into the application. How to write a manifest - look on msdn.com, how to stick it into your program look on qt.io, it's definitely there, but I don't remember the link right away.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question