打包脚本支持多个twain设备

This commit is contained in:
luoliangyi 2022-07-16 17:11:25 +08:00
parent 5642c06014
commit e28d49524d
1 changed files with 17 additions and 5 deletions

View File

@ -31,8 +31,14 @@ AlwaysShowComponentsList=true
Name: "zn"; MessagesFile: "compiler:Languages/Chinese.isl"
[Components]
Name: "TwainG100"; Description: "Twain-G100" ; Types: Full
Name: "TwainG400"; Description: "Twain-G400" ; Types: Full
Name: "TwainG100"; Description: "Twain-G100" ; Types: Full
Name: "TwainG139"; Description: "Twain-G139" ; Types: Full
Name: "TwainG200"; Description: "Twain-G200" ; Types: Full
Name: "TwainG239"; Description: "Twain-G239" ; Types: Full
Name: "TwainG300"; Description: "Twain-G300" ; Types: Full
Name: "TwainG400"; Description: "Twain-G400" ; Types: Full
Name: "TwainG402"; Description: "Twain-G402" ; Types: Full
Name: "TwainG439"; Description: "Twain-G439" ; Types: Full
[Files]
@ -49,12 +55,18 @@ Source: "..\x86\Release\styles\*"; DestDir: "{app}\styles\"; Flags: ignoreversio
Source: "..\x86\Release\translations\*"; DestDir: "{app}\translations\"; Flags: ignoreversion
Source: "..\x86\Release\HuagoScan.exe"; DestDir: "{app}\"; Flags: ignoreversion
Source: "..\x86\Release\HuagoScanUpgrade.exe"; DestDir: "{app}\"; Flags: ignoreversion
Source: "..\x86\Release\HGUpgrade.exe"; DestDir: "{app}\"; Flags: ignoreversion
Source: "..\x86\Release\*.dll"; DestDir: "{app}\"; Flags: ignoreversion
Source: "..\x86\Release\huagaotwain100.ds"; DestDir: "{win}\twain_32\"; Flags: ignoreversion; Components: TwainG100;
Source: "..\x86\Release\huagaotwain139.ds"; DestDir: "{win}\twain_32\"; Flags: ignoreversion; Components: TwainG139;
Source: "..\x86\Release\huagaotwain200.ds"; DestDir: "{win}\twain_32\"; Flags: ignoreversion; Components: TwainG200;
Source: "..\x86\Release\huagaotwain239.ds"; DestDir: "{win}\twain_32\"; Flags: ignoreversion; Components: TwainG239;
Source: "..\x86\Release\huagaotwain300.ds"; DestDir: "{win}\twain_32\"; Flags: ignoreversion; Components: TwainG300;
Source: "..\x86\Release\huagaotwain400.ds"; DestDir: "{win}\twain_32\"; Flags: ignoreversion; Components: TwainG400;
Source: "..\x86\Release\huagaotwain402.ds"; DestDir: "{win}\twain_32\"; Flags: ignoreversion; Components: TwainG402;
Source: "..\x86\Release\huagaotwain439.ds"; DestDir: "{win}\twain_32\"; Flags: ignoreversion; Components: TwainG439;
[INI]
@ -90,7 +102,7 @@ var
ErrorCode: Integer;
bRes: Boolean;
begin
if not ShellExec('', ExpandConstant('{app}\HuagoScanUpgrade.exe'), '-type=postuninstallinfo -appName=Scanner -desc=uninstall', '', SW_HIDE, ewWaitUntilTerminated, ErrorCode) then
if not ShellExec('', ExpandConstant('{app}\HGUpgrade.exe'), '-type=postuninstallinfo -appName=Scanner -desc=uninstall', '', SW_HIDE, ewWaitUntilTerminated, ErrorCode) then
begin
end;
Result := true;
@ -113,5 +125,5 @@ begin
end;
[Run]
Filename: "{app}\HuagoScanUpgrade.exe"; Parameters:"-type=postinstallinfo -appName=Scanner -desc=install/upgrade";
Filename: "{app}\HGUpgrade.exe"; Parameters:"-type=postinstallinfo -appName=Scanner -desc=install/upgrade";
Filename: "{app}\HuagoScan.exe"; Description: "{cm:LaunchProgram, {#MyAppName}}"; Flags: postinstall nowait skipifsilent