Old 31st January 2007, 16:19   #1
reprobate
Junior Member
 
Join Date: Jan 2007
Posts: 5
Deleting changed files in Vista

We're installing some files into \ProgramData that are subsequently changed by the application. The installer runs as admin, hence the files are owned by Administrator.

When we run the uninstaller, the directory entry for these files is not removed. No error the Delete instruction.

Files that were not modified are deleted ok. Files that were not installed but were subsequently created by the app are deleted ok. It's only the data files that are installed, then modified, that are a problem.

Windows Explorer doesn't see the files, or the install directory, for that matter. But my cheap old explorer replacement finds them alright, as does Windows GetFileAttributes. If you try to open the file, you get a NOT FOUND error, so it seems it's just a directory entry problem.

Rebooting, even if you specify Delete /REBOOT, does not do the trick.

Anyone have a clue as to what is going on? Thanks!
reprobate is offline   Reply With Quote
Old 31st January 2007, 19:36   #2
onad
Senior Member
 
onad's Avatar
 
Join Date: Dec 2004
Location: Turkey
Posts: 447
Do not install to ProgramData yourself but use API's of OS to get the folder to use. Because of Vista's virtualization the files will land up in the ProgramData then.

Best is first learn about Vista and Virtualization for backwards compatibility.

"Just do it"
onad is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump