There's a project that uses sqlite db file. It all works fine until I make setup file using Visual Studio installer. I'm aware of UAC limitations so I've created custom folder [CommonAppDataFolder][Manufacturer][ProductName]. (C:\ProgramData\MyCompany\MyProduct) Setup file creates the folder and puts the DB file there, however, the program crashes with exception "attempt to write a read-only database". The most interesting stuff begins when I take the same DB file that I've just added through Visual Studio Installer and put it to C:\ProgramData\MyCompany\MyProduct. It should be essentially the same file, but when I add it manually - everything works just fine. So I believe the problem is with Visual Studio Installer, it somehow messes up database permissions. Could you advise me where should I dig in order to get this fixed? Thanks in advance.
P.S. I'm using Windows 7, SP1