so there was simple installation:
script "Install_ModuleA"
Code: Select all
Install Files #SOURCEDIR_INPUT#\\Data\\Dir_A\\*.* to $MYDATA_INSTALLDIR$
inside - nothing special...
then I copypasted this line to another script file
script "Instal_ModuleB"
Code: Select all
Install Files #SOURCEDIR_INPUT#\\Data\\Dir_A\\*.* to $MYDATA_INSTALLDIR$
then I changed parameters to something like
Code: Select all
Install Files #SOURCEDIR_INPUT#\\Data\\Dir_B\\*.* to $MYDATA_INSTALLDIR$
and added new script to the main .mia file.
Main .mia:
Code: Select all
if MY_GREATE_COMPONENT_SELECTED Equals TRUE
Include Script Install_ModuleA
Include Script Install_ModuleB (new line)
end
pretty simple, right.
Now the fun started.
When I call BUILD from the IDE what is happening is that files from DIR_A (from the A-MODULE script) is copied,
then files from the DIR_A (!!!!! from the B-MODULE script) copied once more.
I tried to put something in the middle, some C-MODULE with DIR_C to copy and it resulted in the following pattern: DIR_A, DIR_C, DIR_A once more.
Then I tried to close the project and cleanup all the temporary files - no help.
However, miabuild worked just fine - copied what it has to copy.
Later I tried to put "Install Files" commands to the main .mia script - and it worked just fine. But I need it working inside the scripts.
____________________________________________
The problem was solved by deleting copypasted line from the B-MODULE.
Code: Select all
Install Files #SOURCEDIR_INPUT#\\Data\\Dir_B\\*.* to $MYOTHERDATA_INSTALLDIR$
and creating it from the scratch. (no copypasting)
Bug was "fixxed". But it still bug, I think.
Good day.