Failed to open file after installation of application in C # WPF

0
I am creating a C # installer using visual studio 2017 installer project in this project there is a user manual it is contained in the root of the project, when I run it both in Debug or Release, Any CPU or x86 it works normal, however when I generate the installer of my application and try to run it it does not load this manual file.

I use the following command to retrieve the path

string CaminhoRelatorio = Directory.GetParent(Directory.GetCurrentDirectory()).Parent.FullName + @"\Modelo Manual Usuario.chm";

CaminhoRelatorio = CaminhoRelatorio.Replace("bin\","");

System.Windows.Forms.HelpNavigator HelpN = System.Windows.Forms.HelpNavigator.TopicId;

System.Windows.Forms.Help.ShowHelp(null, CaminhoRelatorio, HelpN, ID);

The result of the walkthrough returns me = C:\Users\pc01\Desktop\Sistema\Modelo Manual Usuario.chm

Why can not it find this path when the installer is generated? what is the best method I can do to solve this problem. making it find the way

    
asked by anonymous 22.11.2017 / 23:07

0 answers