IA10: features.
Posted: Tue Nov 09, 2010 3:17 pm
I've created a test project and added the following features to it. All features are initially selected:
Define Component: A
Define Component: A\B
Define Component: A\C
Define Component: A\C\D
Define Component: A\C\E
Define Component: F
Define Component: G
Define Component: G\H
Define Component: G\I
I then created this code that responds to the feature selections made and it does nothing more than display a message box if the feature is selected:
[OFFLINE CONTENT]
[DEFINE WEB MEDIA A]
Get Component A Selection State into Variable SELECTED
if Variable SELECTED Equals TRUE
MessageBox: , A
end
[DEFINE WEB MEDIA AB]
Get Component A\B Selection State into Variable SELECTED
if Variable SELECTED Equals TRUE
MessageBox: , A\B
end
[DEFINE WEB MEDIA AC]
Get Component A\C Selection State into Variable SELECTED
if Variable SELECTED Equals TRUE
MessageBox: , A\C
end
[DEFINE WEB MEDIA ACD]
Get Component A\C\D Selection State into Variable SELECTED
if Variable SELECTED Equals TRUE
MessageBox: , A\C\D
end
[DEFINE WEB MEDIA ACE]
Get Component A\C\E Selection State into Variable SELECTED
if Variable SELECTED Equals TRUE
MessageBox: , A\C\E
end
[DEFINE WEB MEDIA F]
Get Component F Selection State into Variable SELECTED
if Variable SELECTED Equals TRUE
MessageBox: , F
end
[DEFINE WEB MEDIA G]
Get Component G Selection State into Variable SELECTED
if Variable SELECTED Equals TRUE
MessageBox: , G
end
[DEFINE WEB MEDIA GH]
Get Component G\H Selection State into Variable SELECTED
if Variable SELECTED Equals TRUE
MessageBox: , G\H
end
[DEFINE WEB MEDIA GI]
Get Component G\I Selection State into Variable SELECTED
if Variable SELECTED Equals TRUE
MessageBox: , G\I
end
If I run the setup and select the Compact installation then all the message boxes are correctly displayed except the first one for feature A. I was expecting A's message box to be displayed as well. Is this correct behaviour? It displays the message boxes for F and G which are at the same node level as A.
Define Component: A
Define Component: A\B
Define Component: A\C
Define Component: A\C\D
Define Component: A\C\E
Define Component: F
Define Component: G
Define Component: G\H
Define Component: G\I
I then created this code that responds to the feature selections made and it does nothing more than display a message box if the feature is selected:
[OFFLINE CONTENT]
[DEFINE WEB MEDIA A]
Get Component A Selection State into Variable SELECTED
if Variable SELECTED Equals TRUE
MessageBox: , A
end
[DEFINE WEB MEDIA AB]
Get Component A\B Selection State into Variable SELECTED
if Variable SELECTED Equals TRUE
MessageBox: , A\B
end
[DEFINE WEB MEDIA AC]
Get Component A\C Selection State into Variable SELECTED
if Variable SELECTED Equals TRUE
MessageBox: , A\C
end
[DEFINE WEB MEDIA ACD]
Get Component A\C\D Selection State into Variable SELECTED
if Variable SELECTED Equals TRUE
MessageBox: , A\C\D
end
[DEFINE WEB MEDIA ACE]
Get Component A\C\E Selection State into Variable SELECTED
if Variable SELECTED Equals TRUE
MessageBox: , A\C\E
end
[DEFINE WEB MEDIA F]
Get Component F Selection State into Variable SELECTED
if Variable SELECTED Equals TRUE
MessageBox: , F
end
[DEFINE WEB MEDIA G]
Get Component G Selection State into Variable SELECTED
if Variable SELECTED Equals TRUE
MessageBox: , G
end
[DEFINE WEB MEDIA GH]
Get Component G\H Selection State into Variable SELECTED
if Variable SELECTED Equals TRUE
MessageBox: , G\H
end
[DEFINE WEB MEDIA GI]
Get Component G\I Selection State into Variable SELECTED
if Variable SELECTED Equals TRUE
MessageBox: , G\I
end
If I run the setup and select the Compact installation then all the message boxes are correctly displayed except the first one for feature A. I was expecting A's message box to be displayed as well. Is this correct behaviour? It displays the message boxes for F and G which are at the same node level as A.