Ventoy Forums
json autoinstall parent not working - VentoyPlugson bug? - Printable Version

+- Ventoy Forums (https://forums.ventoy.net)
+-- Forum: Ventoy Plugin —— Ventoy 插件 (https://forums.ventoy.net/forumdisplay.php?fid=3)
+--- Forum: Ventoy Plugin Forum (https://forums.ventoy.net/forumdisplay.php?fid=4)
+--- Thread: json autoinstall parent not working - VentoyPlugson bug? (/showthread.php?tid=2119)



json autoinstall parent not working - VentoyPlugson bug? - Steve2926 - 06-26-2022

Parent entry does not seem to work - so I added second image entry and that works.
But just single Parent entry does not seem to prompt user to select XML
Only the second entry seems to work. If I delete the image entry in VentoyPlugson, then I am not prompted to select an XML file.
v1.0.77 Legacy MBR USB disk.

Code:
{
    "auto_install":[
        {
            "parent": "/_ISO/WINDOWS/WIN10/",
            "template":[
                "/_ISO/WINDOWS/WIN10/VENTOY_Auto_WipeDisk1_Win10ProUK_ASK.xml",
                "/_ISO/WINDOWS/WIN10/Ventoy_1.xml"
            ]
        },
        {
            "image": "/_ISO/WINDOWS/WIN10/Windows10_21H1_UK64.iso",
            "template":[
                "/_ISO/WINDOWS/WIN10/VENTOY_1.xml"
            ]
        }
    ]
}

I found problem!
VentoyPlugson allows \ placed at end of the path
If I make path "parent": "/_ISO/WINDOWS/WIN10",
it is OK

Bug in Ventoyplugson?


RE: json autoinstall parent not working - VentoyPlugson bug? - longpanda - 06-26-2022

VentoyPlugson can be improved to auto remove the end \