浏览代码

Bug fix: The "Drag & drop shell extension" installation component was not showing its size

(cherry picked from commit e6122853074d8382f48e2dd93b2ba204790516e6)

Source commit: fbf60d7f0c885afee57bdf452c0326d45c84e687
Martin Prikryl 4 年之前
父节点
当前提交
49bcfd1c02
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      deployment/winscpsetup.iss

+ 4 - 1
deployment/winscpsetup.iss

@@ -193,8 +193,10 @@ Name: custom; Description: "custom"; Flags: iscustom
 [Components]
 Name: main; Description: {cm:ApplicationComponent}; \
   Types: full custom compact; Flags: fixed
+; Because the files for the component have Check parameters, they are ignored for the size calculation
 Name: shellext; Description: {cm:ShellExtComponent}; \
-  Types: full compact
+  ExtraDiskSpaceRequired: {#Max(FileSize(ShellExtFileSource), FileSize(ShellExt64FileSource))}; \
+  Types: full compact; 
 Name: pageant; Description: {cm:PageantComponent}; \
   Types: full
 Name: puttygen; Description: {cm:PuTTYgenComponent}; \
@@ -267,6 +269,7 @@ Source: "{#AssemblyFileSource}"; DestDir: "{app}"; \
   Components: main; Flags: ignoreversion
 Source: "license.txt"; DestDir: "{app}"; \
   Components: main; Flags: ignoreversion
+; If the Check is ever removed, remove the ExtraDiskSpaceRequired parameter of the component too
 Source: "{#ShellExtFileSource}"; DestDir: "{app}"; \
   Components: shellext; \
   Flags: regserver restartreplace uninsrestartdelete ignoreversion; \