Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#4.0
i crated one sample application Winform application. it contains 3 projects and one main project. in that main project i added all 3 projects dll's. now i created setup file. it's working fine. in my second project i created on e folder and i kept some file in it. when only my application running it takes correct path for that path. when i create's a setup file ,the folder path not accessing.
 
in my application coding wise i used to get path for folder is application.startup + Folderpath property. when i created setup file it shows only dll but not exact file.
how to get the path ?
Posted 17-Dec-12 21:40pm
sai sagar1.9K

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

In your app code you can refer this file using the relative path such as \custom folder) and ensure that this file is available in the output folder whenever you build your app.
 
You need to include your file in your setup file along with binaries. In the setup code you need to include the target location of this file (such as installdir\ custom folder). During the installation windows installer will ensure that this file is copied to the required location.
 
Now after the installation as the custom folder is available your code will not throw any error.
 
Hope I am clear.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 278
1 Maciej Los 265
2 Nguyen.H.H.Dang 230
3 Peter Leow 195
4 arvind mepani 187


Advertise | Privacy | Mobile
Web04 | 2.8.140709.1 | Last Updated 18 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid