Solved

SetUp Project windows vista  can not change file

Posted on 2009-05-10
1
305 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
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…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

706 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

18 Experts available now in Live!

Get 1:1 Help Now