1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

windows 7 and program files

Discussion in 'Windows 7' started by clintonbrits, Apr 27, 2010.

Thread Status:
Not open for further replies.
Advertisement
  1. clintonbrits

    clintonbrits Thread Starter

    Joined:
    Apr 27, 2010
    Messages:
    4
    I've just upgraded to windows 7 32 bit from windows 98 and i installed an application that i made myself to edit my website.The location of the webpages is in the htdocs folder of the apache root folder in the program files folder. This obviously means that my program routinely modified files to the program files folder. The strange thing i can't explain is :

    1.If you open a html document then it loads the document correctly.
    2.When i edit the document and save it then it seems to save it and you can close and open with the changes being saved.
    3.if i open the document in internet explorer to view the content then it loads the old document without the changes. If you open the source file in notepad then it loads the old content aswell!?
    4.I though it might be using a different location but if you delete the source file and re-save it then it saves it to the correct place but again it just brings back the old document and my changes still don't show in the saved file but yet my application can load the changes! :confused:
    5.If you delete the source file and then ask my application to load it it tells you that the document cannot be found but if it is there it loads from another file with a different version.

    It seems like there are two folders for my documents but i can't find the other one nor can i imagine the reason for windows doing this.

    Thanks in advance
    Clinton Brits
     
  2. antech

    antech Banned

    Joined:
    Feb 23, 2010
    Messages:
    1,427
    Is the App compitable with Windows 7?
     
  3. clintonbrits

    clintonbrits Thread Starter

    Joined:
    Apr 27, 2010
    Messages:
    4
    The program was designed on and for a windows xp sp2 system and so at that time there was no windows 7 to test on. I'm currently trying to get it working on windows 7 by running it in compatability for windows xp on the windows 7 operating system but i need to know the logic behind what windows is doing so that i can compensate for it in my code.
     
  4. Callum_Dawson

    Callum_Dawson

    Joined:
    Mar 9, 2009
    Messages:
    560
    There is an option somewhere in the Windows 7 interface saying something like "Make a program compatible with Windows 7".
     
  5. loserOlimbs

    loserOlimbs

    Joined:
    Jun 19, 2004
    Messages:
    7,800
    Are you using a new instance of your browser each time?

    Try clearing cache etc... I would lean towards a development issue for the correct board on this one...
     
  6. TheOutcaste

    TheOutcaste

    Joined:
    Aug 7, 2007
    Messages:
    9,028
    Programs are not allowed to write to System Folders any more. Data and configuration info should be stored in the User or Public Profile folders, not the Program Files folder.
    By restricting programs from being able to write to system folders like Windows and Program Files, it makes the system more secure; malware can't infect a program if it can't write to that location.

    I suspect you'll find the files are actually being saved here:
    C:\Users\<User Name>\AppData\Local\VirtualStore\Program Files\<Application Name>

    Applications that did not modify the file will be getting the original copy from the Program Files folder, but the app that edited the file will get the modified copy from the Virtual Store.

    See these for more info on Folder Virtualization:
    Common file and registry virtualization issues in Windows Vista or in Windows 7 (Scenario 2)
    Understanding and Configuring User Account Control in Windows Vista (Search on Virtualization)
    Determine How to Fix Applications That Are Not Windows 7 Compliant
     
  7. antech

    antech Banned

    Joined:
    Feb 23, 2010
    Messages:
    1,427
    If it was specifically written for XP,
    consider disabling the Desktop Composition in the Properties of the programs shortcut.
    I have now replaced 7 with XP .OK?
     
  8. DoubleHelix

    DoubleHelix Banned

    Joined:
    Dec 9, 2004
    Messages:
    24,388
    You need to re-read the poster's question. The poster wrote the application and is asking how to make changes so it is compatible with Windows 7.

    TheOutcaste is very knowledgeable and has posted very helpful information.
     
  9. Sponsor

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/919511

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice