Search code examples
installationnsisappdata

What is the environment variable for AppData in NSIS installer script?


I am looking for the environment variable for AppData in NSIS. I need to copy fils to the AppData directory in my installation.


Solution

  • It can't be easier than this $APPDATA, you can do something like this:

    SetShellVarContext all
    !define INSTDIR_DATA "$APPDATA\MyApp" ; call "SetShellVarContext all" before!