Bug 1507618 - Use TB version as default version in Win registry. r=Paenglab a=jorgk
authorRob Lemley <rob@thunderbird.net>
Fri, 12 Apr 2019 16:36:36 -0400
changeset 33989 daee3654255f6c952510ab43e043d30f9e15eb7c
parent 33988 4a2cd2ce46b9e8c040d1460dfa784eed4c7ebaa8
child 33990 d0a42993bc534c3193caf921f4b3ded5243ce98a
push id2400
push usermozilla@jorgk.com
push dateFri, 19 Apr 2019 16:50:45 +0000
treeherdercomm-beta@cc70860e0c10 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersPaenglab, jorgk
bugs1507618
Bug 1507618 - Use TB version as default version in Win registry. r=Paenglab a=jorgk Write $AppVersion (Thunderbird version) to the default value in the registry. Create a separate GeckoVersion key for GREVersion.
mail/installer/windows/nsis/shared.nsh
--- a/mail/installer/windows/nsis/shared.nsh
+++ b/mail/installer/windows/nsis/shared.nsh
@@ -592,18 +592,19 @@
   StrCpy $0 "Software\Mozilla\${BrandFullNameInternal} ${AppVersion}\extensions"
   ${WriteRegStr2} $TmpVal "$0" "Components" "$8\components" 0
   ${WriteRegStr2} $TmpVal "$0" "Plugins" "$8\plugins" 0
 
   StrCpy $0 "Software\Mozilla\${BrandFullNameInternal} ${AppVersion}"
   ${WriteRegStr2} $TmpVal "$0" "GeckoVer" "${GREVersion}" 0
 
   StrCpy $0 "Software\Mozilla\${BrandFullNameInternal}"
-  ${WriteRegStr2} $TmpVal "$0" "" "${GREVersion}" 0
+  ${WriteRegStr2} $TmpVal "$0" "" "${AppVersion}" 0
   ${WriteRegStr2} $TmpVal "$0" "CurrentVersion" "${AppVersion} (${AB_CD})" 0
+  ${WriteRegStr2} $TmpVal "$0" "GeckoVersion" "${GREVersion}" 0
 !macroend
 !define SetAppKeys "!insertmacro SetAppKeys"
 
 ; Add uninstall registry entries. This macro tests for write access to determine
 ; if the uninstall keys should be added to HKLM or HKCU.
 !macro SetUninstallKeys
   StrCpy $0 "Software\Microsoft\Windows\CurrentVersion\Uninstall\${BrandFullNameInternal} ${AppVersion} (${ARCH} ${AB_CD})"