Problem with Setup Project in Visual Studio 2010

visual studio 2010 , visualstudio , vs , visual-studio Oklahoma City, United States
  • 7 years ago

    'm trying to create a Setup for my app using the Setup Project wizard in Visual Studio 2010. One of the files I added to the Setup Project is a database (.sdf) file that gets installed in the same folder as the main executable file. The problem is that when I try to run the app after I install it, I get an "Access to the database file is not allowed" error message. If I change the database file's permissions after installed, I can run the program successfully. But that should be done by the installation program. I also tried adding a manifest file to my app, and then rebuild and reinstalled. This way it worked but I had to accept an annoying security message box every time I run the application. So, is there any way to program the installer to copy the file with full permissions?

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).


Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Weeks of coding can save you hours of planning.”