Page 1 of 1
[SOLVED] Total Required Space & Feature Independent Files
Posted: Sat Feb 02, 2013 12:49 pm
by phoffman
How do you get total required space to reflect the space consumed by feature-independent files? I tried using Get Component Space without an argument, but it displays 0 as well when I select the Compact setup type.
Re: Total Required Space & Feature Independent Files
Posted: Mon Feb 04, 2013 6:15 am
by FrancescoT
Dear User,
please have a look at the attached project that demostrates "Get Component Space" command.
The sample includes as well the builded setup package ready to run.
Regards
Re: Total Required Space & Feature Independent Files
Posted: Mon Feb 04, 2013 8:22 am
by phoffman
Well it wasn't my use of Get Component Space that was the problem. It was my use of Get Component State. I did something like this...
Code: Select all
Get Component Documentation Selection State into Variable SELECTED
if Variable SELECTED Equals TRUE
Install Files C:\PRODUCT\disc 1\common\docs\*.* to $ALLAPPDATA$$COMMONDIR$\docs, include subfolders
end
Comment: Install/Re-Install Product
Install Files C:\PRODUCT\disc 1\target\bin\*.* to $TARGETDIR$\bin, include subfolders
When I looked back at the Files page in the Designer I saw that my files were associated with the Documentation feature. Is there anyway to avoid this other than ordering the setup to install the feature-independent items first?
Re: Total Required Space & Feature Independent Files
Posted: Mon Feb 04, 2013 11:24 am
by FrancescoT
Dear User,
If I haven't missed your question ...
From InstallAware Design View you can remove those files from a feature and then you can add them again under the correct feature.
Alternatively, you can move the Install Files commands to place them under the correct feature (within the appropriate IF statement).
Regards