Page 1 of 1

Include Script w/path

Posted: Wed Jan 13, 2016 4:58 pm
by dgiles123
Is there anyway to dynamically include a script at compile time.

We have multiple scripts for different install kits that need to be included

ie. Include Script "c://script//#company#//#project#//appsettings.mia"

something like that.

Re: Include Script w/path

Posted: Thu Jan 14, 2016 11:49 am
by FrancescoT
Dear dgiles123,

you may use the following approach;

Code: Select all

[compiler if Variable MYCOMPILER_VAR Equals SOMETHING]
Include Script: myscript.mia
[compiler end]

Anyway, with the "Include Script" statement you can only select a script which has been previously added to your project ("Include Script" node within the left tree pane of the MSICode view). Due of this, you cannot enter any path in the Include Script command.

Regards