R
RichardV
Hello,
How to check the presence of a specific hardware using dependencies ?
- My targets are PC having different configurations. I made as many
components as target types
(components are based on pmq imports) and set them as membership of a
group called : "Available Targets".
- I have an componentized application : myApp, this app needs a PC with
parallel port. This component has a group
dependency on "Available targets".
- When I start a new configuration with TD, I only add one component :
myApp. Then, after a first dependencies
check, I just have to choose my target in the "Resolve Dependency" window
and my image is "ready to go".
What do I have to do to ensure that my target has a parallel port ?
One possibility is to set a conflict between myApp and all targets that have
no parallel port.
Another one is to have 2 dependency groups, one with the supported targets
and one with the target having no parallel,
and then, apply a dependency only to the first group.
But I would like to go further these solutions since this could be the case
for any hardware, disk capacity etc...
I would like to check from a high level, that means I don't want to check
for a particular Vendor_ID etc.. but just
ensure that the PC has the required functionnality whatever the vendor and
drivers (since it's already in the target component).
I thought to add a "flag" for every targets config saying "I have" or "I
haven't" a parallel port. And during build, myApp could
check the presence of this flag for the selected target.
I First tried to set an extended propertie for each target: e.i.
oemHasParallelPort / Boolean / True or False but I don't know
how to check this value during build, do I have to use vbscript ? and how ?
Does someone has a better ideas ?
Thanks,
Richard.
How to check the presence of a specific hardware using dependencies ?
- My targets are PC having different configurations. I made as many
components as target types
(components are based on pmq imports) and set them as membership of a
group called : "Available Targets".
- I have an componentized application : myApp, this app needs a PC with
parallel port. This component has a group
dependency on "Available targets".
- When I start a new configuration with TD, I only add one component :
myApp. Then, after a first dependencies
check, I just have to choose my target in the "Resolve Dependency" window
and my image is "ready to go".
What do I have to do to ensure that my target has a parallel port ?
One possibility is to set a conflict between myApp and all targets that have
no parallel port.
Another one is to have 2 dependency groups, one with the supported targets
and one with the target having no parallel,
and then, apply a dependency only to the first group.
But I would like to go further these solutions since this could be the case
for any hardware, disk capacity etc...
I would like to check from a high level, that means I don't want to check
for a particular Vendor_ID etc.. but just
ensure that the PC has the required functionnality whatever the vendor and
drivers (since it's already in the target component).
I thought to add a "flag" for every targets config saying "I have" or "I
haven't" a parallel port. And during build, myApp could
check the presence of this flag for the selected target.
I First tried to set an extended propertie for each target: e.i.
oemHasParallelPort / Boolean / True or False but I don't know
how to check this value during build, do I have to use vbscript ? and how ?
Does someone has a better ideas ?
Thanks,
Richard.