As KompoZer seems to be the goto example for the latest in PAF and such I went there when I wanted to see an example of how to handle an app that writes to the APPDATA environment variable path. But I am confused.
line 115 Var APPDATAPATH line 123 ReadEnvStr $APPDATAPATH "APPDATA"
so the APPDATA environment variable is being read into the $APPDATAPATH nsis variable. however $APPDATAPATH doesn't get referenced ever again.
line 461 Delete "$APPDATA\KompoZer\pluginreg.dat" line 462 RMDir "$APPDATA\KompoZer\" ;=== Will only delete if empty (no /r switch)
maybe APPDATAPATH is supoosed to be here in place of $APPPATH?
(the code described here also shows up this way in ThunderbirdPortable and FirefoxPortable)
At any rate the method of handling APPDATA seems to allow the blind overwriting of anything in the APPDATA path and just deleting it when done. Is it assumed that everything in that directory is regenerated every application start and as such is ok to overwrite as opposed to backup/replace?
Thank you for helping me understand.