Solved

SetUp Project windows vista  can not change file

Posted on 2009-05-10
1
310 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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…

738 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