浏览代码

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

Source commit: 46b38f8b459a114bcf8a208c0e49d18a6a98056a
Martin Prikryl 6 年之前
父节点
当前提交
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);