def wsz_registry():
    """
    Check Windows registry for 7-Zip executable location.
    """
    import winreg
    hk7z = winreg.OpenKey(winreg.HKEY_CURRENT_USER, 'Software\\7-Zip')
    path = winreg.QueryValueEx(hk7z, 'Path')
    return path
