Variables in source file path

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

Variables in source file path

Postby NickDay » Tue Jun 21, 2011 6:38 am

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

Postby giaviv » Tue Jun 21, 2011 8:01 am

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

Postby giaviv » Tue Jun 21, 2011 8:01 am

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

Postby NickDay » Tue Jun 21, 2011 10:41 am

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

Postby giaviv » Tue Jun 21, 2011 4:40 pm

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

Postby NickDay » Tue Jun 21, 2011 5:09 pm

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

Postby giaviv » Tue Jun 21, 2011 6:24 pm

:)
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

Postby lgora » Fri Sep 20, 2019 7:23 am

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: 5360
Joined: Sun Aug 22, 2010 4:28 am

Re: Variables in source file path

Postby FrancescoT » Fri Jan 24, 2020 2:17 pm

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


Return to “Technical Support”

Who is online

Users browsing this forum: Google [Bot] and 57 guests