Is there a way to get InnoSetup constant value in [Code] section? I need this during install time and the constant value that I am trying to get is {app}.
You can use AppValue := ExpandConstant('{app}');
来源:https://stackoverflow.com/questions/6931945/inno-setup-constant-in-code-section