I know that the following solution is not what you are asking for ... But you can reconsider the approach to the problem , if you are sure that you just need to switch the version of the oracle assembly .
If this parameter does not change after deployment, you can change web.config during installation using a simple script (for example, in python): download the file and replace the correct node (do it in any language that you prefer for such administrator tasks).
Regards, Giacomo
source share