Inno Setup Constant in Code Section

2019-02-21 17:26发布

问题:

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.