Просмотр исходного кода

Comment on querying both HKLM and HKCU in the context of Inno Setup 6 installation modes

Source commit: 46b38f8b459a114bcf8a208c0e49d18a6a98056a
Martin Prikryl 6 лет назад
Родитель
Сommit
708c3482e9
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      deployment/winscpsetup.iss

+ 3 - 0
deployment/winscpsetup.iss

@@ -838,6 +838,9 @@ begin
   InitInterface := -1;
 
   Upgrade :=
+    // We may want to use HKA to work correctly with side-by-side installations.
+    // But as Updade is really used for changing REGISTRY configuration options only,
+    // which are shared between all-users and current-user installations, it does not really matter.
     RegQueryStringValue(HKLM, '{#InnoSetupReg}', '{#InnoSetupAppPathReg}', S) or
     RegQueryStringValue(HKCU, '{#InnoSetupReg}', '{#InnoSetupAppPathReg}', S);