I have a windows application that runs great in Debug/release mode. I compile the setup.exe file using Inno Script Tool and include the xml files in the code. When I run the setup.exe file the exe file is created in the proper directory along with the xml files. So I know the files make it this far.
When I run the exe it does not find the xml files.
Below are some code snippets of how I am reading the xml files
In general declarations
Public path As String
In form load
path = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase)
In the button action
Dim f As String = path & "\ai_tuning_vm1.xml"
If (IO.File.Exists(f)) Then
When I break at the If ... Then statement the path is correct when I point at f string and as I said it works in debug mode
Thanks for the help,