For the installation of a C# desktop 2010 application, I am using the traditional setup and deployment template.
As part of this template, I want to make certain that a folder is created in a directory path that looks like
C:\log_files.
Thus can you tell me how to have the setup and deployment project create the directory path for me, if the directory path does not exist?
C# add directory path to deployment
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Hemant SrivastavaRank #581 · 4.2K reputationPosted Jul 3, 2013, 7:58 AM EDT
(Unless you don't choose any such location which is protected by windows)
Hemant SrivastavaRank #581 · 4.2K reputationPosted Jul 3, 2013, 6:35 AM EDT
Right Click on Setup projetc -> View -> File System
Then Click Application Folder, open property tab
Firstly, Set 'AlwaysCreate' property to TRUE
Then Set 'DeafultLocation' property to your desired location (e.g. C:\Logfiles\)
Hope it should work.
dcRank #2,247 · 627 reputationPosted Jul 3, 2013, 7:11 AM EDT