Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

VS 2010 installer project and ApplicationData folder

Avatar of gbzhhu
gbzhhuFlag for United Kingdom of Great Britain and Northern Ireland asked on
.NET ProgrammingVisual Basic.NET
6 Comments1 Solution1129 ViewsLast Modified:

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

Avatar of Dennis Aries
Dennis AriesFlag of Netherlands imageCEO @ Arkro IT

Our community of experts have been thoroughly vetted for their expertise and industry experience.

This problem has been solved!
Unlock 1 Answer and 6 Comments.
See Answers