Ventoy Forums
"auto_install" - Printable Version

+- Ventoy Forums (https://forums.ventoy.net)
+-- Forum: Ventoy General Use (https://forums.ventoy.net/forumdisplay.php?fid=1)
+--- Forum: Ventoy Discussion Forum (https://forums.ventoy.net/forumdisplay.php?fid=2)
+--- Thread: "auto_install" (/showthread.php?tid=1715)

Pages: 1 2


"auto_install" - hyun9358 - 06-12-2021

{
    "auto_install": [
            {
            "image": "/sources/Windows_Install/Windows10 Pro x64 20H2(19042.782) GSCD 2in1.iso",
            "template": "/ventoy/script/Windows10_unattended-Mow-in.xml"
            },
            {
            "image": "/sources/Windows_Install/Windows10 Pro x64 20H2(19042.804) Lite Util.iso",
            "template": [
                    "/ventoy/script/Windows10_unattended1.xml",
                    "/ventoy/script/Windows10_unattended2.xml",
                    "/ventoy/script/Windows10_unattended3.xml",
                    "/ventoy/script/Windows10_unattended4.xml"
                    ],

            "autosel": 2
            },




"auto_install"
It doesn't seem to work.

I've reported a sample, but it doesn't work.

How do I get it to work?



RE: "auto_install" - longpanda - 06-12-2021

Did it show a menu to prompt you to select to boot with or without auto install template?


RE: "auto_install" - longpanda - 06-12-2021

It's better to make a video about the boot process.


RE: "auto_install" - hyun9358 - 06-12-2021

A list of "templates" should be output.

There is no output.

It is written the same as the sample on the website.

Is it something to do with whitespace in the iso file?


RE: "auto_install" - longpanda - 06-12-2021

Please give your full ventoy.json


RE: "auto_install" - hyun9358 - 06-12-2021

(06-12-2021, 02:09 PM)longpanda Wrote: Please give your full ventoy.json
{
    "control": [
          { "VTOY_DEFAULT_MENU_MODE": "1" },
          { "VTOY_TREE_VIEW_MENU_STYLE": "0" },
          { "VTOY_FILT_DOT_UNDERSCORE_FILE": "1" },
          { "VTOY_SORT_CASE_SENSITIVE": "0" },
          { "VTOY_MAX_SEARCH_LEVEL": "max" },
          { "VTOY_FILE_FLT_ISO": "0" },
          { "VTOY_FILE_FLT_WIM": "0" },
          { "VTOY_FILE_FLT_EFI": "0" },
          { "VTOY_FILE_FLT_IMG": "0" },
          { "VTOY_FILE_FLT_VHD": "0" },
          { "VTOY_FILE_FLT_VTOY": "0" },
          { "VTOY_DEFAULT_KBD_LAYOUT": "QWERTY_USA" },
          { "VTOY_DEFAULT_SEARCH_ROOT": "/sources" },
          { "VTOY_MENU_TIMEOUT": "10" },
          { "VTOY_DEFAULT_IMAGE": "F6> Windows10 Bootting Menu" }
              ],
                 
    "theme": {
          "gfxmode": "1024x768",
          "display_mode": "GUI",
          "serial_param": "--unit=0 --speed=9600",
          "ventoy_left": "80%",
          "ventoy_top": "2%-7",
          "ventoy_color": "#FF8A19",

    "file": [
          "/ventoy/themes/Dokdo1/theme.txt",
          "/ventoy/themes/Dokdo2/theme.txt",
          "/ventoy/themes/Public_only/theme.txt"
          ]
          },
       
    "fonts": [
          "/ventoy/fonts/ascii.pf2",
          "/ventoy/fonts/BitstreamVeraSansMono10.pf2",
          "/ventoy/fonts/DejaVuSans-48.pf2",
          "/ventoy/fonts/DejaVuSans-Regular-14.pf2",
          "/ventoy/fonts/gulim16.pf2",
          "/ventoy/fonts/MintOSunicode.pf2",
          "/ventoy/fonts/NanumGothic_Regular14.pf2",
          "/ventoy/fonts/RemixOSunicode.pf2",
          "/ventoy/fonts/terminus-12.pf2",
          "/ventoy/fonts/terminus-14.pf2",
          "/ventoy/fonts/terminus-16.pf2",
          "/ventoy/fonts/unicode.pf2",
          "/ventoy/fonts/unifont16b.pf2"
          ]
}

{
    "menu_class" : [
            {
            "key": "Win",
            "class": "Win10iso"
            },
            {
            "key": "Windows",
            "class": "Win10iso"
            },
            {
            "key": "install",
            "class": "Win10iso"
            },
            {
            "key": "setup",
            "class": "Win10iso"
            },
            {
            "key": "user",
            "class": "kubuntu"
            },
            {
            "key": "boot",
            "class": "pe"
            },
            {
            "key": "pe",
            "class": "pe"
            },
            {
            "key": "vhd",
            "class": "kubuntu"
            },
            {
            "key": "iso",
            "class": "iso"
            },
            {
            "key": "wim",
            "class": "kubuntu"
            },
            {
            "key": "openSUSE-Leap-15.2-NET-x86_64",
            "class": "kubuntu"
            }
            ],
}

{
    "auto_install": [
            {
            "image": "/sources/Windows_Install/Windows10 Pro x64 20H2(19042.782) GSCD 2in1.iso",
            "template": "/ventoy/script/Windows10_unattended-Mow-in.xml"
            },
            {
            "image": "/sources/Windows_Install/Windows10 Pro x64 20H2(19042.804) Lite Util.iso",
            "template": [
                    "/ventoy/script/Windows10_unattended1.xml",
                    "/ventoy/script/Windows10_unattended2.xml",
                    "/ventoy/script/Windows10_unattended3.xml",
                    "/ventoy/script/Windows10_unattended4.xml"
                    ],
            "autosel": 2
            },
            {
            "image": "/sources/Windows_Install/SLE-12-SP3-Server-DVD-x86_64-GM-DVD1.iso",
            "template": "/ventoy/script/suse_autoyast.xml"
            },
            {
            "parent": "/sources/Windows_Install",
            "template": "/ventoy/script/Windows10_unattended4.xml"
            },
            {
            "image": "/sources/Windows_Install/SLE-12-SP3-Server-DVD-x86_64-GM-DVD1.iso",
            "template": "/ventoy/script/suse_autoyast.xml",
            "autosel": 1
            }
            ]
}

{
    "image_list": [
              "/Install_PE/Install/Windows10 Pro x64 21H1(19043.964) Util.iso",
              "/Install_PE/Install/Windows10 Pro x64 20H2(19042.964) Util.iso",
              "/Install_PE/WimPE/356MB.wim",
              "/Install_PE/WimPE/Prince_PE.wim",
              "/Install_PE/WimPE/Prince_PE_11th.wim"
              ]
}

{
    "auto_memdisk": [
                "/sources/WinPE/Prince_PE_11th.wim",
                "/sources/WinPE/Windows10 Lite PE Boot.wim",
                "/sources/WinPE/210610_DPI.iso",
                "/sources/WinPE/Win10PEL.ISO",
                "/sources/WinPE/Win10_BackRecPEx64_2106.iso",
                "/sources/WinPE/MTUI_PE(21H1-19043.1052).iso"
                ]
}

{
    "menu_alias": [
              {
              "image": "/sources/Windows_Install/Windows10 Pro x64 20H2(19042.844) Lite Util.iso",
              "alias": "Windows10 Pro x64 20H2(19042.844) Lite Util"
              },
              {
              "image": "/sources/Windows_Install/Windows10 Pro x64 20H2(19042.804) Lite 2in1.iso",
              "alias": "Windows10 Pro x64 20H2(19042.804) Lite 2in1"
              },       
              {
              "dir": "/sources/Windows_Install",
              "alias": "[My Windows Directory]"
              }
              ]
}


RE: "auto_install" - longpanda - 06-12-2021

This is not a valid ventoy.json. Too many sytax errors.
It should show a message that "Sytax error detected in ventoy.json" when you boot.
I have noticed here: https://www.ventoy.net/en/plugin_entry.html
that you should use some tool to check the json sytax before you use it.


RE: "auto_install" - longpanda - 06-12-2021

Code:
{
    "control":[
        {
            "VTOY_DEFAULT_MENU_MODE":"1"
        },
        {
            "VTOY_TREE_VIEW_MENU_STYLE":"0"
        },
        {
            "VTOY_FILT_DOT_UNDERSCORE_FILE":"1"
        },
        {
            "VTOY_SORT_CASE_SENSITIVE":"0"
        },
        {
            "VTOY_MAX_SEARCH_LEVEL":"max"
        },
        {
            "VTOY_FILE_FLT_ISO":"0"
        },
        {
            "VTOY_FILE_FLT_WIM":"0"
        },
        {
            "VTOY_FILE_FLT_EFI":"0"
        },
        {
            "VTOY_FILE_FLT_IMG":"0"
        },
        {
            "VTOY_FILE_FLT_VHD":"0"
        },
        {
            "VTOY_FILE_FLT_VTOY":"0"
        },
        {
            "VTOY_DEFAULT_KBD_LAYOUT":"QWERTY_USA"
        },
        {
            "VTOY_DEFAULT_SEARCH_ROOT":"/sources"
        },
        {
            "VTOY_MENU_TIMEOUT":"10"
        },
        {
            "VTOY_DEFAULT_IMAGE":"F6> Windows10 Bootting Menu"
        }
    ],
    "theme":{
        "gfxmode":"1024x768",
        "display_mode":"GUI",
        "serial_param":"--unit=0 --speed=9600",
        "ventoy_left":"80%",
        "ventoy_top":"2%-7",
        "ventoy_color":"#FF8A19",
        "file":[
            "/ventoy/themes/Dokdo1/theme.txt",
            "/ventoy/themes/Dokdo2/theme.txt",
            "/ventoy/themes/Public_only/theme.txt"
        ],
        "fonts":[
            "/ventoy/fonts/ascii.pf2",
            "/ventoy/fonts/BitstreamVeraSansMono10.pf2",
            "/ventoy/fonts/DejaVuSans-48.pf2",
            "/ventoy/fonts/DejaVuSans-Regular-14.pf2",
            "/ventoy/fonts/gulim16.pf2",
            "/ventoy/fonts/MintOSunicode.pf2",
            "/ventoy/fonts/NanumGothic_Regular14.pf2",
            "/ventoy/fonts/RemixOSunicode.pf2",
            "/ventoy/fonts/terminus-12.pf2",
            "/ventoy/fonts/terminus-14.pf2",
            "/ventoy/fonts/terminus-16.pf2",
            "/ventoy/fonts/unicode.pf2",
            "/ventoy/fonts/unifont16b.pf2"
        ]
    },
    "menu_class":[
        {
            "key":"Win",
            "class":"Win10iso"
        },
        {
            "key":"Windows",
            "class":"Win10iso"
        },
        {
            "key":"install",
            "class":"Win10iso"
        },
        {
            "key":"setup",
            "class":"Win10iso"
        },
        {
            "key":"user",
            "class":"kubuntu"
        },
        {
            "key":"boot",
            "class":"pe"
        },
        {
            "key":"pe",
            "class":"pe"
        },
        {
            "key":"vhd",
            "class":"kubuntu"
        },
        {
            "key":"iso",
            "class":"iso"
        },
        {
            "key":"wim",
            "class":"kubuntu"
        },
        {
            "key":"openSUSE-Leap-15.2-NET-x86_64",
            "class":"kubuntu"
        }
    ],
    "auto_install":[
        {
            "image":"/sources/Windows_Install/Windows10 Pro x64 20H2(19042.782) GSCD 2in1.iso",
            "template":"/ventoy/script/Windows10_unattended-Mow-in.xml"
        },
        {
            "image":"/sources/Windows_Install/Windows10 Pro x64 20H2(19042.804) Lite Util.iso",
            "template":[
                "/ventoy/script/Windows10_unattended1.xml",
                "/ventoy/script/Windows10_unattended2.xml",
                "/ventoy/script/Windows10_unattended3.xml",
                "/ventoy/script/Windows10_unattended4.xml"
            ],
            "autosel":2
        },
        {
            "image":"/sources/Windows_Install/SLE-12-SP3-Server-DVD-x86_64-GM-DVD1.iso",
            "template":"/ventoy/script/suse_autoyast.xml"
        },
        {
            "parent":"/sources/Windows_Install",
            "template":"/ventoy/script/Windows10_unattended4.xml"
        },
        {
            "image":"/sources/Windows_Install/SLE-12-SP3-Server-DVD-x86_64-GM-DVD1.iso",
            "template":"/ventoy/script/suse_autoyast.xml",
            "autosel":1
        }
    ],
    "image_list":[
        "/Install_PE/Install/Windows10 Pro x64 21H1(19043.964) Util.iso",
        "/Install_PE/Install/Windows10 Pro x64 20H2(19042.964) Util.iso",
        "/Install_PE/WimPE/356MB.wim",
        "/Install_PE/WimPE/Prince_PE.wim",
        "/Install_PE/WimPE/Prince_PE_11th.wim"
    ],
    "auto_memdisk":[
        "/sources/WinPE/Prince_PE_11th.wim",
        "/sources/WinPE/Windows10 Lite PE Boot.wim",
        "/sources/WinPE/210610_DPI.iso",
        "/sources/WinPE/Win10PEL.ISO",
        "/sources/WinPE/Win10_BackRecPEx64_2106.iso",
        "/sources/WinPE/MTUI_PE(21H1-19043.1052).iso"
    ],
    "menu_alias":[
        {
            "image":"/sources/Windows_Install/Windows10 Pro x64 20H2(19042.844) Lite Util.iso",
            "alias":"Windows10 Pro x64 20H2(19042.844) Lite Util"
        },
        {
            "image":"/sources/Windows_Install/Windows10 Pro x64 20H2(19042.804) Lite 2in1.iso",
            "alias":"Windows10 Pro x64 20H2(19042.804) Lite 2in1"
        },
        {
            "dir":"/sources/Windows_Install",
            "alias":"[My Windows Directory]"
        }
    ]
}



RE: "auto_install" - hyun9358 - 06-12-2021

{
            "VTOY_DEFAULT_SEARCH_ROOT":"/sources"
        },

I have the option, but I can't find the ISO image file.


RE: "auto_install" - hyun9358 - 06-13-2021

{
    "control": [
          { "VTOY_DEFAULT_MENU_MODE": "1" },
          { "VTOY_TREE_VIEW_MENU_STYLE": "0" },
          { "VTOY_FILT_DOT_UNDERSCORE_FILE": "1" },
          { "VTOY_SORT_CASE_SENSITIVE": "0" },
          { "VTOY_MAX_SEARCH_LEVEL": "max" },
          { "VTOY_FILE_FLT_ISO": "0" },
          { "VTOY_FILE_FLT_WIM": "0" },
          { "VTOY_FILE_FLT_EFI": "0" },
          { "VTOY_FILE_FLT_IMG": "0" },
          { "VTOY_FILE_FLT_VHD": "0" },
          { "VTOY_FILE_FLT_VTOY": "0" },
          { "VTOY_DEFAULT_KBD_LAYOUT": "QWERTY_USA" },
          { "VTOY_DEFAULT_SEARCH_ROOT": "/sources" },
          { "VTOY_MENU_TIMEOUT": "10" },
          { "VTOY_DEFAULT_IMAGE": "F6> Windows10 Bootting Menu" }
            ],

    "theme": {
          "gfxmode":"1024x768",
          "display_mode":"GUI",
          "serial_param":"--unit=0 --speed=9600",
          "ventoy_left":"80%",
          "ventoy_top":"2%-7",
          "ventoy_color":"#FF8A19",
          "file": [
                "/ventoy/themes/Dokdo1/theme.txt",
                "/ventoy/themes/Dokdo2/theme.txt",
                "/ventoy/themes/Public_only/theme.txt"
                  ],

          "fonts": [
                "/ventoy/fonts/ascii.pf2",
                "/ventoy/fonts/BitstreamVeraSansMono10.pf2",
                "/ventoy/fonts/DejaVuSans-48.pf2",
                "/ventoy/fonts/DejaVuSans-Regular-14.pf2",
                "/ventoy/fonts/gulim16.pf2",
                "/ventoy/fonts/MintOSunicode.pf2",
                "/ventoy/fonts/NanumGothic_Regular14.pf2",
                "/ventoy/fonts/RemixOSunicode.pf2",
                "/ventoy/fonts/terminus-12.pf2",
                "/ventoy/fonts/terminus-14.pf2",
                "/ventoy/fonts/terminus-16.pf2",
                "/ventoy/fonts/unicode.pf2",
                "/ventoy/fonts/unifont16b.pf2"
                    ]
                    },

    "menu_class" : [
                    {
            "key": "Win",
          "class": "Win10iso"
                    },
                    {
            "key": "Windows",
          "class": "Win10iso"
                    },
                    {
            "key": "install",
          "class": "Win10iso"
                    },
                    {
            "key": "setup",
          "class": "Win10iso"
                    },
                    {
            "key": "user",
          "class": "kubuntu"
                    },
                    {
            "key": "boot",
          "class": "pe"
                    },
                    {
            "key": "pe",
          "class": "pe"
                    },
                    {
            "key": "vhd",
          "class": "kubuntu"
                    },
                    {
            "key": "iso",
          "class": "iso"
                    },
                    {
            "key": "wim",
          "class": "kubuntu"
                    },
                    {
            "key": "openSUSE-Leap-15.2-NET-x86_64",
          "class": "kubuntu"
                    }
                    ],

    "auto_install": [
                    {
            "image": "/sources/Windows_Install/Windows10 Pro x64 20H2(19042.782) GSCD 2in1.iso",
        "template": "/ventoy/script/Windows10_unattended-Mow-in.xml"
                    },
                    {
            "image": "/sources/Windows_Install/Windows10 Pro x64 20H2(19042.804) Lite Util.iso",
        "template": [
                    "/ventoy/script/Windows10_unattended1.xml",
                    "/ventoy/script/Windows10_unattended2.xml",
                    "/ventoy/script/Windows10_unattended3.xml",
                    "/ventoy/script/Windows10_unattended4.xml"
                    ]
                    },
                    {
            "image": "/sources/Windows_Install/SLE-12-SP3-Server-DVD-x86_64-GM-DVD1.iso",
        "template": "/ventoy/script/suse_autoyast.xml"
                    },
                    {
          "parent": "/sources/Windows_Install",
        "template": "/ventoy/script/Windows10_unattended4.xml"
                    },
                    {
            "image": "/sources/Windows_Install/SLE-12-SP3-Server-DVD-x86_64-GM-DVD1.iso",
        "template": "/ventoy/script/suse_autoyast.xml"
        }
    ]
}

===========================================================
If you write like this
It works fine.
Unattended installation files are also loaded.

===========================================================
I ran the test overnight.

It was difficult for beginners and I didn't get good results.

i got this result

But after "auto_install" I can't add another menu.

All added menus failed to load error or ISO image file.