In my Delphi application, I determine the current directory by SysUtils.GetCurrentDir function. Of course, when the app is run, the current directory is the folder in which the installer put MyApp.exe file. By default, it is C:\Program Files\MyApp
Everything looks different now, after I packed my program in appx, in order to make a UWP application and submit it to Microsoft Store. Now the app goes to the folder C:\Program Files\WindowsApps\MyApp_184.108.40.206_x86__sp51hrchc9zqj. However, the function GetCurrentDir returns a different address which is C:\WINDOWS\system32
What can I do about it? I need the address of the folder where the exe file is!