Click here to Skip to main content
15,891,880 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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

1 solution

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.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900