Skip to content

Commit

Permalink
Registry key fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MinecraftZuriki committed Nov 30, 2017
1 parent 20cee1f commit 091ff8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ def install(self):
winreg.SetValueEx(regMainKey, None, 0, winreg.REG_SZ, "Retrocraft Launcher Protocol")
winreg.SetValueEx(regMainKey, "URL Protocol", 0, winreg.REG_SZ, "")
winreg.SetValueEx(regDefaultIconKey, None, 0, winreg.REG_SZ, os.path.join(window.tbInstallPath.text(), "RetrocraftLauncher.exe"))
winreg.SetValueEx(regShellKey, None, 0, winreg.REG_SZ, os.path.join(window.tbInstallPath.text(), "RetrocraftLauncher.exe"))
winreg.SetValueEx(regShellKey, None, 0, winreg.REG_SZ, "\"" + os.path.join(window.tbInstallPath.text(), "RetrocraftLauncher.exe") + "\" \"%1\"")
except WindowsError:
errorDialog("Unable to create registry keys,\napplication or user may have insufficient privilleges!\n\nAborting installation!")
window.logMessage("Unable to create registry keys!", 1)
Expand Down

0 comments on commit 091ff8b

Please sign in to comment.