Inno Setup Constant in Code Section

徘徊边缘 提交于 2020-01-11 08:20:48

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!