Variables in source file path

Got a problem you cannot solve? Try here.
Post Reply
NickDay
Posts: 145
Joined: Tue Oct 05, 2010 9:13 am

Variables in source file path

Post 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.
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: Variables in source file path

Post by giaviv »

Thanks Nick.

Note though that this is possible using the Native Engine.
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: Variables in source file path

Post by giaviv »

Thanks Nick.

Note though that this is possible using the Native Engine.
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
NickDay
Posts: 145
Joined: Tue Oct 05, 2010 9:13 am

Re: Variables in source file path

Post 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.
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: Variables in source file path

Post 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.
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
NickDay
Posts: 145
Joined: Tue Oct 05, 2010 9:13 am

Re: Variables in source file path

Post by NickDay »

Thanks Aviv, maybe it will be in IA12 or later I hope. But no big problem.
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: Variables in source file path

Post by giaviv »

:)
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
lgora
Posts: 3
Joined: Wed Sep 11, 2019 8:17 am

Re: Variables in source file path

Post 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.
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Variables in source file path

Post 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.
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Post Reply