38 lines
961 B
Python
38 lines
961 B
Python
import winreg
|
|
|
|
class Ziniao:
|
|
def __init__(self, name):
|
|
pass
|
|
|
|
def login(self, username, password):
|
|
pass
|
|
|
|
def open_store(self):
|
|
pass
|
|
|
|
def close_store(self):
|
|
pass
|
|
|
|
def close(self):
|
|
pass
|
|
|
|
def get_ziniao_exe_path(self):
|
|
"""
|
|
Returns:
|
|
str: The DisplayIcon value if found, None otherwise
|
|
"""
|
|
try:
|
|
# Open the registry key
|
|
reg_path = r"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\8c327052-d9e8-5248-931f-e5b8c47f82b5"
|
|
key = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, reg_path)
|
|
|
|
# Query the DisplayIcon value
|
|
display_icon, _ = winreg.QueryValueEx(key, "DisplayIcon")
|
|
winreg.CloseKey(key)
|
|
|
|
return display_icon
|
|
except FileNotFoundError:
|
|
return "Registry key not found"
|
|
except WindowsError as e:
|
|
return f"Error accessing registry: {e}"
|