I'm working with a visual studio 2008 – You get access to a number of special folders to use if you want to include files within. One I don't see on the list is the user's local application data folder. Is there anyway to put files in that folder from within a VS2008 setup project?
C# – How to put files in the user’s local application data folder in a setup project
cvisual-studio-2008
Related Topic
- VS2008 Setup Project: Shared (By All Users) Application Data Files
- Visual-studio – Visual Studio setup problem – ‘A problem has been encountered while loading the setup components. Canceling setup.’
- C# – How to get the application’s path in a .NET console application
- C# – The breakpoint will not currently be hit. No symbols have been loaded for this document in a Silverlight application
- Visual-studio – Visual Studio – How to change a project’s folder name and solution name without breaking the solution
- C# – ASP.NET 5 MVC: unable to connect to web server ‘IIS Express’
Best Answer
When I was facing similar challenge, I made it so:
Created a class library auxiliary project.
Added the System.Configuration.Install.dll reference.
Added a new class inheriting from System.Configuration.Install.Installer
Wrote an override of the Install method to copy the files
In the Setup project, targeted the above mentioned project output to the Application folder and -
In Custom actions (Install group) picked the auxiliary project output from the Application folder.