I embedded some .txt files in the Resources folder. When I run the project, according to selection, the .txt file name is determined.
For example;
The file name is sample017.txt and I keep on textName string variable. This file's full path is :
"../../Resources\" + textName;
And I assign all of this to fileName string variable:
fileName = "../../Resources\\" + textName;So, I use this string variable for streaming text file:
using (Stream input = File.OpenRead(fileName))In this form, I can access to sample017.txt file and it works fine in Debugging mode.. But, when I build a setup project and install it any PC, It crashes into an Exception and it can't find the "Resources" folder. How do I manage the same using the Resources in the .exe file folder?
Note: I don't want to copy files to program folder. I want to embed these sources.

Iftikar HussainRank #423 · 5.9K reputationPosted Jul 23, 2013, 2:38 AM EDT
You need to assign this folder while creating the SetUp file. Please refer the below link
http://www.codeproject.com/Articles/568476/Creating-an-MSI-Package-for-Csharp-Windows-Applica
Regards,
Iftikar
Salih Teamsah6 reputationPosted Jul 23, 2013, 3:16 AM EDT
I already created Setup Project. However, I don't want to use folder to keep files. I want to embed the files in Resources folder, and I want to access these files from program folder without any Resources folder. So, I don't want to copy files to program folder. I want to embed these sources.