I have VS 2010 installer project. In the File System view I added a SpecialFolder - User's Application Data folder (ApplicationData) then I create a folder (FolderA) underneath it then I add a file into that folder. The file has that squidgy line like when you have spelling error in MS Office Word. The project builds and installs OK.
Now when I install the app FolderA is in C:\Users\<username>\AppData\Roaming and the file is in there. I have this code accessing FolderA
private static readonly string AppDataPath = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) + @"\FolderA\";
This however returns C:\Users\<username>\AppData\Local\FolderA
What is this confusion of Local and Roaming????
This always worked for me (on XP, Vista) but I never created installers in VS 2010 - I used Installshield before. I am on Windows 7 now. Not sure if the problem is the OS version though