Archive: Application Data Folder


Application Data Folder
When the end-user runs my program, my program creates files in:
C:\Users\"USER NAME"\AppData\Local\MY PROGRAM'S NAME (Windows Vista)
C:\Documents and Settings\"USER NAME"\Application Data\MY PROGRAM'S NAME (Windows XP)

The question is: What's the code that I put in my NSIS installer (*.nsi) to remove this folder in Application Data regardless of whether the end-user is on XP or Vista when the uninstaller is run?


There's $APPDATA and $LOCALAPPDATA constants you can try out. Make sure that SetShellVarContext is not set to all but current.

Stu