In previous versions of our auto updates, we included an exe file that we execute at the end of the update that processes changes to the access database with some user interaction. This has been working just fine.
We are now releasing a new version that uses sql server express as the database. I have updated the exe code to work with sql server instead. If I run this code as part of an installation upgrade it works just fine. But if I run it from within the auto updater I get permissions errors (access denied) on the database files. I can't seem to figure out why it would be different when accessing the sql server db from within the autoupdater or from the installer.
Have you heard of this sort of thing before? I have tried the elevate command and that does not seem to help. I also removed the exe from the updater so the new database files get copied then running the exe manually. It does not work that way either. I assume it has something to do with permissions. I have tried running code that will change the file permissions, but that too does not seem to work.
Any ideas what I may be doing wrong?