Page 1 of 1

Variables in source file path

Posted: Tue Jun 21, 2011 6:38 am
by NickDay
Having found very useful the ability to use MSICode variables within shortcut paths, introduced in IA10, I hoped that IA11 might allow variables to be used in the 'Source Files' parameter of 'Install Files'.
It doesn't, so may I please request this for InstallAware 12 please? Not vital, but it would simplify the task of updating my installer for new source software versions.

Re: Variables in source file path

Posted: Tue Jun 21, 2011 8:01 am
by giaviv
Thanks Nick.

Note though that this is possible using the Native Engine.

Re: Variables in source file path

Posted: Tue Jun 21, 2011 8:01 am
by giaviv
Thanks Nick.

Note though that this is possible using the Native Engine.

Re: Variables in source file path

Posted: Tue Jun 21, 2011 10:41 am
by NickDay
Thanks Aviv,

I am using the Native Engine.

The 'Install Files' dialog says:
'Source Files: (wildcards are allowed, MSIcode variables are not allowed)'

Is this dialog text just out of date? If I remember correctly, I tried using a variable anyway, and it failed somehow; I did not persevere in looking into it, given the dialog text above.

Re: Variables in source file path

Posted: Tue Jun 21, 2011 4:40 pm
by giaviv
Hi,

I must have confused it with another command. You are right, that is not possible even with the Native Engine. My apologies.

Re: Variables in source file path

Posted: Tue Jun 21, 2011 5:09 pm
by NickDay
Thanks Aviv, maybe it will be in IA12 or later I hope. But no big problem.

Re: Variables in source file path

Posted: Tue Jun 21, 2011 6:24 pm
by giaviv
:)

Re: Variables in source file path

Posted: Fri Sep 20, 2019 7:23 am
by lgora
Hi,

Is it possible to have this variables supported in the future version of the Install Aware?
Currently this is inconsistent even in "Install Files" window. Note that "Target Folder" field has no problems with such variables. This unnecessary complicates our installation scripts.

Re: Variables in source file path

Posted: Fri Jan 24, 2020 2:17 pm
by FrancescoT
The source files specified with "Install Files" command must be resolved at COMPILE-TIME. Consequently runtime script variables cannot be allowed in the "Source Files" field. However, compiler variables and environment variables are supported as part of the string literal defined with this field.