Here I am going to share how we can set directory path for
our installed package.
Suppose you have a setup project
already included in your main project. (To know how to add setup project in
Visual Studio-2010, you may refer to article at:
http://www.c-sharpcorner.com/Blogs/9817/adding-a-setup-project-in-visual-studio-2010.aspx)
Now you want to set directory
path for your install, so that your app get installed in the desired location. In
order to do this, you need to follow steps as:
- Right
Click on your Setup project -> View
-> File System
- Then
Click Application Folder, open
property tab
- Set 'AlwaysCreate' property to TRUE.
(This property
creates a directory structure for your install, if directory structure doesn't exist.)
- Then
Set 'DeafultLocation' property
to your desired location (e.g. C:\MyWinApps\).
(You may choose
any directory structure of your choice except some folders/Directories which
are protected by Windows Operating System)