HGGitLab
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
app
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
luoliangyi
app
Commits
6d963c05
Commit
6d963c05
authored
Apr 18, 2022
by
luoliangyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加app和twain打包脚本
parent
64a4dcb8
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
178 additions
and
0 deletions
+178
-0
release/bin/windows/setup/HuaGoScan_App_Help_manual.pdf
release/bin/windows/setup/HuaGoScan_App_Help_manual.pdf
+0
-0
release/bin/windows/setup/HuagoScanApp_Setup.iss
release/bin/windows/setup/HuagoScanApp_Setup.iss
+108
-0
release/bin/windows/setup/HuagoScanTwain_Setup.iss
release/bin/windows/setup/HuagoScanTwain_Setup.iss
+70
-0
release/bin/windows/setup/logo.ico
release/bin/windows/setup/logo.ico
+0
-0
No files found.
release/bin/windows/setup/HuaGoScan_App_Help_manual.pdf
0 → 100644
View file @
6d963c05
File added
release/bin/windows/setup/HuagoScanApp_Setup.iss
0 → 100644
View file @
6d963c05
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
#define MyAppName "华高扫描仪软件"
#define MyAppVersion "2.0.0.1"
#define MyAppSetupName "HuagoScanApp_Setup"
#define MyAppDefSetupDir "HuagoScan"
#define MyAppPublisher "宁波华高信息科技有限公司"
[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={#MyAppName}
AppVerName={#MyAppName}
AppVersion={#MyAppVersion}
DefaultDirName={pf}\{#MyAppDefSetupDir}
DefaultGroupName={#MyAppName}
VersionInfoVersion={#MyAppVersion}
OutputDir=.\
OutputBaseFilename={#MyAppSetupName}
Compression=lzma
AppPublisher={#MyAppPublisher}
SolidCompression=yes
UninstallIconFile=uninstall.ico
SetupIconFile=logo.ico
LicenseFile=
[Languages]
Name: "zn"; MessagesFile: "compiler:Languages/Chinese.isl"
[Files]
; app
Source: ".\logo.ico"; DestDir: "{app}\"; Flags: ignoreversion
Source: ".\HuaGoScan_App_Help_manual.pdf"; DestDir: "{app}\"; Flags: ignoreversion
Source: "..\x86\iconengines\*"; DestDir: "{app}\iconengines\"; Flags: ignoreversion
Source: "..\x86\imageformats\*"; DestDir: "{app}\imageformats\"; Flags: ignoreversion
Source: "..\x86\platforms\*"; DestDir: "{app}\platforms\"; Flags: ignoreversion
Source: "..\x86\styles\*"; DestDir: "{app}\styles\"; Flags: ignoreversion
Source: "..\x86\translations\*"; DestDir: "{app}\translations\"; Flags: ignoreversion
Source: "..\x86\D3Dcompiler_47.dll"; DestDir: "{app}\"; Flags: ignoreversion
Source: "..\x86\libEGL.dll"; DestDir: "{app}\"; Flags: ignoreversion
Source: "..\x86\libGLESV2.dll"; DestDir: "{app}\"; Flags: ignoreversion
Source: "..\x86\msvcp140.dll"; DestDir: "{app}\"; Flags: ignoreversion
Source: "..\x86\opengl32sw.dll"; DestDir: "{app}\"; Flags: ignoreversion
Source: "..\x86\Qt5Core.dll"; DestDir: "{app}\"; Flags: ignoreversion
Source: "..\x86\Qt5Gui.dll"; DestDir: "{app}\"; Flags: ignoreversion
Source: "..\x86\Qt5Svg.dll"; DestDir: "{app}\"; Flags: ignoreversion
Source: "..\x86\Qt5Widgets.dll"; DestDir: "{app}\"; Flags: ignoreversion
Source: "..\x86\vcruntime140.dll"; DestDir: "{app}\"; Flags: ignoreversion
Source: "..\x86\HGBase.dll"; DestDir: "{app}\"; Flags: ignoreversion
Source: "..\x86\HGImgFmt.dll"; DestDir: "{app}\"; Flags: ignoreversion
Source: "..\x86\HGImgProc.dll"; DestDir: "{app}\"; Flags: ignoreversion
Source: "..\x86\hgsane.dll"; DestDir: "{app}\"; Flags: ignoreversion
Source: "..\x86\hgscanner.dll"; DestDir: "{app}\"; Flags: ignoreversion
Source: "..\x86\HGScanner.exe"; DestDir: "{app}\"; Flags: ignoreversion
Source: "..\x86\libmupdf.dll"; DestDir: "{app}\"; Flags: ignoreversion
Source: "..\x86\pdflib.dll"; DestDir: "{app}\"; Flags: ignoreversion
[INI]
[Icons]
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\HGScanner.exe"
Name: "{group}\{#MyAppName}"; Filename: "{app}\HGScanner.exe"
Name: "{group}\华高扫描仪软件帮助文档"; Filename: "{app}\HuaGoScan_App_Help_manual.pdf"
Name: "{group}\{cm:UninstallProgram, {#MyAppName}}"; Filename: "{uninstallexe}";
[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}\HGScanner.exe"; Flags: uninsdeletekey
[Code]
function SetUninstallIcon(iconPath:string): Boolean;
var
InstalledVersion,SubKeyName: String;
begin
if (IsWin64()) then begin
SubKeyName := 'Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{7076DC53-5C2F-4216-9783-2A6F954FEB3E}_is1';
RegWriteStringValue(HKLM64,SubKeyName,'DisplayIcon',iconPath);
end else begin
SubKeyName := 'Software\Microsoft\Windows\CurrentVersion\Uninstall\{7076DC53-5C2F-4216-9783-2A6F954FEB3E}_is1';
RegWriteStringValue(HKLM,SubKeyName,'DisplayIcon',iconPath);
end;
end;
procedure CurPageChanged(CurPageID: Integer);
begin
if CurPageID = wpFinished then
begin
SetUninstallIcon(ExpandConstant('{app}\logo.ico'));
end;
end;
procedure CurUninstallStepChanged(CurUninstallStep:TUninstallStep);
begin
if CurUninstallStep = usDone then
begin
DelTree(ExpandConstant('{app}'), True, True, True);
end;
end;
[Run]
Filename: "{app}\HGScanner.exe"; Description: "{cm:LaunchProgram, {#MyAppName}}"; Flags: postinstall nowait skipifsilent
\ No newline at end of file
release/bin/windows/setup/HuagoScanTwain_Setup.iss
0 → 100644
View file @
6d963c05
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
#define MyAppName "华高TWAIN"
#define MyAppVersion "2.0.0.1"
#define MyAppSetupName "HuagoScanTwain_Setup"
#define MyAppPublisher "宁波华高信息科技有限公司"
[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={{A69BBD28-5199-4DD9-870B-4738B99104B0}
AppName={#MyAppName}
AppVerName={#MyAppName}
AppVersion={#MyAppVersion}
VersionInfoVersion={#MyAppVersion}
DefaultGroupName={#MyAppName}
DefaultDirName={win}\twain_32\huagoscan\
OutputDir=.\
OutputBaseFilename={#MyAppSetupName}
Compression=lzma
AppPublisher={#MyAppPublisher}
SolidCompression=yes
UninstallIconFile=uninstall.ico
SetupIconFile=logo.ico
LicenseFile=
DisableDirPage=yes
[Languages]
Name: "zn"; MessagesFile: "compiler:Languages/Chinese.isl"
[Files]
; app
Source: ".\logo.ico"; DestDir: "{app}\"; Flags: ignoreversion
; twain
Source: "..\x86\hgsane.dll"; DestDir: "{app}\"; Flags: ignoreversion
Source: "..\x86\hgscanner.dll"; DestDir: "{app}\"; Flags: ignoreversion
Source: "..\x86\huagaotwain.ds"; DestDir: "{app}\"; Flags: ignoreversion
Source: "..\x86\msvcp140.dll"; DestDir: "{app}\"; Flags: ignoreversion
Source: "..\x86\vcruntime140.dll"; DestDir: "{app}\"; Flags: ignoreversion
[INI]
[Icons]
Name: "{group}\{cm:UninstallProgram, {#MyAppName}}"; Filename: "{uninstallexe}";
[Code]
function SetUninstallIcon(iconPath:string): Boolean;
var
InstalledVersion,SubKeyName: String;
begin
if (IsWin64()) then begin
SubKeyName := 'Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{A69BBD28-5199-4DD9-870B-4738B99104B0}_is1';
RegWriteStringValue(HKLM64,SubKeyName,'DisplayIcon',iconPath);
end else begin
SubKeyName := 'Software\Microsoft\Windows\CurrentVersion\Uninstall\{A69BBD28-5199-4DD9-870B-4738B99104B0}_is1';
RegWriteStringValue(HKLM,SubKeyName,'DisplayIcon',iconPath);
end;
end;
procedure CurPageChanged(CurPageID: Integer);
begin
if CurPageID = wpFinished then
begin
SetUninstallIcon(ExpandConstant('{app}\logo.ico'));
end;
end;
\ No newline at end of file
release/bin/windows/setup/logo.ico
0 → 100644
View file @
6d963c05
41.2 KB
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment