• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 317
  • Last Modified:

SetUp Project windows vista can not change file

Hello,
I am using Visual Studio 2008 and c# .
I have made a setup project.  
The program opens and saves settings to a .ini file i have created.

Everything is working fine under Windows XP/Windows Server 2003.
But when the users install it to vista my program throws an exception because
windows vista does NOT allow the program to change the ini file.
When the users right click  to the folder where they installed the program and change the security settings to allow read/write ; then the program runs without crashing.

Now, what should i do to my setup project so that it will ensure that vista allows my program to change its own files. Obviously telling the clients to manually change folder accesibility settings
is annoying and inefficient.

Thanks for reading my post.



0
parabellum
Asked:
parabellum
1 Solution
 
zweiSoftware DeveloperCommented:
Try storing the ini file in the folder where your program installs (if you're not doing that already) or change the extension of the file to something other than ini.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now