mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-06-11 04:42:23 +03:00
Merge pull request #554 from Athanasius/fix/Registry-Marginal-Winsparkle
Fix WinSparkle options to be under EDCD key
This commit is contained in:
commit
d6d2ef3450
@ -200,8 +200,12 @@ class Config(object):
|
|||||||
raise Exception()
|
raise Exception()
|
||||||
|
|
||||||
# set WinSparkle defaults - https://github.com/vslavik/winsparkle/wiki/Registry-Settings
|
# set WinSparkle defaults - https://github.com/vslavik/winsparkle/wiki/Registry-Settings
|
||||||
|
edcdhkey = HKEY()
|
||||||
|
if RegCreateKeyEx(HKEY_CURRENT_USER, r'Software\EDCD\EDMarketConnector', 0, None, 0, KEY_ALL_ACCESS, None, ctypes.byref(edcdhkey), ctypes.byref(disposition)):
|
||||||
|
raise Exception()
|
||||||
|
|
||||||
sparklekey = HKEY()
|
sparklekey = HKEY()
|
||||||
if not RegCreateKeyEx(self.hkey, 'WinSparkle', 0, None, 0, KEY_ALL_ACCESS, None, ctypes.byref(sparklekey), ctypes.byref(disposition)):
|
if not RegCreateKeyEx(edcdhkey, 'WinSparkle', 0, None, 0, KEY_ALL_ACCESS, None, ctypes.byref(sparklekey), ctypes.byref(disposition)):
|
||||||
if disposition.value == REG_CREATED_NEW_KEY:
|
if disposition.value == REG_CREATED_NEW_KEY:
|
||||||
buf = ctypes.create_unicode_buffer('1')
|
buf = ctypes.create_unicode_buffer('1')
|
||||||
RegSetValueEx(sparklekey, 'CheckForUpdates', 0, 1, buf, len(buf)*2)
|
RegSetValueEx(sparklekey, 'CheckForUpdates', 0, 1, buf, len(buf)*2)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user