def win_register():
    "need to be admin"
    try:
        with winreg.CreateKey(winreg.HKEY_CLASSES_ROOT, "austere.HTTP") as k:
            # winreg.SetValue(k, None, winreg.REG_SZ,  "{} austere".format(sys.argv[0]))
            logger.debug("\shell")
            with winreg.CreateKey(k, "shell") as shellkey:
                logger.debug("\open")
                with winreg.CreateKey(shellkey, "open") as openkey:
                    logger.debug("\command")
                    with winreg.CreateKey(openkey, "command") as cmdkey:
                        winreg.SetValue(cmdkey, None, winreg.REG_SZ,  '"{} austere" "%1"'.format(sys.argv[0]))
        # with winreg.CreateKey(winreg.HKEY_CLASSES_ROOT, "austere.HTTPS") as kssl:
        #     winreg.SetValue(kssl, None, winreg.REG_SZ,  "{} austere".format(sys.argv[0]))
    except OSError as e:
        logger.error(e)
need to be admin