Application GUID - possibility to change

Is it possible to change Application GUID programaticaly?
I need that Application GUID will be “Application GUID” + “exe filename without extension”

For example

It would be great if [1] could use variables

if filename was index.exe then Application ID should be

if filename was great-app.exe then Application ID should be


No, the GUID is a built-in constant, you cannot modify it at runtime.