Did you copied your database from somewhere else? If so, look for the db, right click, uncheck 'Read-only' and grant security permission to 'Everyone' with Full Control.
Then try running your installed program as Administrator, right click, choose 'Run as', then login to the administrator account.
Source:
http://bytes.com/topic/net/answers/898686-sql-database-readonly-error-windows-7-a[
^]