Version: 2008
Advanced Search
advertisement
advertisement

Forum display:

Windows Vista: Why Vista fools me on deleted files?

by rgriff - 9/24/07 4:21 PM
advertisement
Click Here
Post 1 of 7

Why Vista fools me on deleted files?

by rgriff - 9/24/07 4:21 PM

I am trying to delete some files from the Program Files folder. Specifically, I have an application installed in the Program Files folder and I want to delete some useless files and folders from that application; and replace some files in that folder as well.

Vista tells me no problem in doing that. And everything seems perfect from the WIndows File Exploerer. The deleted files are gone. And the replaced fiels have shown the new date and size.

But Vista fools me totally! When I start the application, the old components (files) still displayed in the application. And the application still use the old files without recognizing the the newly replaced ones.

I restarted the computer and emptued the recyccle bin. Nothing helps.

From Windows Exploerer, I cannot locate any deleted files and all replaced files showed the new date and size. But from the application, the deleted components still shown and work perfectly as if it were still in the place.

I know that the application plays no trick because I am the developer of the application. The appliaction just uses the regualr Windows API to locate files. If it find the file, it will load the file (component) and run.

Why Windows API can still have access to the deleted files, even been removed from recycle bin?

Everything works fine in XP but but I just do not understand what trick the Vista is playing.

Post 2 of 7

Are these DLLs?

by R. Proffitt Moderator - 9/24/07 4:27 PM In reply to: Why Vista fools me on deleted files? by rgriff

But I'm left guessing here since details are quite sparse in your post.

Bob

Post 3 of 7

They are data and text files

by rgriff - 9/24/07 6:41 PM In reply to: Are these DLLs? by R. Proffitt Moderator

No. The deleted files are not DLLs, nor EXEs. They are just application data files or text files. None of thoese files are locked because I restarted the computer before doing the deletion.

Post 4 of 7

Is this program open source?

by R. Proffitt Moderator - 9/25/07 7:43 AM In reply to: They are data and text files by rgriff

If so, supply the link so others can look under the hood.

So far I can't tell if this is a Vista issue. Could be that old cache issue but most programmers painfully work over that.

Bob

Post 5 of 7

Same thing happend here

by hr.bruun - 9/28/07 6:30 AM In reply to: Why Vista fools me on deleted files? by rgriff

I'm experiencing what seems like the same problem.

It started when I was trying to overwrite a file during installation, but apparently files will not be overwritten if they have been modified in the current installation - not even if you uninstall the current installation before installing the new.

Using the file explorer I then tried to overwrite the file with one that was twice the size. In the file explorer the file is now twice the size. The really strange thing is that if I open the file it still contains the original content!

It's all very strange...

/Morten

Post 6 of 7

This may not be the answer but may help

by scott_789 - 9/28/07 7:34 PM In reply to: Why Vista fools me on deleted files? by rgriff

I had a similar problem when trying to overwrite my Opera bookmarks file. I found that they were also kept in the directory: C:\Users\<myusername>\AppData\Local\VirtualStore\Program Files\Opera\profile
... when I overwrote them in there as well as C:\Program Files\Opera\profile they became available in Opera.

I think that "VirtualStore" directory may be a security measure of sorts, like a sandbox perhaps. Maybe someone here knows what it is and can explain it.

Anyway, look in that VirtualStore directory.

Post 7 of 7

It's Windows virtualization

by oldgeeser - 9/28/07 9:22 PM In reply to: Why Vista fools me on deleted files? by rgriff

I had this problem also.

[From Microsoft: In Windows Vista, many legacy applications that were not designed to support standard user accounts can run without modification, using the built-in file/registry virtualization feature. File/registry virtualization gives an application its own "virtualized" view of a resource it is attempting to change using a copy-on-write strategy. For example, when the application attempts to write to a file in the program files directory, Windows Vista gives the application its own private copy of the file in the user's profile so the application will function properly.]

In other words Vista mirrors what you installed to your user account and runs everything from there. You will find the files under your user account. I forget the exact folder structure and don't have Vista handy to look, but under one of the folders you will find folders with names such as roaming and your files will be in a directory under there. That is why when you delete them from the Programs folder windows will find them again. This is only a problem for older applications, as far as I know, or a programmer that isn't fully versed in programming for Vista. When I had the problem my files showed up in the open dialog so I deleted them from there.

Forum legend:
Locked Locked thread
Moderator Moderator
CNET staff CNET staff
Samsung staff Samsung staff
Norton Authorized Support team Norton Authorized Support team
AVG staff AVG staff
Windows Outreach team Windows Outreach team
Dell staff Dell staff
Intel staff Intel staff
Powered by Jive Software