Solved

Updated files are now in my c:\Users folder. What is going on here ?

Posted on 2007-12-06
10
188 Views
Last Modified: 2010-04-21
I have an application that, under XP, NT or 2000 updates an .iini file in the following folder. (Just an example)
C:\Program Files\Rays's folder\Settings\Ray.ini.

I run this application on a Vista Enterprise box
But when I look at C:\Program Files\Rays's folder\Settings\Ray.ini, the changes that the aplication made to the Ray.ini file are not there.

Rather,  I find a file named Ray.ini in the "C:\Users\RKode\AppData\Romaning,  folder.
And the changes that the application made are in THIS copy of the file.

And when I run the application a second time,  it actually reads the Ray.ini file from the C:\Users\RKode\AppData\Roaming folder.

I didn't expect this behavior.
I didn't expect this behavior at all.
What kind of Microsoft trickery and wizardry is at play here ?
Is there any way for my changes to be written back to the C:\Program Files\Rays's folder\Settings\Ray.ini version of the file as I have a routine that backs up the Ray.ini file from the C:\Program Files\Rays's folder\Settings folder.

Any help, insight or explaniation would be greatly appreciated.

Thanks in advance for all responses.

Ray in Wisconsin

0
Comment
  • 2
  • 2
  • 2
  • +3
10 Comments
 
LVL 7

Expert Comment

by:killbrad
ID: 20422884
oh i feel your pain.  I believe the solution is to disable UAC, but just be aware this may cause more issues than it will solve.  For example, Lotus Notes does the same thing, and if you disable UAC, it goes to the right spot.. however then you lose connection to your old data and its a SOAB to get it linked back up.
0
 
LVL 8

Accepted Solution

by:
YGregersen earned 100 total points
ID: 20423088
Likely, the program is coded to write to a pointer called something like %User_Home%.
On th old XP box it would automatically go to c:\Documents and Settings\user\....
On Vista it will go to C:\Users\....

Vista changed the location of where it stores the user profiles.
0
 
LVL 53

Assisted Solution

by:McKnife
McKnife earned 100 total points
ID: 20423105
To support killbrad: this program is not compatible to vista/the uac feature of vista that uses folder redirection. Either turn off uac or run the application as administrator (rightclick it - run as administrator - this is different from using an admin account!).
Read about uac and folder virtualization/redirection in MS technet or wikipedia.
0
 
LVL 7

Assisted Solution

by:killbrad
killbrad earned 100 total points
ID: 20423273
Thnx McKnife... yeah, Notes isn't "Vista Compatible" but had a client that did it anyways.. Just throwing out an example of issues that older/legacy apps can and likely will have with Vista..  Thanks for the post though!  :-)
0
 
LVL 88

Assisted Solution

by:rindi
rindi earned 100 total points
ID: 20423376
That's actually the way software should have run all the time. When you change settings of an installed software, those settings should never be mad in the program files folder, but rather per user in his profile. If the changes are made in the program files folder everyone would require admin rights, and that isn't how things are supposed to work.
0
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 
LVL 59

Assisted Solution

by:LeeTutor
LeeTutor earned 100 total points
ID: 20424188
It's all part of Vista's "new and improved" system security concepts.  See this page for an explanation:

http://juice.altiris.com/article/2665/folder-virtualization-concepts-windows-vista

Programs are no longer allowed free access to folders in the Program Files folder.  Microsoft has said that the virtualization concept is a "temporary" measure until they can figure out how to do it right...  (Of course that last comment following the word "until they..." is MY evaluation, not the way they put it themselves...)
0
 
LVL 59

Expert Comment

by:LeeTutor
ID: 20433887
rkode, any feedback?
0
 
LVL 1
ID: 20457305
Good morning (from a snowy Wisconsin),

Sorry for the tardy response but since reading the article via the link that LeeTutor provided, I have been working on my test VISTA box non-stop.

I can now state that I finally understand how things work with VISTA (redirection wise) as opposed to how they work in prior OS's.

And I also now understand as McKnife stated that running the application as administrator is different from using an admin account).
(I tested it.)

I actually received a piece of what I was looking for,  from each response that was penned to my question.
And for that, I thank each of you.

I NEVER (well at least not for a long time) would have figured this out on my own.

Thanks again to everyone.

Ray in Wisconsin
0
 
LVL 1

Author Closing Comment

by:Accidental Hyper-V Administrator
ID: 31413246
I NEVER, EVER would have got this on my own.
Your the greatest.
0
 
LVL 88

Expert Comment

by:rindi
ID: 20457780
Your welcome
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

by Nathan Brom/Bromy2004 Introduction There are numerous websites out there for any different type of program you can imagine.  Of those, you'll need to decide which ones are legitimate and aren't trying to steal your money or infect your comput…
Many times while working on a computer regardless of any Operating System, lag and crashes seem to creep in, hindering your working speed. Sometimes, it can also cause your work to be lost unexpectedly and as a result, you are unable to meet your de…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
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…

895 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

21 Experts available now in Live!

Get 1:1 Help Now