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 489
1 ChintanShukla 295
2 Gihan Liyanage 250
3 Richard Deeming 250
4 RyanDev 250
0 Sergey Alexandrovich Kryukov 8,906
1 OriginalGriff 7,601
2 CPallini 2,603
3 Richard MacCutchan 2,121
4 Abhinav S 1,923


Advertise | Privacy | Mobile
Web04 | 2.8.140827.1 | Last Updated 18 Dec 2012
Copyright © CodeProject, 1999-2014
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