Uninstall of multiple $APPDATA directories
I'm assuming this may be a fairly common requirement, but I haven't found any mention of it anywhere...
I have an application that creates directories under the users $APPDATA directory (for multi-user support). This means that if Tom, Dick and Harry have use the application under their own logins, there will be a directory structure like so:
C:\Documents and Settings\Tom\Application Data\Foo
C:\Documents and Settings\Dick\Application Data\Foo
C:\Documents and Settings\Harry\Application Data\Foo
...where Foo is the name of the app.
So what is the cleanest way to remove these directories on uninstall?
Should I just remove "C:\Documents and Settings\*\Application Data\Foo"? Or is that just bad form?
Currently I am writing (one of) the user settings dir to the uninstall section of the registry and reading it back, but really I need to write the all. I could make an APPDIR key that contains them all like:
"C:\Documents and Settings\Tom\Application Data\Foo;C:\Documents and Settings\Dick\Application Data\Foo;C:\Documents and Settings\Harry\Application Data\Foo"
...but am I likely to run into limitations of the length of strings the registry can hold? And is there an easy way to split the string on ; in NSIS?
Thanks in advance for any help,
Michael