mikrocat
27th October 2015, 06:30
Hi,
in my Project i create a file where i save a (encrypted) password. So the user doesnt need to enter it on the next run of the program.
QFile passwordfile(QString("%1%2")
.arg(QCoreApplication::applicationDirPath())
.arg(password.txt));
As you can see I want to save the file in the directory of my application exe.
If I do a setup with InnoSetup and save the Programm in "C:\Program Files (x86)\MYAPP", the files I create in my app are located in
"C:\Users\MYUSERNAME\AppData\Local\Programs\MYAPP" because my program has no permission to create them in the applicationDirPath.
I want to delete the files with uninstalling the program so it would be much easier for me to have them in the applicationDirPath.
I'm open-minded for different ideas
- Another way to save the password (maybe not in an extra file!?)
- Getting Permission to save the files in the actual applicationDirPath
- Track the files with InnoSetup and uninstall them
Thank your for Your attention,
mikrocat
in my Project i create a file where i save a (encrypted) password. So the user doesnt need to enter it on the next run of the program.
QFile passwordfile(QString("%1%2")
.arg(QCoreApplication::applicationDirPath())
.arg(password.txt));
As you can see I want to save the file in the directory of my application exe.
If I do a setup with InnoSetup and save the Programm in "C:\Program Files (x86)\MYAPP", the files I create in my app are located in
"C:\Users\MYUSERNAME\AppData\Local\Programs\MYAPP" because my program has no permission to create them in the applicationDirPath.
I want to delete the files with uninstalling the program so it would be much easier for me to have them in the applicationDirPath.
I'm open-minded for different ideas
- Another way to save the password (maybe not in an extra file!?)
- Getting Permission to save the files in the actual applicationDirPath
- Track the files with InnoSetup and uninstall them
Thank your for Your attention,
mikrocat