@Lee, Dana Thank you for reaching out
When you say "the DB gets the password", is there is a functionality in the application that allows users to change the database password?
And this password needs to be updated in the config file?
You shouldn't require admin permissions to modify the file unless it is in a protected location like Windows directory or "Program Files".
Please consider installing the application to the users AppData folder instead. You should be able to write to the file without any issues.
--
If an answer is helpful, please "Accept answer" and "Up-Vote" for the same which might be beneficial to other community members reading this thread.