I tested Chenall's version but auto-detection didn't work for me, it always returned "No Windows installation found!", twice.
Manually passing the disk and volume as arguments worked for patching options but booting from the menu wouldn't work either, giving the error "The selected disk does not exist". Not sure why auto-detection does not work.
EDIT: I think I'm starting to understand why it wasn't working, I must manually tell the script what is the max number of disks/partitions? This makes little sense to me, why isn't it determined programmatically? Or am I not understanding it correctly? What about this comment:
:: only checking the directory prefix with 'win'
If that really is the case, then why bother?
Edited by ner0, 04 December 2016 - 02:48 PM.