Click here to Skip to main content
13,446,918 members (40,966 online)
Rate this:
Please Sign up or sign in to 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 17-Dec-12 21:40pm

1 solution

Rate this: bad
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.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03-2016 | 2.8.180318.2 | Last Updated 18 Dec 2012
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100