ventoy / Ventoy

A new bootable USB solution.
https://www.ventoy.net
GNU General Public License v3.0
62.88k stars 4.09k forks source link

Feature Request: add aliases support for auto-installation templates #666

Open Playermet opened 3 years ago

Playermet commented 3 years ago

Something like this would be very helpful:

{
    "menu_alias": [
        {
            "template": "/ventoy/script/windows_unattended1.xml",
            "alias": "Windows Home x86 EN"
        },
        {
            "template": "/ventoy/script/windows_unattended2.xml",
            "alias": "Windows Pro x64 EN"
        }
    ],
   "auto_install": [
        {
            "image": "/ISO/some_windows_image_16_in_1.iso",
            "template": [
                "/ventoy/script/windows_unattended1.xml",
                "/ventoy/script/windows_unattended2.xml"
            ]
        }
    ]
}
ventoy commented 3 years ago

I think you can use as follows:

{   
   "auto_install": [
        {
            "image": "/ISO/some_windows_image_16_in_1.iso",
            "template": [
                "/ventoy/script/Windows Home x86 EN",
                "/ventoy/script/Windows Pro x64 EN"
            ]
        }
    ]
}

The auto install script's file name doesn't matter, .xml suffix is not absolutely necessary and can contains space.