I come from reading a lot of old topics from year 2012-2014 on this forum from people that were asking the same thing regarding the error when trying to run a portable app from Program Files folder.
For this reason, I don't need someone to suggest me to create a "C:\PortableApps" folder or to suggest me to use normal installers instead of portable ones or to teach me about why for some (unknown, not tested at all) portable apps it is a bad idea to run them from C:\Program Files, because I already have read everything about all the warnings and issues on those old topics by answers from the developers explaining everything.
I'm only in search of an answer to the next question (which I didn't managed to figure out after my previous research reading old topics):
Is there a way to bypass the "C:\Program Files" \ C:\Program Files (x86)" restriction that does not imply to modify and recompile the source-code?. Lets say for example maybe a "hidden" field that I could set in the INI ffile of the launcher?... or something else that easy?...
In some of those old topics an user ('Aluísio A. S. G.') said there is one undocumented way to do so... but he will not give any info. What the hell?, I don't understand all this mistery and occultism just to share a solution documented or not for an user that really wants to run the portable app from 'C:\Porgram Files' even after being aware of the possible issues that it can cause, it is our decision regardless of the restriction put by-design.
Anyways. I downloaded the source-code for the PortableApps.com launcher on sourceforge and with a tool (File Locator) I searched for the env. var / string "PROGRAMFILES" inside every file of the source-code, but I didn't found anything.
It is possible to bypass the restriction without recompiling the source-code, or it is not?. If does not exist an INI field to bypass this, then another suitable way for me would be that in case of maybe exists a data in a fixed address (the same address) in every launcher generated within the same build, then I could patch all the launcher executables I want with IDA or by using an hexadecimal editor (but I'm not expert on reverse engineering so I need help to locate which instruction is disallowing the application run from C:\Program Files). Any ideas?...
That's all. Thanks in advance.