This is a case of forward/backwards compatibility. It's typically not possible to account for forward compatibility but as a general rule we provide backwards compatibility when possible. In this scenario, since AF 2017 R2 is newer than Data Archive 2012, you should first install Data Archive 2012 first, then install AF 2017 R2 and the backwards compatibility built into the upgrade process would take care of the PI Network Subsystem dependency.