first commit
This commit is contained in:
commit
d2b2284bd4
2 files changed
+38
No files matched your search
@@ -0,0 +1,37 @@
|
||||
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}"
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
Reference in new issue
Block a user