Problem with ini files and VirtualStore


  1. Posts : 4
    Windows 7 Pro 32bit
       #1

    Problem with ini files and VirtualStore


    Hey,
    I have a problem with this magical tool. My program is supposed to save and read data from ini file from c:/windows. But, Windows created the same file in VirtualStore and now sometimes it reads from that directory. Could you explain my why? And in what cases?

    Thx in advance,
    Regards,
      My Computer


  2. Posts : 934
    Windows 8.1 ; Windows 7 x86 (Dec2008-Jan2013)
       #2

    This has to do with UAC and permissions program was started -As administrator or not.
      My Computer


  3. Posts : 4
    Windows 7 Pro 32bit
    Thread Starter
       #3

    Thanks, I understand now how VS works, but.. I still have a problem.
    As administrator: I can save and read ini file from c:/windows
    Than I created a simple default win7 user (not an admin). As user: I can read ini file from c:/windows, but I can't make any changes. Manually - no chance. So I created a program that changes ini file and still can't change! (no error message appeared).

    So I checked my VirtualStore dir.. but my new user don't have that directory in ..\AppData\Local. Also I search by windows tool for that file and found only one file - in c:/windows.

    Any ideas what happened ?
      My Computer


  4. Posts : 934
    Windows 8.1 ; Windows 7 x86 (Dec2008-Jan2013)
       #4

    Have to look at your program. PM me the link, if you want.
      My Computer


  5. Posts : 4
    Windows 7 Pro 32bit
    Thread Starter
       #5

    ok.. well, I think I can't sand PM: "mnd017, you do not have permission to access this page. This could be due to one of several reasons:" or I don't know how to do that :/

    Anyway.. My test program is here: http://www.sendspace.com/file/puh59p , thx for help
      My Computer


  6. Posts : 934
    Windows 8.1 ; Windows 7 x86 (Dec2008-Jan2013)
       #6

    When you open this program as a Standard user you won't be able to modify those files ("Access denied", see screenshot attached). This has to do with file permissions for non-admin user. I dot not know why virtualstore does not kick in. But I you have to run it as admin to work or ini file has to have a permission to be modified by a regular user (which is not good for files in Windows folder).
    Attached Thumbnails Attached Thumbnails Problem with ini files and VirtualStore-access_denied.png  
      My Computer


  7. Posts : 4
    Windows 7 Pro 32bit
    Thread Starter
       #7

    Ok. Thank you for your time
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 08:26.
Find Us