def METHOD_NAME(config_list, ver):
    config_dict = {}
    if ver == "V1":
        config_dict["Version"] = "1.0.x"
        config_dict["Domain"] = config_list[1]
        config_dict["Port"] = config_list[2]
        config_dict["Password"] = config_list[3]
        config_dict["CampaignID"] = config_list[4]
        config_dict["InstallName"] = config_list[5]
        config_dict["HKCUKey"] = config_list[6]
        config_dict["InstallDir"] = config_list[7]
        config_dict["Flag1"] = config_list[8]
        config_dict["Flag2"] = config_list[9]
        config_dict["Mutex"] = config_list[10]
    if ver == "V2":
        config_dict["Version"] = config_list[0]
        config_dict["Domain"] = config_list[1]
        config_dict["Password"] = config_list[2]
        config_dict["InstallSub"] = config_list[3]
        config_dict["InstallName"] = config_list[4]
        config_dict["Mutex"] = config_list[5]
        config_dict["RegistryKey"] = config_list[6]
    return config_dict