Have a database file that is password protected that my program use to define screens etc. The program only reads from this database, no writing done to it.

The database resides in the program directory where the exe is located as it is needed to do the screens etc.

I'm using Inno Setup (very new to it though) to deploy the program. In XP the program works fine, reads the database without any problems. Vista and Win7 is another story though. On some of these systems I get Runtime Error 70: Permission denied when my program tries to open/read from this database. It seems that it is only the password protected database that is affected. Two other databases that is not password protected works without a hitch.

Turning UAC (User Account Control) off on these machines solves the problem with my program opening and reading the database but I suspect will create other problems. It is of course possible that the Vista and Win7 machines that does not give this error already has it's UAC turned off. Digging the Internet it seems that there is some consensus that UAC is rubbish.

Can Inno Setup set the file permissions during setup so that the program will not encounter this problem while UAC is turned on? How?

Your help is really appreciated.