Skip to content

Commit 3016b96

Browse files
authored
Merge c848b69 into d6a193a
2 parents d6a193a + c848b69 commit 3016b96

3 files changed

Lines changed: 14 additions & 10 deletions

File tree

source/buildVersion.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ def formatVersionForGUI(year, major, minor):
7070
version_minor = 0
7171
version_build = 0 # Should not be set manually. Set in 'sconscript' provided by 'appVeyor.yml'
7272
version=_formatDevVersionString()
73+
version_full = formatBuildVersionString()
7374
publisher="unknown"
7475
updateVersionType=None
7576
try:

source/installer.py

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import easeOfAccess
2222
import COMRegistrationFixes
2323
import winKernel
24+
from typing import Dict
2425

2526
_wsh=None
2627
def _getWSH():
@@ -226,17 +227,19 @@ def removeOldProgramFiles(destPath):
226227
except RetriableFailure:
227228
log.warning(f"Couldn't remove file: {path!r}")
228229

229-
uninstallerRegInfo={
230-
"DisplayName":versionInfo.name,
231-
"DisplayVersion":versionInfo.version,
232-
"DisplayIcon":u"{installDir}\\images\\nvda.ico",
233-
"InstallDir":u"{installDir}",
234-
"Publisher":versionInfo.publisher,
235-
"UninstallDirectory":u"{installDir}",
236-
"UninstallString":u"{installDir}\\uninstall.exe",
237-
"URLInfoAbout":versionInfo.url,
230+
231+
uninstallerRegInfo: Dict[str, str] = {
232+
"DisplayName": f"{versionInfo.name} {versionInfo.version}",
233+
"DisplayVersion": versionInfo.version_full,
234+
"DisplayIcon": r"{installDir}\images\nvda.ico",
235+
"InstallDir": "{installDir}",
236+
"Publisher": versionInfo.publisher,
237+
"UninstallDirectory": "{installDir}",
238+
"UninstallString": r"{installDir}\uninstall.exe",
239+
"URLInfoAbout": versionInfo.url,
238240
}
239241

242+
240243
def registerInstallation(installDir,startMenuFolder,shouldCreateDesktopShortcut,startOnLogonScreen,configInLocalAppData=False):
241244
with winreg.CreateKeyEx(winreg.HKEY_LOCAL_MACHINE,"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\NVDA",0,winreg.KEY_WRITE) as k:
242245
for name,value in uninstallerRegInfo.items():

source/versionInfo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
aboutMessage = _(
2222
# Translators: "About NVDA" dialog box message
2323
u"""{longName} ({name})
24-
Version: {version}
24+
Version: {version} ({version_full})
2525
URL: {url}
2626
{copyright}
2727

0 commit comments

Comments
 (0)