Skip to content
⌘ NSIS Forum Archive

Application Data Folder

2 posts

Daniel McGravey#

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?
Afrow UK#
There's $APPDATA and $LOCALAPPDATA constants you can try out. Make sure that SetShellVarContext is not set to all but current.

Stu