mirror of http://192.168.10.5:8099/sane/release
377 lines
26 KiB
Plaintext
377 lines
26 KiB
Plaintext
|
; Script generated by the Inno Setup Script Wizard.
|
|||
|
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
|
|||
|
|
|||
|
#define MyAppVersion GetFileVersion('..\..\x64\OEM\huagao\sane.dll')
|
|||
|
#define MyAppSetupName "HuaGoScan_App_Setup"
|
|||
|
#define MyAppDefSetupDir "HuaGoScan"
|
|||
|
|
|||
|
[Setup]
|
|||
|
; NOTE: The value of AppId uniquely identifies this application.
|
|||
|
; Do not use the same AppId value in installers for other applications.
|
|||
|
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
|
|||
|
AppId={{7076DC53-5C2F-4216-9783-2A6F954FEB3E}
|
|||
|
AppName={cm:MyAppName}
|
|||
|
AppVerName={cm:MyAppName}
|
|||
|
AppVersion={#MyAppVersion}
|
|||
|
DefaultDirName={pf}\{#MyAppDefSetupDir}
|
|||
|
DefaultGroupName={cm:MyAppName}
|
|||
|
VersionInfoVersion={#MyAppVersion}
|
|||
|
OutputDir=..\..\package
|
|||
|
OutputBaseFilename={#MyAppSetupName}_{#MyAppVersion}
|
|||
|
Compression=lzma
|
|||
|
AppPublisher={cm:MyAppPublisher}
|
|||
|
SolidCompression=no
|
|||
|
UninstallIconFile=uninstall.ico
|
|||
|
SetupIconFile=HuaGoScan_App.ico
|
|||
|
LicenseFile=HuaGoScan_App_License.txt
|
|||
|
AlwaysShowComponentsList=true
|
|||
|
ArchitecturesInstallIn64BitMode=x64
|
|||
|
PrivilegesRequired=admin
|
|||
|
DisableWelcomePage=no
|
|||
|
;ShowLanguageDialog=yes
|
|||
|
;ShowUndisplayableLanguages=yes
|
|||
|
|
|||
|
[Languages]
;Name: "english"; MessagesFile: "compiler:Languages/English.isl"; LicenseFile:HuaGoScan_App_License_En.txt
|
|||
|
Name: "chinese_simp"; MessagesFile: "compiler:Languages/ChineseSimp.isl"; LicenseFile:HuaGoScan_App_License.txt
;Name: "chinese_trad"; MessagesFile: "compiler:Languages/ChineseTrad.isl"; LicenseFile:HuaGoScan_App_License_Cn_Tr.txt
|
|||
|
|
|||
|
[CustomMessages]
|
|||
|
; english
|
|||
|
;english.MyAppName=Huago Scanning Software
|
|||
|
;english.MyAppPublisher=Ningbo Huagao Information Technology Co., Ltd
|
|||
|
;english.MyStr1=The scanning software has been installed. Do you want to uninstall the original version?
|
|||
|
;english.MyStr2=Please close the old scanning software first!
|
|||
|
;english.MyStr3=Failed to uninstall the old scanning software, stop installing!
|
|||
|
;english.MyStr4=Please close the scanning software first!
|
|||
|
; chinese_simp
|
|||
|
chinese_simp.MyAppName=<3D><><EFBFBD><EFBFBD>ɨ<EFBFBD><C9A8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
chinese_simp.MyAppPublisher=<3D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD>Ƽ<EFBFBD><C6BC><EFBFBD><EFBFBD><EFBFBD>˾
|
|||
|
chinese_simp.MyStr1=ɨ<><C9A8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ѱ<EFBFBD>װ<EFBFBD><D7B0><EFBFBD>Ƿ<EFBFBD>ж<EFBFBD><D0B6>ԭ<EFBFBD>汾<EFBFBD><E6B1BE>
|
|||
|
chinese_simp.MyStr2=<3D><><EFBFBD>ȹرվɰ<D5BE>ɨ<EFBFBD><C9A8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
chinese_simp.MyStr3=ж<>ؾɰ<D8BE>ɨ<EFBFBD><C9A8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʧ<EFBFBD>ܣ<EFBFBD>ֹͣ<CDA3><D6B9>װ<EFBFBD><D7B0>
|
|||
|
chinese_simp.MyStr4=<3D><><EFBFBD>ȹر<C8B9>ɨ<EFBFBD><C9A8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
; chinese_trad
|
|||
|
;chinese_trad.MyAppName=<3D>A<EFBFBD>ߒ<EFBFBD><DF92><EFBFBD>ܛ<EFBFBD><DC9B>
|
|||
|
;chinese_trad.MyAppPublisher=<3D><><EFBFBD><EFBFBD><EFBFBD>A<EFBFBD><41><EFBFBD>YӍ<59>Ƽ<EFBFBD><C6BC><EFBFBD><EFBFBD><EFBFBD>˾
|
|||
|
;chinese_trad.MyStr1=<3D><><EFBFBD><EFBFBD>ܛ<EFBFBD><DC9B><EFBFBD>Ѱ<EFBFBD><D1B0>b<EFBFBD><62><EFBFBD>Ƿ<EFBFBD>ж<EFBFBD>dԭ<64>汾<EFBFBD><E6B1BE>
|
|||
|
;chinese_trad.MyStr2=Ո<><D588><EFBFBD>P<EFBFBD>]<5D>f<EFBFBD><66><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ܛ<EFBFBD><DC9B><EFBFBD><EFBFBD>
|
|||
|
;chinese_trad.MyStr3=ж<>d<EFBFBD>f<EFBFBD><66><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ܛ<EFBFBD><DC9B>ʧ<EFBFBD><CAA7><EFBFBD><EFBFBD>ֹͣ<CDA3><D6B9><EFBFBD>b<EFBFBD><62>
|
|||
|
;chinese_trad.MyStr4=Ո<><D588><EFBFBD>P<EFBFBD>]<5D><><EFBFBD><EFBFBD>ܛ<EFBFBD><DC9B><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
[Components]
|
|||
|
;Name: "Upgrade"; Description: "Upgrade" ; Types: Full; Languages: english
|
|||
|
Name: "Upgrade"; Description: "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" ; Types: Full; Languages: chinese_simp
|
|||
|
;Name: "Upgrade"; Description: "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" ; Types: Full; Languages: chinese_trad
|
|||
|
Name: "TwainG100"; Description: "HUAGOSCAN G100 TWAIN" ; Types: Full
|
|||
|
Name: "TwainG200"; Description: "HUAGOSCAN G200 TWAIN" ; Types: Full
|
|||
|
Name: "TwainG300"; Description: "HUAGOSCAN G300 TWAIN" ; Types: Full
|
|||
|
Name: "TwainG400"; Description: "HUAGOSCAN G400 TWAIN" ; Types: Full
|
|||
|
|
|||
|
[Files]
|
|||
|
|
|||
|
; app
|
|||
|
Source: ".\HuaGoScan_App.ico"; DestDir: "{app}\"; Flags: ignoreversion
|
|||
|
Source: "..\..\..\..\code_app\doc\scanner\HuaGoScan_App_Help_manual.pdf"; DestDir: "{app}\"; Flags: ignoreversion
|
|||
|
Source: "..\..\..\..\code_app\doc\scanner\HuaGoScan_scanSettings_Help_manual.pdf"; DestDir: "{app}\"; Flags: ignoreversion
|
|||
|
|
|||
|
; app32
|
|||
|
Source: "..\..\x86\Release\HGTwainUI.dll"; DestDir: "{app}\"; Flags: ignoreversion; Check: not Is64BitInstallMode
|
|||
|
Source: "..\..\x86\Release\HGTwainUser.dll"; DestDir: "{app}\"; Flags: ignoreversion; Check: not Is64BitInstallMode
|
|||
|
Source: "..\..\x86\Release\hwusbdev.key"; DestDir: "{app}\"; Flags: ignoreversion; Check: not Is64BitInstallMode
|
|||
|
Source: "..\..\x86\Release\tessdata\*"; DestDir: "{app}\tessdata\"; Flags: ignoreversion; Check: not Is64BitInstallMode
|
|||
|
Source: "..\..\x86\Qt\iconengines\*"; DestDir: "{app}\iconengines\"; Flags: ignoreversion; Check: not Is64BitInstallMode
|
|||
|
Source: "..\..\x86\Qt\imageformats\*"; DestDir: "{app}\imageformats\"; Flags: ignoreversion; Check: not Is64BitInstallMode
|
|||
|
Source: "..\..\x86\Qt\platforms\*"; DestDir: "{app}\platforms\"; Flags: ignoreversion; Check: not Is64BitInstallMode
|
|||
|
Source: "..\..\x86\Qt\styles\*"; DestDir: "{app}\styles\"; Flags: ignoreversion; Check: not Is64BitInstallMode
|
|||
|
Source: "..\..\x86\Qt\translations\*"; DestDir: "{app}\translations\"; Flags: ignoreversion; Check: not Is64BitInstallMode
|
|||
|
Source: "..\..\x86\Qt\*.dll"; DestDir: "{app}\"; Flags: ignoreversion; Check: not Is64BitInstallMode
|
|||
|
Source: "..\..\x86\Release\HuaGoScan.exe"; DestDir: "{app}\"; Flags: ignoreversion; Check: not Is64BitInstallMode
|
|||
|
Source: "..\..\x86\Release\HGUpgradeApp.exe"; DestDir: "{app}\"; Flags: ignoreversion; Components: Upgrade; Check: not Is64BitInstallMode
Source: "..\..\x86\Release\HGFWUpgradeApp.exe"; DestDir: "{app}\"; Flags: ignoreversion; Check: not Is64BitInstallMode
|
|||
|
Source: "..\..\x86\Release\cnocr.dll"; DestDir: "{app}\"; Flags: ignoreversion; Check: not Is64BitInstallMode
|
|||
|
Source: "..\..\x86\Release\doc_seg.dll"; DestDir: "{app}\"; Flags: ignoreversion; Check: not Is64BitInstallMode
|
|||
|
Source: "..\..\x86\Release\ExportFile.dll"; DestDir: "{app}\"; Flags: ignoreversion; Check: not Is64BitInstallMode
|
|||
|
Source: "..\..\x86\Release\FormEx.dll"; DestDir: "{app}\"; Flags: ignoreversion; Check: not Is64BitInstallMode
|
|||
|
Source: "..\..\x86\Release\GetPdf.dll"; DestDir: "{app}\"; Flags: ignoreversion; Check: not Is64BitInstallMode
|
|||
|
Source: "..\..\x86\Release\GetRtf.dll"; DestDir: "{app}\"; Flags: ignoreversion; Check: not Is64BitInstallMode
|
|||
|
Source: "..\..\x86\Release\GetXls.dll"; DestDir: "{app}\"; Flags: ignoreversion; Check: not Is64BitInstallMode
|
|||
|
Source: "..\..\x86\Release\hanwangOCRdetect.dll"; DestDir: "{app}\"; Flags: ignoreversion; Check: not Is64BitInstallMode
|
|||
|
Source: "..\..\x86\Release\hasp_windows_113819.dll"; DestDir: "{app}\"; Flags: ignoreversion; Check: not Is64BitInstallMode
|
|||
|
Source: "..\..\x86\Release\HGBase.dll"; DestDir: "{app}\"; Flags: ignoreversion; Check: not Is64BitInstallMode
|
|||
|
Source: "..\..\x86\Release\HGImgFmt.dll"; DestDir: "{app}\"; Flags: ignoreversion; Check: not Is64BitInstallMode
|
|||
|
Source: "..\..\x86\Release\HGImgProc.dll"; DestDir: "{app}\"; Flags: ignoreversion; Check: not Is64BitInstallMode
|
|||
|
Source: "..\..\x86\Release\HGVersion.dll"; DestDir: "{app}\"; Flags: ignoreversion; Components: Upgrade; Check: not Is64BitInstallMode
|
|||
|
Source: "..\..\x86\Release\HwOcrSdk.dll"; DestDir: "{app}\"; Flags: ignoreversion; Check: not Is64BitInstallMode
|
|||
|
Source: "..\..\x86\Release\libmupdf.dll"; DestDir: "{app}\"; Flags: ignoreversion; Check: not Is64BitInstallMode
|
|||
|
Source: "..\..\x86\Release\libzip.org.dll"; DestDir: "{app}\"; Flags: ignoreversion; Check: not Is64BitInstallMode
|
|||
|
Source: "..\..\x86\Release\mp30.dll"; DestDir: "{app}\"; Flags: ignoreversion; Check: not Is64BitInstallMode
|
|||
|
Source: "..\..\x86\Release\ofd.dll"; DestDir: "{app}\"; Flags: ignoreversion; Check: not Is64BitInstallMode
|
|||
|
Source: "..\..\x86\Release\pdflib.dll"; DestDir: "{app}\"; Flags: ignoreversion; Check: not Is64BitInstallMode
|
|||
|
Source: "..\..\x86\Release\PDFParse.dll"; DestDir: "{app}\"; Flags: ignoreversion; Check: not Is64BitInstallMode
|
|||
|
Source: "..\..\x86\Release\tinyxml2.dll"; DestDir: "{app}\"; Flags: ignoreversion; Check: not Is64BitInstallMode
|
|||
|
Source: "..\..\x86\Release\msvcp140.dll"; DestDir: "{app}\"; Flags: ignoreversion; Check: not Is64BitInstallMode
|
|||
|
Source: "..\..\x86\Release\vcruntime140.dll"; DestDir: "{app}\"; Flags: ignoreversion; Check: not Is64BitInstallMode
|
|||
|
Source: "..\..\x86\Release\concrt140.dll"; DestDir: "{app}\"; Flags: ignoreversion; Check: not Is64BitInstallMode
|
|||
|
Source: "..\..\x86\Release\zlib.dll"; DestDir: "{app}\"; Flags: ignoreversion; Check: not Is64BitInstallMode
|
|||
|
Source: "..\..\x86\OEM\huagao\sane.dll"; DestDir: "{app}\"; Flags: ignoreversion; Check: not Is64BitInstallMode
|
|||
|
Source: "..\..\x86\OEM\huagao\scanner.dll"; DestDir: "{app}\"; Flags: ignoreversion; Check: not Is64BitInstallMode
|
|||
|
Source: "..\..\x86\OEM\huagao\lang.dll"; DestDir: "{app}\"; Flags: ignoreversion; Check: not Is64BitInstallMode
|
|||
|
Source: "..\..\..\lang\*"; DestDir: "{app}\lang\"; Flags: ignoreversion; Check: not Is64BitInstallMode
|
|||
|
|
|||
|
; app64
|
|||
|
Source: "..\..\x64\Release\HGTwainUI.dll"; DestDir: "{app}\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\x64\Release\HGTwainUser.dll"; DestDir: "{app}\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\x64\Release\TWAINDSM.dll"; DestDir: "{app}\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\x64\Release\hwusbdev.key"; DestDir: "{app}\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\x64\Release\tessdata\*"; DestDir: "{app}\tessdata\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\x64\Qt\iconengines\*"; DestDir: "{app}\iconengines\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\x64\Qt\imageformats\*"; DestDir: "{app}\imageformats\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\x64\Qt\platforms\*"; DestDir: "{app}\platforms\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\x64\Qt\styles\*"; DestDir: "{app}\styles\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\x64\Qt\translations\*"; DestDir: "{app}\translations\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\x64\Qt\*.dll"; DestDir: "{app}\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\x64\Release\HuaGoScan.exe"; DestDir: "{app}\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\x64\Release\HGUpgradeApp.exe"; DestDir: "{app}\"; Flags: ignoreversion; Components: Upgrade; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\x64\Release\HGFWUpgradeApp.exe"; DestDir: "{app}\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\x64\Release\cnocr.dll"; DestDir: "{app}\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\x64\Release\doc_seg.dll"; DestDir: "{app}\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\x64\Release\ExportFile.dll"; DestDir: "{app}\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\x64\Release\FormEx.dll"; DestDir: "{app}\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\x64\Release\GetPdf.dll"; DestDir: "{app}\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\x64\Release\GetRtf.dll"; DestDir: "{app}\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\x64\Release\GetXls.dll"; DestDir: "{app}\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\x64\Release\hanwangOCRdetect.dll"; DestDir: "{app}\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\x64\Release\hasp_windows_x64_113819.dll"; DestDir: "{app}\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\x64\Release\HGBase.dll"; DestDir: "{app}\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\x64\Release\HGImgFmt.dll"; DestDir: "{app}\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\x64\Release\HGImgProc.dll"; DestDir: "{app}\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\x64\Release\HGVersion.dll"; DestDir: "{app}\"; Flags: ignoreversion; Components: Upgrade; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\x64\Release\HwOcrSdk.dll"; DestDir: "{app}\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\x64\Release\libmupdf.dll"; DestDir: "{app}\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\x64\Release\libzip.org.dll"; DestDir: "{app}\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\x64\Release\mp30.dll"; DestDir: "{app}\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\x64\Release\ofd.dll"; DestDir: "{app}\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\x64\Release\pdflib.dll"; DestDir: "{app}\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\x64\Release\PDFParse.dll"; DestDir: "{app}\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\x64\Release\tinyxml2.dll"; DestDir: "{app}\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\x64\Release\msvcp140.dll"; DestDir: "{app}\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\x64\Release\vcruntime140.dll"; DestDir: "{app}\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\x64\Release\vcruntime140_1.dll"; DestDir: "{app}\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\x64\Release\concrt140.dll"; DestDir: "{app}\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\x64\Release\zlib.dll"; DestDir: "{app}\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\x64\OEM\huagao\sane.dll"; DestDir: "{app}\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\x64\OEM\huagao\scanner.dll"; DestDir: "{app}\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\x64\OEM\huagao\lang.dll"; DestDir: "{app}\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\..\lang\*"; DestDir: "{app}\lang\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
|
|||
|
; twain32
|
|||
|
Source: "..\..\x86\Qt\iconengines\*"; DestDir: "{win}\twain_32\HuaGoTwain\iconengines\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\x86\Qt\imageformats\*"; DestDir: "{win}\twain_32\HuaGoTwain\imageformats\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\x86\Qt\platforms\*"; DestDir: "{win}\twain_32\HuaGoTwain\platforms\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\x86\Qt\styles\*"; DestDir: "{win}\twain_32\HuaGoTwain\styles\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\x86\Qt\translations\*"; DestDir: "{win}\twain_32\HuaGoTwain\translations\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\x86\Qt\*.dll"; DestDir: "{win}\twain_32\HuaGoTwain\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\x86\Release\HGTwainUI.dll"; DestDir: "{win}\twain_32\HuaGoTwain\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\x86\Release\HGTwainUser.dll"; DestDir: "{win}\twain_32\HuaGoTwain\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\..\..\code_app\doc\scanner\HuaGoScan_scanSettings_Help_manual.pdf"; DestDir: "{win}\twain_32\HuaGoTwain\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\x86\Release\msvcp140.dll"; DestDir: "{win}\twain_32\HuaGoTwain\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\x86\Release\vcruntime140.dll"; DestDir: "{win}\twain_32\HuaGoTwain\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\x86\Release\concrt140.dll"; DestDir: "{win}\twain_32\HuaGoTwain\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\x86\OEM\huagao\sane.dll"; DestDir: "{win}\twain_32\HuaGoTwain\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\x86\OEM\huagao\scanner.dll"; DestDir: "{win}\twain_32\HuaGoTwain\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\x86\OEM\huagao\lang.dll"; DestDir: "{win}\twain_32\HuaGoTwain\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\..\lang\*"; DestDir: "{win}\twain_32\HuaGoTwain\lang\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\x86\Release\HGBase.dll"; DestDir: "{win}\twain_32\HuaGoTwain\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\x86\Release\HGImgFmt.dll"; DestDir: "{win}\twain_32\HuaGoTwain\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\x86\Release\HGImgProc.dll"; DestDir: "{win}\twain_32\HuaGoTwain\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\x86\Release\HGVersion.dll"; DestDir: "{win}\twain_32\HuaGoTwain\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\x86\Release\tessdata\*"; DestDir: "{win}\twain_32\HuaGoTwain\tessdata\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\x86\OEM\huagao\huagaotwain100.ds"; DestDir: "{win}\twain_32\HuaGoTwain\"; Flags: ignoreversion; Components: TwainG100;
|
|||
|
Source: "..\..\x86\OEM\huagao\huagaotwain200.ds"; DestDir: "{win}\twain_32\HuaGoTwain\"; Flags: ignoreversion; Components: TwainG200;
|
|||
|
Source: "..\..\x86\OEM\huagao\huagaotwain300.ds"; DestDir: "{win}\twain_32\HuaGoTwain\"; Flags: ignoreversion; Components: TwainG300;
|
|||
|
Source: "..\..\x86\OEM\huagao\huagaotwain400.ds"; DestDir: "{win}\twain_32\HuaGoTwain\"; Flags: ignoreversion; Components: TwainG400;
|
|||
|
|
|||
|
; twain64
|
|||
|
Source: "..\..\x64\OEM\huagao\huagaotwain100.ds"; DestDir: "{win}\twain_64\HuaGoTwain\"; Flags: ignoreversion; Components: TwainG100; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\x64\OEM\huagao\huagaotwain200.ds"; DestDir: "{win}\twain_64\HuaGoTwain\"; Flags: ignoreversion; Components: TwainG200; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\x64\OEM\huagao\huagaotwain300.ds"; DestDir: "{win}\twain_64\HuaGoTwain\"; Flags: ignoreversion; Components: TwainG300; Check: Is64BitInstallMode
|
|||
|
Source: "..\..\x64\OEM\huagao\huagaotwain400.ds"; DestDir: "{win}\twain_64\HuaGoTwain\"; Flags: ignoreversion; Components: TwainG400; Check: Is64BitInstallMode
|
|||
|
|
|||
|
Source: "..\..\vs\vc_redist.x86.exe"; DestDir: "{app}\"; Flags: ignoreversion; Check: not Is64BitInstallMode
|
|||
|
Source: "..\..\vs\vc_redist.x64.exe"; DestDir: "{app}\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
|
|||
|
;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
Source: "..\..\usb\huagao\huagaousb.inf"; DestDir: "{app}\driver\"; Flags: ignoreversion recursesubdirs;
|
|||
|
Source: "..\..\usb\huagao\huagaousb.cat"; DestDir: "{app}\driver\"; Flags: ignoreversion recursesubdirs;
|
|||
|
Source: "..\..\x86\Release\DPInst32.exe"; DestDir: "{app}\"; Flags: ignoreversion recursesubdirs; Check: not IsWin64
|
|||
|
Source: "..\..\x64\Release\DPInst64.exe"; DestDir: "{app}\"; Flags: ignoreversion recursesubdirs; Check: IsWin64
|
|||
|
|
|||
|
; <20><>ʱʹ<CAB1><CAB9>
|
|||
|
Source: "..\..\x86\Release\RemoveOldApp.exe"; DestDir: "{tmp}\"; Flags: ignoreversion
|
|||
|
Source: "..\..\x86\Release\CheckNewApp.exe"; DestDir: "{app}\"; Flags: ignoreversion; Check: not Is64BitInstallMode
|
|||
|
Source: "..\..\x64\Release\CheckNewApp.exe"; DestDir: "{app}\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|||
|
|
|||
|
|
|||
|
[INI]
|
|||
|
|
|||
|
[Icons]
|
|||
|
Name: "{commondesktop}\{cm:MyAppName}"; Filename: "{app}\HuaGoScan.exe"
|
|||
|
Name: "{group}\{cm:MyAppName}"; Filename: "{app}\HuaGoScan.exe"
Name: "{group}\<5C><><EFBFBD><EFBFBD>ɨ<EFBFBD><C9A8><EFBFBD><EFBFBD>ά<EFBFBD><CEAC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"; Filename: "{app}\HGFWUpgradeApp.exe"
|
|||
|
;Name: "{group}\Huago scanning software help document"; Filename: "{app}\HuaGoScan_App_Help_manual.pdf"; Languages: english
|
|||
|
Name: "{group}\<5C><><EFBFBD><EFBFBD>ɨ<EFBFBD><C9A8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ĵ<EFBFBD>"; Filename: "{app}\HuaGoScan_App_Help_manual.pdf"; Languages: chinese_simp
|
|||
|
;Name: "{group}\<5C>A<EFBFBD>ߒ<EFBFBD><DF92><EFBFBD>ܛ<EFBFBD><DC9B><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ęn"; Filename: "{app}\HuaGoScan_App_Help_manual.pdf"; Languages: chinese_trad
|
|||
|
;Name: "{group}\Uninstall"; Filename: "{uninstallexe}"; Languages: english
|
|||
|
Name: "{group}\ж<><D0B6>"; Filename: "{uninstallexe}"; Languages: chinese_simp
|
|||
|
;Name: "{group}\ж<>d"; Filename: "{uninstallexe}"; Languages: chinese_trad
|
|||
|
|
|||
|
[Registry]
|
|||
|
Root: HKLM; Subkey: "Software\HuaGoScan"; ValueType: string; ValueName: "AppDirectory"; ValueData: "{app}"; Flags: uninsdeletekey
|
|||
|
Root: HKLM; Subkey: "Software\HuaGoScan"; ValueType: string; ValueName: "Application"; ValueData: "{app}\HuaGoScan.exe"; Flags: uninsdeletekey
|
|||
|
Root: HKLM; Subkey: "Software\HuaGoScan"; ValueType: string; ValueName: "AppVersion"; ValueData: "{#MyAppVersion}"; Flags: uninsdeletekey
|
|||
|
Root: HKLM; Subkey: "Software\HuaGoScan"; ValueType: string; ValueName: "DriverPath"; ValueData: "{app}"; Flags: uninsdeletekey; Check: not Is64BitInstallMode
|
|||
|
Root: HKLM; Subkey: "Software\HuaGoScan"; ValueType: string; ValueName: "DriverPath"; ValueData: "{win}\twain_32\HuaGoTwain"; Flags: uninsdeletekey; Check: Is64BitInstallMode
|
|||
|
Root: HKLM; Subkey: "Software\HuaGoScan"; ValueType: string; ValueName: "DriverPath64"; ValueData: "{app}"; Flags: uninsdeletekey; Check: Is64BitInstallMode
|
|||
|
Root: HKLM; Subkey: "Software\WOW6432Node\HuaGoScan"; ValueType: string; ValueName: "DriverPath"; ValueData: "{win}\twain_32\HuaGoTwain"; Flags: uninsdeletekey; Check: Is64BitInstallMode
|
|||
|
Root: HKLM; Subkey: "Software\WOW6432Node\HuaGoScan"; ValueType: string; ValueName: "DriverPath64"; ValueData: "{app}"; Flags: uninsdeletekey; Check: Is64BitInstallMode
|
|||
|
|
|||
|
[Code]
|
|||
|
|
|||
|
|
|||
|
var
|
|||
|
globalInstallPath: String;
|
|||
|
|
|||
|
procedure InitializeWizard;
|
|||
|
begin
|
|||
|
WizardForm.DirEdit.Text := globalInstallPath;
end;
|
|||
|
|
|||
|
function GetInstallString(): String;
|
|||
|
var
|
|||
|
InstallPath: String;
|
|||
|
begin
|
|||
|
InstallPath := ExpandConstant('{pf}\{#MyAppDefSetupDir}');
|
|||
|
if RegValueExists(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7076DC53-5C2F-4216-9783-2A6F954FEB3E}_is1', 'Inno Setup: App Path') then
|
|||
|
begin
|
|||
|
RegQueryStringValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7076DC53-5C2F-4216-9783-2A6F954FEB3E}_is1', 'Inno Setup: App Path', InstallPath)
|
|||
|
end
|
|||
|
result := InstallPath;
end;
|
|||
|
function InitializeSetup(): boolean;
|
|||
|
var
|
|||
|
ErrorCode: Integer;
|
|||
|
ResultCode: Integer;
|
|||
|
ResultStr: String;
|
|||
|
UninstallContinue: Boolean;
|
|||
|
CmdStr: String;
|
|||
|
begin
|
|||
|
Result := false;
|
|||
|
globalInstallPath := GetInstallString();
|
|||
|
CmdStr := GetCmdTail();
|
|||
|
ExtractTemporaryFile('RemoveOldApp.exe');
|
|||
|
if Exec(ExpandConstant('{tmp}\RemoveOldApp.exe'), '', '', SW_HIDE, ewWaitUntilTerminated, ErrorCode) then
|
|||
|
begin
|
|||
|
if 0 = ErrorCode then
|
|||
|
begin
|
|||
|
if RegQueryStringValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7076DC53-5C2F-4216-9783-2A6F954FEB3E}_is1', 'UninstallString', ResultStr) then
|
|||
|
begin
|
|||
|
UninstallContinue := true;
|
|||
|
if Pos('/verysilent', CmdStr) = 0 then
|
|||
|
begin
|
|||
|
if MsgBox(ExpandConstant('{cm:MyStr1}'), mbConfirmation, MB_YESNO) <> IDYES then
|
|||
|
begin
|
|||
|
UninstallContinue := false;
|
|||
|
end
|
|||
|
end
|
|||
|
if UninstallContinue then
|
|||
|
begin
|
|||
|
ResultStr := RemoveQuotes(ResultStr);
|
|||
|
if Exec(ResultStr, '/verysilent', '', SW_HIDE, ewWaitUntilTerminated, ResultCode) then
|
|||
|
begin
|
|||
|
if 0 = ResultCode then
|
|||
|
begin
|
|||
|
Sleep(1000)
|
|||
|
Result := true;
|
|||
|
end
|
|||
|
end
|
|||
|
end
|
|||
|
end
|
|||
|
else
|
|||
|
begin
|
|||
|
Result := true;
|
|||
|
end
|
|||
|
end
|
|||
|
else if 2 = ErrorCode then
|
|||
|
begin
|
|||
|
MsgBox(ExpandConstant('{cm:MyStr2}'), mbInformation, MB_OK);
|
|||
|
end
|
|||
|
else
|
|||
|
begin
|
|||
|
MsgBox(ExpandConstant('{cm:MyStr3}'), mbInformation, MB_OK);
|
|||
|
end
|
|||
|
end
|
|||
|
end;
|
|||
|
|
|||
|
function SetUninstallIcon(iconPath:string): Boolean;
|
|||
|
var
|
|||
|
InstalledVersion,SubKeyName: String;
|
|||
|
begin
|
|||
|
SubKeyName := 'Software\Microsoft\Windows\CurrentVersion\Uninstall\{7076DC53-5C2F-4216-9783-2A6F954FEB3E}_is1';
|
|||
|
RegWriteStringValue(HKLM,SubKeyName,'DisplayIcon',iconPath);
|
|||
|
end;
|
|||
|
|
|||
|
function InitializeUninstall(): Boolean;
|
|||
|
var
|
|||
|
ErrorCode: Integer;
|
|||
|
begin
|
|||
|
Result := false;
|
|||
|
if Exec(ExpandConstant('{app}\CheckNewApp.exe'), '', '', SW_HIDE, ewWaitUntilTerminated, ErrorCode) then
|
|||
|
begin
|
|||
|
if 0 = ErrorCode then
|
|||
|
begin
|
|||
|
ShellExec('', ExpandConstant('{app}\HGUpgradeApp.exe'), '-type=postuninstallinfo -appName=Scanner -oemName=Huago -desc=uninstall', '', SW_HIDE, ewWaitUntilTerminated, ErrorCode);
|
|||
|
Result := true;
|
|||
|
end
|
|||
|
else
|
|||
|
begin
|
|||
|
MsgBox(ExpandConstant('{cm:MyStr4}'), mbInformation, MB_OK);
|
|||
|
end
|
|||
|
end
|
|||
|
end;
|
|||
|
|
|||
|
procedure CurPageChanged(CurPageID: Integer);
|
|||
|
begin
|
|||
|
if CurPageID = wpFinished then
|
|||
|
begin
|
|||
|
SetUninstallIcon(ExpandConstant('{app}\HuaGoScan_App.ico'));
|
|||
|
DeleteFile(ExpandConstant('{win}\twain_32\HuaGoTwain\huagaotwain139.ds'));
|
|||
|
DeleteFile(ExpandConstant('{win}\twain_32\HuaGoTwain\huagaotwain239.ds'));
|
|||
|
DeleteFile(ExpandConstant('{win}\twain_32\HuaGoTwain\huagaotwain302.ds'));
|
|||
|
DeleteFile(ExpandConstant('{win}\twain_32\HuaGoTwain\huagaotwain402.ds'));
|
|||
|
DeleteFile(ExpandConstant('{win}\twain_32\HuaGoTwain\huagaotwain439.ds'));
|
|||
|
DeleteFile(ExpandConstant('{win}\twain_64\HuaGoTwain\huagaotwain139.ds'));
|
|||
|
DeleteFile(ExpandConstant('{win}\twain_64\HuaGoTwain\huagaotwain239.ds'));
|
|||
|
DeleteFile(ExpandConstant('{win}\twain_64\HuaGoTwain\huagaotwain302.ds'));
|
|||
|
DeleteFile(ExpandConstant('{win}\twain_64\HuaGoTwain\huagaotwain402.ds'));
|
|||
|
DeleteFile(ExpandConstant('{win}\twain_64\HuaGoTwain\huagaotwain439.ds'));
|
|||
|
DelTree(ExpandConstant('{win}\twain_32\HuaGoTwain\x86'), True, True, True);
|
|||
|
DelTree(ExpandConstant('{win}\twain_32\HuaGoTwain\x64'), True, True, True);
|
|||
|
end;
|
|||
|
end;
|
|||
|
|
|||
|
procedure CurUninstallStepChanged(CurUninstallStep:TUninstallStep);
|
|||
|
begin
|
|||
|
if CurUninstallStep = usDone then
|
|||
|
begin
|
|||
|
DelTree(ExpandConstant('{app}'), True, True, True);
|
|||
|
DelTree(ExpandConstant('{win}\twain_32\HuaGoTwain'), True, True, True);
|
|||
|
DelTree(ExpandConstant('{win}\twain_64\HuaGoTwain'), True, True, True);
|
|||
|
end;
|
|||
|
end;
|
|||
|
|
|||
|
[Run]
|
|||
|
Filename: "{app}\vc_redist.x86.exe"; Parameters: "/s"; Flags: runascurrentuser; Check: not Is64BitInstallMode
|
|||
|
Filename: "{app}\vc_redist.x64.exe"; Parameters: "/s"; Flags: runascurrentuser; Check: Is64BitInstallMode
|
|||
|
Filename: "{app}\DPInst32"; Parameters: "/path ""{app}\driver"" /sw /se /lm /f"; Check: not IsWin64; Flags: runascurrentuser
|
|||
|
Filename: "{app}\DPInst64"; Parameters: "/path ""{app}\driver"" /sw /se /lm /f"; Check: IsWin64; Flags: runascurrentuser
|
|||
|
Filename: "{app}\HGUpgradeApp.exe"; Parameters:"-type=postinstallinfo -appName=Scanner -oemName=Huago -desc=install/upgrade"; Components: Upgrade; Flags: runascurrentuser
|
|||
|
;Filename: "{app}\HuaGoScan.exe"; Description: "{cm:LaunchProgram, {cm:MyAppName}}"; Parameters:"-language=english"; Flags: postinstall nowait skipifsilent runascurrentuser; Languages: english
|
|||
|
Filename: "{app}\HuaGoScan.exe"; Description: "{cm:LaunchProgram, {cm:MyAppName}}"; Parameters:"-language=chinese"; Flags: postinstall nowait skipifsilent runascurrentuser; Languages: chinese_simp
|
|||
|
;Filename: "{app}\HuaGoScan.exe"; Description: "{cm:LaunchProgram, {cm:MyAppName}}"; Parameters:"-language=chinese-trad"; Flags: postinstall nowait skipifsilent runascurrentuser; Languages: chinese_trad
|
|||
|
|
|||
|
[UninstallRun]
;Filename: "{app}\DPInst32"; Parameters: "/u ""{app}\driver\huagaousb.inf"" /q /d"; Check: not IsWin64; Flags: runascurrentuser
;Filename: "{app}\DPInst64"; Parameters: "/u ""{app}\driver\huagaousb.inf"" /q /d"; Check: IsWin64; Flags: runascurrentuser
|