I am developing a software for Windows (XP to 10 and beyond) with Qt 5 C++. As of now, the default installation path is in C:\Users\Public\Kontiki
.
However, I read that it might not be a good practice and that I should rather install it in C:\ProgramFiles\Kontiki
.
That's what I plan to do.
However, I have two main concerns.
Concern 1
The files in my installation folder includes the .exe, .dll and documentation.
However, it also includes users parameters (.txt files). The user must be able to change these parameters with the help of a GUI in my program. The problem is that when my software is in ProgramFiles
, this can't be done since they don't have the rights to write in ProgramFiles
. What I should do is place the .txt parameters files in AppData
. So what I would do is:
- At the installation (with NSIS installer), I would write the .txt parameters files to
$APPDATA
- In my Qt program, I would access these .txt parameters with
QStandardPaths::AppDataLocation
All this to say that my concern is that I am not sure that the path from the NSIS installer$APPDATA
will always be the same that the one returned by Qt withQStandardPaths::AppDataLocation
. For instance, maybe on a new version of Windows there will be some differences or something. Maybe it's not a legit concern but I wanted to verify.
Concern 2
If the program is installed in ProgramFiles
, is it possible that I would have some problems with UAC (for instance if the user is not admin) or anything?
Thank you so much for your help!