问题
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}.
回答1:
You can use AppValue := ExpandConstant('{app}');
- Documentation on ExpandConstant
- Example of it's usage.
来源:https://stackoverflow.com/questions/6931945/inno-setup-constant-in-code-section