2022-07-28 06:25:15 +00:00
|
|
|
|
; Script generated by the Inno Setup Script Wizard.
|
|
|
|
|
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
|
|
|
|
|
#define MyAppName "<22><><EFBFBD><EFBFBD>WEBSDK"
|
2023-02-23 08:07:23 +00:00
|
|
|
|
#define MyAppVersion GetFileVersion('..\..\x86\OEM\huagao\sane.dll')
|
2022-07-28 06:25:15 +00:00
|
|
|
|
#define MyAppSetupName "HuaGoWebSdk_Setup"
|
|
|
|
|
#define MyAppDefSetupDir "HuaGoWebSdk"
|
|
|
|
|
#define MyAppPublisher "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD>Ƽ<EFBFBD><C6BC><EFBFBD><EFBFBD><EFBFBD>˾"
|
|
|
|
|
|
|
|
|
|
[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={{A3F8F136-CE97-4B09-AB55-A0CCD825C09A}
|
|
|
|
|
AppName={#MyAppName}
|
|
|
|
|
AppVerName={#MyAppName}
|
|
|
|
|
AppVersion={#MyAppVersion}
|
|
|
|
|
DefaultDirName={pf}\{#MyAppDefSetupDir}
|
|
|
|
|
DefaultGroupName={#MyAppName}
|
|
|
|
|
VersionInfoVersion={#MyAppVersion}
|
2022-09-24 02:41:29 +00:00
|
|
|
|
OutputDir=..\..\package
|
2022-07-28 06:25:15 +00:00
|
|
|
|
OutputBaseFilename={#MyAppSetupName}_{#MyAppVersion}
|
|
|
|
|
Compression=lzma
|
|
|
|
|
AppPublisher={#MyAppPublisher}
|
|
|
|
|
SolidCompression=yes
|
|
|
|
|
UninstallIconFile=uninstall.ico
|
|
|
|
|
SetupIconFile=HuaGoWebSdk.ico
|
|
|
|
|
LicenseFile=HuaGoWebSdk_License.txt
|
2022-08-19 07:17:32 +00:00
|
|
|
|
PrivilegesRequired=admin
|
2022-09-24 01:32:16 +00:00
|
|
|
|
DisableWelcomePage=no
|
2022-07-28 06:25:15 +00:00
|
|
|
|
|
|
|
|
|
[Languages]
|
2022-09-22 03:38:10 +00:00
|
|
|
|
Name: "zn"; MessagesFile: "compiler:Languages/ChineseSimp.isl"
|
2022-07-28 06:25:15 +00:00
|
|
|
|
|
|
|
|
|
[Files]
|
|
|
|
|
|
|
|
|
|
; app
|
|
|
|
|
Source: ".\HuaGoWebSdk.ico"; DestDir: "{app}\"; Flags: ignoreversion
|
|
|
|
|
|
|
|
|
|
Source: "..\..\x86\Release\hwusbdev.key"; DestDir: "{app}\"; Flags: ignoreversion
|
|
|
|
|
Source: "..\..\x86\Release\<5C><><EFBFBD><EFBFBD>.ttf"; DestDir: "{app}\"; Flags: ignoreversion
|
2022-08-08 04:18:45 +00:00
|
|
|
|
Source: "..\..\x86\Release\IsTask.dll"; DestDir: "{app}\"; Flags: ignoreversion
|
2022-07-28 06:25:15 +00:00
|
|
|
|
|
|
|
|
|
Source: "..\..\x86\Release\HGWebService.exe"; DestDir: "{app}\"; Flags: ignoreversion
|
|
|
|
|
Source: "..\..\..\..\code_app\doc\webservice\<5C>°<EFBFBD>websdk<64>ӿ<EFBFBD>˵<EFBFBD><CBB5>.doc"; DestDir: "{app}\doc\"; Flags: ignoreversion
|
|
|
|
|
Source: "..\..\..\..\code_app\test\webservice\webdemoproject\*"; DestDir: "{app}\demo\"; Flags: ignoreversion createallsubdirs recursesubdirs
|
|
|
|
|
|
2023-02-28 09:05:29 +00:00
|
|
|
|
Source: "..\..\x86\Release\tessdata\*"; DestDir: "{app}\tessdata\"; Flags: ignoreversion createallsubdirs recursesubdirs
|
2022-07-28 06:25:15 +00:00
|
|
|
|
Source: "..\..\x86\Release\HGBase.dll"; DestDir: "{app}\"; Flags: ignoreversion
|
|
|
|
|
Source: "..\..\x86\Release\HGImgFmt.dll"; DestDir: "{app}\"; Flags: ignoreversion
|
|
|
|
|
Source: "..\..\x86\Release\HGImgProc.dll"; DestDir: "{app}\"; Flags: ignoreversion
|
|
|
|
|
Source: "..\..\x86\OEM\huagao\sane.dll"; DestDir: "{app}\"; Flags: ignoreversion
|
|
|
|
|
Source: "..\..\x86\OEM\huagao\scanner.dll"; DestDir: "{app}\"; Flags: ignoreversion
|
2023-02-10 09:29:43 +00:00
|
|
|
|
Source: "..\..\x86\OEM\huagao\lang.dll"; DestDir: "{app}\"; Flags: ignoreversion;
|
2023-01-31 03:33:17 +00:00
|
|
|
|
Source: "..\..\..\lang\*"; DestDir: "{app}\lang\"; Flags: ignoreversion;
|
2022-07-28 06:25:15 +00:00
|
|
|
|
|
|
|
|
|
Source: "..\..\x86\Release\cnocr.dll"; DestDir: "{app}\"; Flags: ignoreversion
|
|
|
|
|
Source: "..\..\x86\Release\doc_seg.dll"; DestDir: "{app}\"; Flags: ignoreversion
|
|
|
|
|
Source: "..\..\x86\Release\ExportFile.dll"; DestDir: "{app}\"; Flags: ignoreversion
|
|
|
|
|
Source: "..\..\x86\Release\FormEx.dll"; DestDir: "{app}\"; Flags: ignoreversion
|
|
|
|
|
Source: "..\..\x86\Release\GetPdf.dll"; DestDir: "{app}\"; Flags: ignoreversion
|
|
|
|
|
Source: "..\..\x86\Release\GetRtf.dll"; DestDir: "{app}\"; Flags: ignoreversion
|
|
|
|
|
Source: "..\..\x86\Release\GetXls.dll"; DestDir: "{app}\"; Flags: ignoreversion
|
|
|
|
|
Source: "..\..\x86\Release\hanwangOCRdetect.dll"; DestDir: "{app}\"; Flags: ignoreversion
|
|
|
|
|
Source: "..\..\x86\Release\hasp_windows_113819.dll"; DestDir: "{app}\"; Flags: ignoreversion
|
|
|
|
|
Source: "..\..\x86\Release\HwOcrSdk.dll"; DestDir: "{app}\"; Flags: ignoreversion
|
|
|
|
|
Source: "..\..\x86\Release\libmupdf.dll"; DestDir: "{app}\"; Flags: ignoreversion
|
|
|
|
|
Source: "..\..\x86\Release\libzip.org.dll"; DestDir: "{app}\"; Flags: ignoreversion
|
|
|
|
|
Source: "..\..\x86\Release\mp30.dll"; DestDir: "{app}\"; Flags: ignoreversion
|
|
|
|
|
Source: "..\..\x86\Release\ofd.dll"; DestDir: "{app}\"; Flags: ignoreversion
|
|
|
|
|
Source: "..\..\x86\Release\pdflib.dll"; DestDir: "{app}\"; Flags: ignoreversion
|
|
|
|
|
Source: "..\..\x86\Release\PDFParse.dll"; DestDir: "{app}\"; Flags: ignoreversion
|
|
|
|
|
Source: "..\..\x86\Release\tinyxml2.dll"; DestDir: "{app}\"; Flags: ignoreversion
|
|
|
|
|
Source: "..\..\x86\Release\zlib.dll"; DestDir: "{app}\"; Flags: ignoreversion
|
|
|
|
|
|
2022-09-22 03:34:43 +00:00
|
|
|
|
Source: "..\..\x86\Release\msvcp140.dll"; DestDir: "{app}\"; Flags: ignoreversion;
|
|
|
|
|
Source: "..\..\x86\Release\vcruntime140.dll"; DestDir: "{app}\"; Flags: ignoreversion;
|
|
|
|
|
Source: "..\..\x86\Release\concrt140.dll"; DestDir: "{app}\"; Flags: ignoreversion;
|
|
|
|
|
|
2022-08-09 03:09:09 +00:00
|
|
|
|
;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2022-08-11 09:19:31 +00:00
|
|
|
|
Source: "..\..\usb\huagao\huagaousb.inf"; DestDir: "{app}\driver\"; Flags: ignoreversion recursesubdirs;
|
|
|
|
|
Source: "..\..\usb\huagao\huagaousb.cat"; DestDir: "{app}\driver\"; Flags: ignoreversion recursesubdirs;
|
2022-08-09 03:09:09 +00:00
|
|
|
|
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
|
|
|
|
|
|
2022-07-28 06:25:15 +00:00
|
|
|
|
|
|
|
|
|
[INI]
|
|
|
|
|
|
|
|
|
|
[Icons]
|
|
|
|
|
Name: "{group}\<5C><><EFBFBD><EFBFBD>WEBSDK<44>ӿ<EFBFBD><D3BF>ĵ<EFBFBD>"; Filename: "{app}\doc\<5C>°<EFBFBD>websdk<64>ӿ<EFBFBD>˵<EFBFBD><CBB5>.doc"
|
|
|
|
|
Name: "{group}\<5C><><EFBFBD><EFBFBD>WEBSDKʾ<4B><CABE><EFBFBD><EFBFBD>ҳ"; Filename: "{app}\demo\webDemo.html"
|
|
|
|
|
Name: "{group}\{cm:UninstallProgram, {#MyAppName}}"; Filename: "{uninstallexe}";
|
|
|
|
|
|
|
|
|
|
[Registry]
|
|
|
|
|
Root: HKLM; Subkey: "Software\HuaGoWebSdk"; ValueType: string; ValueName: "AppDirectory"; ValueData: "{app}"; Flags: uninsdeletekey
|
|
|
|
|
Root: HKLM; Subkey: "Software\HuaGoWebSdk"; ValueType: string; ValueName: "Application"; ValueData: "{app}\HGWebService.exe"; Flags: uninsdeletekey
|
|
|
|
|
Root: HKLM; Subkey: "Software\HuaGoWebSdk"; ValueType: string; ValueName: "AppVersion"; ValueData: "{#MyAppVersion}"; Flags: uninsdeletekey
|
|
|
|
|
Root: HKLM; Subkey: "SOFTWARE\Microsoft\Windows\CurrentVersion\Run"; ValueType: string; ValueName: "HGWebService"; ValueData: "{app}\HGWebService.exe"
|
|
|
|
|
|
|
|
|
|
[Code]
|
|
|
|
|
|
|
|
|
|
// ж<><D0B6>ǰ<EFBFBD>жϽ<D0B6><CFBD><EFBFBD><EFBFBD>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
function RunTaskU(FileName: string; bFullpath: Boolean): Boolean;
|
|
|
|
|
external 'RunTask@{app}/ISTask.dll stdcall delayload uninstallonly';
|
|
|
|
|
function KillTaskU(ExeFileName: string): Integer;
|
|
|
|
|
external 'KillTask@{app}/ISTask.dll stdcall delayload uninstallonly';
|
|
|
|
|
|
|
|
|
|
function InitializeUninstall(): Boolean;
|
|
|
|
|
begin
|
|
|
|
|
Result:= true;
|
|
|
|
|
if RunTaskU('HGWebService.exe', false) then
|
|
|
|
|
begin
|
|
|
|
|
KillTaskU('HGWebService.exe');
|
|
|
|
|
Result:= true;
|
|
|
|
|
end
|
|
|
|
|
else
|
|
|
|
|
Result:= true;
|
|
|
|
|
UnloadDll(ExpandConstant('{app}/ISTask.dll'));
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
function SetUninstallIcon(iconPath:string): Boolean;
|
|
|
|
|
var
|
|
|
|
|
InstalledVersion,SubKeyName: String;
|
|
|
|
|
begin
|
2022-08-09 02:41:17 +00:00
|
|
|
|
SubKeyName := 'Software\Microsoft\Windows\CurrentVersion\Uninstall\{A3F8F136-CE97-4B09-AB55-A0CCD825C09A}_is1';
|
|
|
|
|
RegWriteStringValue(HKLM,SubKeyName,'DisplayIcon',iconPath);
|
2022-07-28 06:25:15 +00:00
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure CurPageChanged(CurPageID: Integer);
|
|
|
|
|
begin
|
|
|
|
|
if CurPageID = wpFinished then
|
|
|
|
|
begin
|
|
|
|
|
SetUninstallIcon(ExpandConstant('{app}\HuaGoWebSdk.ico'));
|
|
|
|
|
end;
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure CurUninstallStepChanged(CurUninstallStep:TUninstallStep);
|
|
|
|
|
begin
|
|
|
|
|
if CurUninstallStep = usDone then
|
|
|
|
|
begin
|
|
|
|
|
DelTree(ExpandConstant('{app}'), True, True, True);
|
|
|
|
|
end;
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
[Run]
|
2022-09-22 01:20:02 +00:00
|
|
|
|
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}\HGWebService.exe"; Description: "{cm:LaunchProgram, {#MyAppName}}"; Flags: nowait runascurrentuser
|