Kanishka Weerasekara
Kanishka Weerasekara

Reputation: 57

Installing QT application on windows C Drive

I have a QT based application consisting of a configuration file(which is a text file with extension cfg) and an SQLite data file which gets installed with the application. Code verifies that the config file is present in the installation directory.

I have this weird problem where, when running the given cfg file is not updated, but the configurations are saved some where else. Even if I delete the cfg file, application still works. This is as if the OS is making a copy of the config files and database files and keep updating them instead of the actual file.

If application is installed in another drive (say d::), this behavior is not present. In addition if I run the application as administrator the app will edit and use the config file stored in C: drive. Does such cache exist for editable files installed in C drive. If so how to go around it. Thanks in advance.

Upvotes: 0

Views: 133

Answers (1)

Tim Hoffmann
Tim Hoffmann

Reputation: 1345

This is as if the os is making a copy of the config files and datbase files and keep updating them instead of the actual file.

That might indeed be the case. Windows Vista and above introduced the concept of the Windows Virtual Store to prevent applications from writing to possibly harmful locations. For an explaination see e.g. http://portableapps.com/node/35519

Upvotes: 1

Related Questions