build: remove vc redist install from inno setup packaging

This commit is contained in:
yyc12345 committed 2026-10-13 10:49:43 +08:00
1 parent a2e89f4a5a
commit 57f8081841
24 files changed
+23 -112

No files matched your search

-1
View File
@@ -2,4 +2,3 @@
MyAppName={{ strings.MyAppName | inno_escape }}
MyOther={{ strings.MyOther | inno_escape }}
MyAssociateWithFiles={{ strings.MyAssociateWithFiles | inno_escape }}
MyInstallVcRedist={{ strings.MyInstallVcRedist | inno_escape }}
+2 -5
View File
@@ -94,11 +94,9 @@ Name: "associatewithfiles"; Description: "{cm:MyAssociateWithFiles,{#MyAppName}}
; YYC MARK:
; This script is compiled in place and retrieves the artifacts to be packaged
; from the directory given by the "PublishDir" define, which must contain
; "scwpic.exe", "vc_redist.x64.exe" and the "LICENSE" file. Otherwise
; exception will be thrown.
; "scwpic.exe" and the "LICENSE" file. Otherwise exception will be thrown.
Source: "{#PublishDir}\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion
Source: "{#PublishDir}\*"; Excludes: "vc_redist.x64.exe"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "{#PublishDir}\vc_redist.x64.exe"; DestDir: "{tmp}"; Flags: deleteafterinstall
Source: "{#PublishDir}\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
[Registry]
@@ -389,4 +387,3 @@ Name: "{autodesktop}\{cm:MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks:
[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#MyAppName}}"; Flags: nowait postinstall skipifsilent
Filename: "{tmp}\vc_redist.x64.exe"; Parameters: "/install /quiet /norestart"; StatusMsg: "{cm:MyInstallVcRedist}"; Flags: waituntilterminated
-4
View File
@@ -12,7 +12,3 @@ comment = "Group caption for the extra installer task options."
[strings.MyAssociateWithFiles]
msgid = "Associate %1 with its supported file types."
comment = "Installer task description. %1 is the application name."
[strings.MyInstallVcRedist]
msgid = "Installing Microsoft Visual C++ Redistributable..."
comment = "Status message shown while installing the VC++ runtime."