Ventoy Forums
[SOLVED] How to correctly add "image_list" to ventoy.json - Printable Version

+- Ventoy Forums (https://forums.ventoy.net)
+-- Forum: Ventoy General Use —— Ventoy 使用交流 (https://forums.ventoy.net/forumdisplay.php?fid=1)
+--- Forum: Ventoy Discussion Forum (https://forums.ventoy.net/forumdisplay.php?fid=2)
+--- Thread: [SOLVED] How to correctly add "image_list" to ventoy.json (/showthread.php?tid=1680)



[SOLVED] How to correctly add "image_list" to ventoy.json - BKPB - 05-22-2021

How to properly add "image_list" to " ventoy.json". I tried this way, but it doesn't work.

{
    "control": [
        { "VTOY_DEFAULT_MENU_MODE": "0" },
        { "VTOY_FILT_DOT_UNDERSCORE_FILE": "1" }       
    ],
   
    "theme": {
        "file": "/ventoy/theme/theme.txt",
        "gfxmode": "1920x1080",       
        "display_mode": "GUI",
        "ventoy_left": "5%",
        "ventoy_top": "95%",
        "ventoy_color": "#191919"
    },
   
   
    "menu_class": [       
        {
            "key": "Windows",
            "class": "Windows"
        },       
        {
            "key": "Memtest",
            "class": "Memtest"
        },
        {
            "key": "Memtest86+",
            "class": "Memtest86+"
        },
        {
            "key": "Sergei Strelec",
            "class": "WinPE"
        },
        {
            "key": "WinPE",
            "class": "WinPE"
        },
        {
            "dir": "ISO",
            "class": "ISO-hat"
        },


    "image_list": [
        "/ISO/Linux/archlinux-2020.10.01-x86_64.iso",
        "/ISO/cn_windows_10_enterprise_ltsc_2019_x64_dvd_9c09ff24.iso",
        "/ISO/Win10PE.iso"

    ]
   
}


RE: How to correctly add "image_list" to ventoy.json - longpanda - 05-22-2021

Syntax error detected in your json.


RE: How to correctly add "image_list" to ventoy.json - longpanda - 05-22-2021

Code:
{
    "control": [
        { "VTOY_DEFAULT_MENU_MODE": "0" },
        { "VTOY_FILT_DOT_UNDERSCORE_FILE": "1" }    
    ],

    "theme": {
        "file": "/ventoy/theme/theme.txt",
        "gfxmode": "1920x1080",    
        "display_mode": "GUI",
        "ventoy_left": "5%",
        "ventoy_top": "95%",
        "ventoy_color": "#191919"
    },


    "menu_class": [    
        {
            "key": "Windows",
            "class": "Windows"
        },    
        {
            "key": "Memtest",
            "class": "Memtest"
        },
        {
            "key": "Memtest86+",
            "class": "Memtest86+"
        },
        {
            "key": "Sergei Strelec",
            "class": "WinPE"
        },
        {
            "key": "WinPE",
            "class": "WinPE"
        },
        {
            "dir": "ISO",
            "class": "ISO-hat"
        }
    ],

    "image_list": [
        "/ISO/Linux/archlinux-2020.10.01-x86_64.iso",
        "/ISO/cn_windows_10_enterprise_ltsc_2019_x64_dvd_9c09ff24.iso",
        "/ISO/Win10PE.iso"
    ]

}


{
    "control": [
        { "VTOY_DEFAULT_MENU_MODE": "0" },
        { "VTOY_FILT_DOT_UNDERSCORE_FILE": "1" }   
    ],

    "theme": {
        "file": "/ventoy/theme/theme.txt",
        "gfxmode": "1920x1080",   
        "display_mode": "GUI",
        "ventoy_left": "5%",
        "ventoy_top": "95%",
        "ventoy_color": "#191919"
    },


    "menu_class": [   
        {
            "key": "Windows",
            "class": "Windows"
        },   
        {
            "key": "Memtest",
            "class": "Memtest"
        },
        {
            "key": "Memtest86+",
            "class": "Memtest86+"
        },
        {
            "key": "Sergei Strelec",
            "class": "WinPE"
        },
        {
            "key": "WinPE",
            "class": "WinPE"
        },
        {
            "dir": "ISO",
            "class": "ISO-hat"
    }
  ],


    "image_list": [
        "/ISO/Linux/archlinux-2020.10.01-x86_64.iso",
        "/ISO/cn_windows_10_enterprise_ltsc_2019_x64_dvd_9c09ff24.iso",
        "/ISO/Win10PE.iso"
    ]

}


RE: How to correctly add "image_list" to ventoy.json - longpanda - 05-22-2021

You can check the json syntax by some online tools, for example:
http://json.parser.online.fr
https://www.json.cn


RE: How to correctly add "image_list" to ventoy.json - BKPB - 05-26-2021

(05-22-2021, 10:31 AM)longpanda Wrote: You can check the json syntax by some online tools, for example:
http://json.parser.online.fr
https://www.json.cn
],

    "image_list": [
        "/ISO/Windows 7 & 10 Pro  x86 x64                      21.03.2021          .iso",
        "/ISO/WinPE Sergei Strelec x86 x64                      05.01.2021          .iso",
        "/ISO/WinPE Super                                                                      .iso",
        "/Мemtest/Memtest86+ 4.3.7                                                        .iso"
    ]

}

Thank you dear longpanda, The list is now displayed. Currently, only files from the ISO folder are displayed. And the files from the Memtest folder are not displayed. Please correct my ventoy.json again.


RE: How to correctly add "image_list" to ventoy.json - hyun9358 - 05-26-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_DEFAULT_SEARCH_ROOT": "/Install_PE" },
{ "VTOY_MENU_TIMEOUT": "10" },
{ "VTOY_DEFAULT_IMAGE": "F6>Ventoy & windows Bootting Menu" }
],

"theme": {
"file": "/ventoy/themes/Public_only/theme.txt",
"gfxmode": "1024x768",
"display_mode": "GUI",
"serial_param": "--unit=0 --speed=9600",
"ventoy_left": "75%",
"ventoy_top": "6%-7",
"ventoy_color": "#65CBFF",
"fonts": [

"/ventoy/fonts/ascii.pf2",
"/ventoy/fonts/BitstreamVeraSansMono10.pf2",
"/ventoy/fonts/gulim10.pf2",
"/ventoy/fonts/gulim12.pf2",
"/ventoy/fonts/gulim14.pf2",
"/ventoy/fonts/gulim16.pf2",
"/ventoy/fonts/malgun-Regular10.pf2",
"/ventoy/fonts/malgun16.pf2",
"/ventoy/fonts/MintOSunicode.pf2",
"/ventoy/fonts/RemixOSunicode.pf2",
"/ventoy/fonts/traffolight16.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/install.wim",
"template": "/ventoy/script/unattended 01.xml"
},
{
"image": "/sources/CentOS-8.2.2004-x86_64-boot.iso",
"template": "/ventoy/script/centos_kickstart.cfg"
}
],

"image_list": [
"/Install_PE/Install/Windows10 Pro x64 21H1(19043.964) Util.iso",
"/Install_PE/Install/Windows10 Pro x64 20H2(19042.964) Util.iso"
]
},

"auto_memdisk": [
"/sources/WinPE/mini10PE_19.10_x64.iso",
"/sources/WinPE/W81_DreamPE_Lite.x86.iso"
],

"menu_alias" : [
{
"image": "/win10pe_uefi.iso",
"alias": "Windows10 PE"
},
{
"image": "/windows_setup_lite.iso",
"alias": "Windows RS4 x64 KO KR Lite Install"
}
]
}


RE: How to correctly add "image_list" to ventoy.json - BKPB - 05-26-2021

longpanda, Thank you for your help, everything works. I found an error, I had the first letter in the word Memtest in Cyrillic. Problem solved.