Hello.
I decided to make a bootloader for the program, which checks the version, if it is necessary, downloads and closes itself and opens the program itself . I have code in the bootloader
if (version != Launcher.version) { DownloadNewVersion(); } else { Application.Exit(); Process process = new Process(); process.StartInfo.FileName = @"data\NiceSufring.exe"; process.Start(); }
The program must run the program at data\NiceSufring.exe
, and it starts, when the program starts, it reads from the data\system\system.fat
, but the trouble is that if you run the program through the bootloader, the compiler gives an error
Could not find a part of the path
And if you run the program without a bootloader, but just the .exe itself, then there is no such error and everything is working fine, tell me why this could be? I have been fighting for 2 days, I just can’t understand what's the matter.