Solved

SetUp Project windows vista  can not change file

Posted on 2009-05-10
1
307 Views
Last Modified: 2012-05-06
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
Comment
Question by:parabellum
1 Comment
 
LVL 7

Accepted Solution

by:
zwei earned 500 total points
ID: 24349732
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now