How to set version number from Inno Setup Pascal Script -


i have script reads version number application file. need find way place number in appversion directive of inno setup.

how can place return value of function in appversion directive?

use scripted constant:

[setup] appversion={code:getappversion} 
[code]  function getappversion(param: string): string; begin   result := myfunction; end; 

if function call costly, should cache value global variable , use cached value in scripted constant.


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -