def METHOD_NAME(self, servicename, dllpath):
    svchost_path = r"Software\Microsoft\Windows NT\CurrentVersion\Svchost"
    parameter_path = rf"System\CurrentControlSet\Services\{servicename}\Parameters"
    try:
        log.info("Adding Parameters value: %s -> ServiceDll = %s", parameter_path, dllpath)
        with CreateKeyEx(HKEY_LOCAL_MACHINE, parameter_path, 0, KEY_ALL_ACCESS) as key:
            SetValueEx(key, "ServiceDll", 0, REG_EXPAND_SZ, dllpath)
            CloseKey(key)
    except Exception as e:
        log.info("Error setting registry value: %s", e)
        # Service is not installed
        return
    try:
        log.info("Adding capegroup value: capegroup = %s", servicename)
        with CreateKeyEx(HKEY_LOCAL_MACHINE, svchost_path, 0, KEY_ALL_ACCESS) as key:
            SetValueEx(key, "capegroup", 0, REG_MULTI_SZ, [servicename])
            CloseKey(key)
    except Exception as e:
        log.info("Error setting registry value: %s", e)
        return