mirror of http://192.168.10.5:8099/sane/release
135 lines
5.9 KiB
Plaintext
135 lines
5.9 KiB
Plaintext
|
; 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"
|
|||
|
#define MyAppVersion "4.1032.2022.7281"
|
|||
|
#define MyAppSetupName "HanvonWebSdk_Setup"
|
|||
|
#define MyAppDefSetupDir "HanvonWebSdk"
|
|||
|
#define MyAppPublisher "<22><><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}
|
|||
|
OutputDir=.\
|
|||
|
OutputBaseFilename={#MyAppSetupName}_{#MyAppVersion}
|
|||
|
Compression=lzma
|
|||
|
AppPublisher={#MyAppPublisher}
|
|||
|
SolidCompression=yes
|
|||
|
UninstallIconFile=uninstall.ico
|
|||
|
SetupIconFile=HanvonWebSdk.ico
|
|||
|
LicenseFile=HanvonWebSdk_License.txt
|
|||
|
|
|||
|
[Languages]
|
|||
|
Name: "zn"; MessagesFile: "compiler:Languages/Chinese.isl"
|
|||
|
|
|||
|
[Files]
|
|||
|
|
|||
|
; app
|
|||
|
Source: ".\HanvonWebSdk.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
|
|||
|
Source: "..\IsTask.dll"; DestDir: "{app}\"; Flags: ignoreversion
|
|||
|
|
|||
|
Source: "..\..\x86\Release\HWWebService.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
|
|||
|
|
|||
|
Source: "..\..\x86\Release\HWBase.dll"; DestDir: "{app}\"; Flags: ignoreversion
|
|||
|
Source: "..\..\x86\Release\HWImgFmt.dll"; DestDir: "{app}\"; Flags: ignoreversion
|
|||
|
Source: "..\..\x86\Release\HWImgProc.dll"; DestDir: "{app}\"; Flags: ignoreversion
|
|||
|
Source: "..\..\x86\OEM\hanvon\sane.dll"; DestDir: "{app}\"; Flags: ignoreversion
|
|||
|
Source: "..\..\x86\OEM\hanvon\scanner.dll"; DestDir: "{app}\"; Flags: ignoreversion
|
|||
|
|
|||
|
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
|
|||
|
|
|||
|
|
|||
|
[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\HanvonWebSdk"; ValueType: string; ValueName: "AppDirectory"; ValueData: "{app}"; Flags: uninsdeletekey
|
|||
|
Root: HKLM; Subkey: "Software\HanvonWebSdk"; ValueType: string; ValueName: "Application"; ValueData: "{app}\HWWebService.exe"; Flags: uninsdeletekey
|
|||
|
Root: HKLM; Subkey: "Software\HanvonWebSdk"; ValueType: string; ValueName: "AppVersion"; ValueData: "{#MyAppVersion}"; Flags: uninsdeletekey
|
|||
|
Root: HKLM; Subkey: "SOFTWARE\Microsoft\Windows\CurrentVersion\Run"; ValueType: string; ValueName: "HWWebService"; ValueData: "{app}\HWWebService.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('HWWebService.exe', false) then
|
|||
|
begin
|
|||
|
KillTaskU('HWWebService.exe');
|
|||
|
Result:= true;
|
|||
|
end
|
|||
|
else
|
|||
|
Result:= true;
|
|||
|
UnloadDll(ExpandConstant('{app}/ISTask.dll'));
|
|||
|
end;
|
|||
|
|
|||
|
function SetUninstallIcon(iconPath:string): Boolean;
|
|||
|
var
|
|||
|
InstalledVersion,SubKeyName: String;
|
|||
|
begin
|
|||
|
if (IsWin64()) then begin
|
|||
|
SubKeyName := 'Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{A3F8F136-CE97-4B09-AB55-A0CCD825C09A}_is1';
|
|||
|
RegWriteStringValue(HKLM64,SubKeyName,'DisplayIcon',iconPath);
|
|||
|
end else begin
|
|||
|
SubKeyName := 'Software\Microsoft\Windows\CurrentVersion\Uninstall\{A3F8F136-CE97-4B09-AB55-A0CCD825C09A}_is1';
|
|||
|
RegWriteStringValue(HKLM,SubKeyName,'DisplayIcon',iconPath);
|
|||
|
end;
|
|||
|
end;
|
|||
|
|
|||
|
procedure CurPageChanged(CurPageID: Integer);
|
|||
|
begin
|
|||
|
if CurPageID = wpFinished then
|
|||
|
begin
|
|||
|
SetUninstallIcon(ExpandConstant('{app}\HanvonWebSdk.ico'));
|
|||
|
end;
|
|||
|
end;
|
|||
|
|
|||
|
procedure CurUninstallStepChanged(CurUninstallStep:TUninstallStep);
|
|||
|
begin
|
|||
|
if CurUninstallStep = usDone then
|
|||
|
begin
|
|||
|
DelTree(ExpandConstant('{app}'), True, True, True);
|
|||
|
end;
|
|||
|
end;
|
|||
|
|
|||
|
[Run]
|
|||
|
Filename: "{app}\HWWebService.exe"; Description: "{cm:LaunchProgram, {#MyAppName}}"; Flags: nowait
|