preprocessor - How to set ISPP defines based on default Inno Setup variables? -


i trying to:

#define commonappdata {commonappdata} 

but yields:

compiler error

[ispp] expression expected opening brace ("{") found.

how achieve inno setup preprocessor?

{commonappdata} cannot expanded @ compile time, i.e. when pre-processor runs because known @ runtime: identifies common application data directory on machine compiled installer run.

maybe if clarify how intend use define might able help. if example you're interested in not common app data directory on target machine 1 on developer machine, can use this:

#define commonappdata getenv("commonappdata") 

if intend use define populating inno properties capable of expanding constant @ runtime should use this:

#define commonappdata "{commonappdata}" 

hope helps.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -