华高app windows打包工具支持多语言版本

This commit is contained in:
luoliangyi 2023-01-18 18:21:39 +08:00
parent b27d316b01
commit a5b4bac90c
3 changed files with 361 additions and 17 deletions

View File

@ -0,0 +1,165 @@
請務必認真閱讀和理解本《軟件許可使用協議》(以下簡稱《協議》)中規定的所有權利和限制。 除非您接受本《協議》條款,否則您無權下載、安裝或使用本”軟件”及其相關服務。 您一旦安裝、複製、下載、訪問或以其它管道使用本軟體產品,將視為對本《協議》的接受,即表示您同意接受本《協議》各項條款的約束。 如果您不同意本《協議》中的條款,請不要安裝、複製或使用本軟件。
1.權利聲明
本”軟件”的一切知識產權,以及與”軟件”相關的所有資訊內容,包括但不限於:文字表述及其組合、圖標、圖飾、影像、圖表、色彩、介面設計、版面框架、有關資料、附加程式、印刷資料或電子文檔等均為作者所有,受著作權法和國際著作權條約以及其他知識產權法律法規的保護。
2.許可範圍
2.1下載、安裝和使用:本軟件為免費軟件,用戶可以非商業性、無限制數量地下載、安裝及使用本軟件。
2.2複製、分發和傳播:用戶可以非商業性、無限制數量地複製、分發和傳播本軟體產品。 但必須保證每一份複製、分發和傳播都是完整和真實的,包括所有有關本軟體產品的軟件、電子文檔,版權和商標,亦包括本協定。
3.權利限制
3.1禁止反向工程、反向編譯和反向彙編用戶不得對本軟體產品進行反向工程Reverse Engineer、反向編譯Decompile或反向彙編Disassemble同時不得改動編譯在程式檔案內部的任何資源。 除法律、法規明文規定允許上述活動外,用戶必須遵守此協定限制。
3.2組件分割:本軟體產品是作為一個單一產品而被授予許可使用,用戶不得將各個部分分開用於任何目的。
3.3個別授權:如需進行商業性的銷售、複製、分發,包括但不限於軟體銷售、預裝、捆綁等,必須獲得作者的授權和許可。
3.4保留權利:本協定未明示授權的其他一切權利仍歸作者所有,用戶使用其他權利時必須獲得作者的書面同意。
4.用戶使用須知
4.1本軟件提供以定時關機為代表的計畫任務功能:多種定時管道執行關機/註銷/重啓/鎖定案頭/待機/打開文件或URL/複合任務,立即關機/註銷/重啓/鎖定案頭/待機,自動同步網絡標準時間,方便的計畫任務工具等功能。
4.2本軟件僅適用於Windows XP/Vista/7/8/10/11作業系統軟件可隨作業系統啟動而自動運行以便隨時提供所有功能服務並减少回應時間。 如果用戶在安裝本軟件後因任何原因欲放弃使用,可删除本軟件。
4.3本軟件由作者提供產品支持。
4.4軟件的修改和陞級:作者保留為用戶提供本軟件的修改、升級版本的權利。
4.5本軟件不含有任何旨在破壞用戶電腦數據和獲取用戶隱私資訊的惡意程式碼,不含有任何跟踪、監視用戶電腦的功能程式碼,不會監控用戶網上、網下的行為,不會收集用戶使用其它軟體、文檔等個人資訊,不會洩漏用戶隱私。
4.6用戶應在遵守法律及本協定的前提下使用本軟件。 用戶無權實施包括但不限於下列行為:
4.6.1不得删除或者改變本軟件上的所有權利管理電子資訊;
4.6.2不得故意避開或者破壞著作權人為保護本軟件著作權而採取的科技措施;
4.6.3用戶不得利用本軟件誤導、欺騙他人;
4.6.4違反國家規定,對電腦資訊系統功能進行删除、修改、新增、干擾,造成電腦資訊系統不能正常運行,
4.6.5未經允許,進入電腦資訊網路或者使用電腦資訊網路資源
4.6.6未經允許,對電腦資訊網路功能進行删除、修改或者新增的;
4.6.7未經允許,對電腦資訊網路中存儲、處理或者傳輸的數據和應用程序進行删除、修改或者新增;
4.6.8破壞本軟件系統或網站的正常運行,故意傳播電腦病毒等破壞性程式;
4.6.9其他任何危害電腦資訊網路安全的。
4.7對於從非作者指定網站下載的本軟體產品以及從非作者發行的介質上獲得的本軟體產品,作者無法保證該軟件是否感染電腦病毒、是否隱藏有偽裝的特洛伊木馬程式或者駭客軟體,使用此類軟件,將可能導致不可預測的風險,建議用戶不要輕易下載、安裝、使用, 作者不承擔任何由此產生的一切法律責任。
4.7.1不得使用本軟體發佈違反國家法律的非法廣告資訊,如色情,賭博等,其造成的一切後果與本作者無關,請自覺營造和諧良性的網路行銷環境。 違法行為一經發現,本作者有權終止服務並追究法律責任。
4.8隱私權保護:為了更好地改進軟件和服務,在用戶啟動本軟件時,本軟件會向作者服務器報告軟件所在電腦的唯一標識,具體報告方法為訪問服務器的一個頁面,服務器根據該頁面的被訪問次數統計軟體使用次數。 作者不會將此數據與用戶的個人身份資訊相關聯。
5.免責與責任限制
5.1本軟件經過詳細的測試,但不能保證與所有的軟硬體系統完全相容,不能保證本軟件完全沒有錯誤。 如果出現不相容及軟件錯誤的情况,用戶可登入軟件官網論壇將情況報告作者,獲得技術支援。 如果無法解决相容性問題,用戶可以删除本軟件。
5.2使用本軟體產品風險由用戶自行承擔,在適用法律允許的最大範圍內,對因使用或不能使用本軟件所產生的損害及風險,包括但不限於直接或間接的個人損害、商業贏利的喪失、貿易中斷、商業資訊的遺失或任何其它經濟損失,作者不承擔任何責任。
5.3對於因電信系統或互聯網網路故障、電腦故障或病毒、資訊損壞或遺失、電腦系統問題或其它任何不可抗力原因而產生損失,作者不承擔任何責任。
5.4用戶違反本協議規定,對作者公司造成損害的。 作者有權採取包括但不限於中斷使用許可、停止提供服務、限制使用、法律追究等措施。
6 . 法律及爭議解决
6.1本協定適用中華人民共和國法律。
6.2因本協定引起的或與本協定有關的任何爭議,各方應友好協商解决; 協商不成的,任何一方均可將有關爭議提交至鄭州仲裁委員會並按照其届時有效的仲裁規則仲裁; 仲裁裁决是終局的,對各方均有約束力。
7.其他條款
7.1如果本協定中的任何條款無論因何種原因完全或部分無效或不具有執行力,或違反任何適用的法律,則該條款被視為删除,但本協定的其餘條款仍應有效並且有約束力。
7.2作者有權根據有關法律、法規的變化以及公司經營狀況和經營策略的調整等修改本協定。 修改後的協定會隨附於新版本軟件。 當發生有關爭議時,以最新的協定文本為准。 如果不同意改動的內容,用戶可以自行删除本軟件。 如果用戶繼續使用本軟件,則視為您接受本協定的變動。
7.3本協定的一切解釋權與修改權歸作者。

View File

@ -0,0 +1,165 @@
Please carefully read and understand all rights and restrictions specified in the Software License and Use Agreement (hereinafter referred to as the Agreement). Unless you accept the terms of this Agreement, you have no right to download, install or use the Software and its related services. Once you install, copy, download, access or otherwise use this software product, it will be deemed as your acceptance of this Agreement, which means that you agree to be bound by the terms of this Agreement. If you disagree with the terms of this Agreement, please do not install, copy or use this software.
1. Statement of rights
All intellectual property rights of the Software and all information related to the Software, including but not limited to: text expression and its combination, icons, decorations, images, diagrams, colors, interface design, layout framework, relevant data, additional programs, printed materials or electronic documents, are owned by the author and protected by copyright law, international copyright treaties and other intellectual property laws and regulations.
2. Scope of license
2.1 Download, installation and use: This software is free of charge. Users can download, install and use this software in a non-commercial and unlimited amount.
2.2 Copy, distribution and dissemination: Users can copy, distribute and disseminate this software product in a non-commercial and unlimited amount. However, it is necessary to ensure that each copy, distribution and dissemination is complete and true, including all software, electronic documents, copyrights and trademarks related to the software product, as well as this agreement.
3. Limitation of rights
3.1 Prohibit reverse engineering, reverse compilation and reverse assembly: The user shall not reverse engineer, decompile or disassemble the software product, and shall not change any resources compiled in the program file. In addition to the above activities explicitly permitted by laws and regulations, users must comply with the restrictions of this agreement.
3.2 Component segmentation: This software product is licensed as a single product, and users cannot use each part separately for any purpose.
3.3 Individual authorization: if it is necessary to conduct commercial sales, copying, distribution, including but not limited to software sales, pre-installation, bundling, etc., it must obtain the authorization and permission of the author.
3.4 Reserved rights: All other rights not expressly authorized in this agreement still belong to the author, and users must obtain the written consent of the author when using other rights.
4. User instructions
4.1 The software provides scheduled task functions represented by scheduled shutdown: multiple scheduled methods to execute shutdown/logout/restart/lock desktop/standby/open file (or URL)/composite task, immediate shutdown/logout/restart/lock desktop/standby, automatic synchronization of network standard time, convenient task planning tools and other functions.
4.2 This software is only applicable to Windows XP/Vista/7/8/10/11 operating system. The software can automatically run with the startup of the operating system to provide all functional services at any time and reduce response time. If the user wants to give up using the software for any reason after installing it, he can delete the software.
4.3 The software is supported by the author.
4.4 Software modification and upgrade: The author reserves the right to provide users with modified and upgraded versions of the software.
4.5 This software does not contain any malicious code aimed at destroying user's computer data and obtaining user's privacy information, does not contain any function code for tracking and monitoring user's computer, does not monitor user's online and offline behavior, does not collect user's personal information such as using other software and files, and does not disclose user's privacy.
4.6 Users shall use the software on the premise of complying with laws and this agreement. The user has no right to perform the following actions, including but not limited to:
4.6.1 All rights management electronic information on the software shall not be deleted or changed;
4.6.2 The technical measures taken by the copyright to protect the software copyright shall not be deliberately avoided or damaged;
4.6.3 Users shall not use this software to mislead or deceive others;
4.6.4 In violation of national regulations, the computer information system functions are deleted, modified, added or interfered with, resulting in the computer information system not operating normally,
4.6.5 Enter computer information network or use computer information network resources without permission
4.6.6 Deleting, modifying or adding computer information network functions without permission;
4.6.7 Delete, modify or add the data and application programs stored, processed or transmitted in the computer information network without permission;
4.6.8 Destroy the normal operation of the software system or website, deliberately spread destructive programs such as computer viruses;
4.6.9 Anything else endangers the security of computer information network.
4.7 For the software product downloaded from the site not designated by the author and obtained from the media not issued by the author, the author cannot guarantee whether the software is infected with computer viruses, whether there are disguised Trojan Horse programs or hacker software hidden, and the use of such software may lead to unpredictable risks. Users are advised not to download, install and use it easily, The author does not assume any legal liability arising therefrom.
4.7.1 Do not use this software to publish illegal advertising information that violates national laws, such as pornography, gambling, etc. All the consequences caused by it have nothing to do with the author. Please consciously create a harmonious and benign network marketing environment. Once an illegal act is found, the author has the right to terminate the service and investigate the legal responsibility.
4.8 Privacy protection: In order to better improve the software and services, when the user starts the software, the software will report the unique identification of the computer where the software is located to the author's server. The specific reporting method is to visit a page of the server, and the server will count the number of times the software is used according to the number of times the page is visited. The author will not associate this data with the user's personally identifiable information.
5. Disclaimer and limitation of liability
5.1 The software has been tested in detail, but it cannot be guaranteed that it is fully compatible with all software and hardware systems, and that the software is completely error-free. In case of incompatibility and software error, users can log in to the software official website forum and report the situation to the author for technical support. If the compatibility problem cannot be solved, the user can delete the software.
5.2 The risk of using this software product shall be borne by the user. To the maximum extent permitted by applicable laws, the author shall not be liable for any damage and risk arising from using or not using this software, including but not limited to direct or indirect personal damage, loss of business profits, trade interruption, loss of business information or any other economic loss.
5.3 The author shall not be liable for any loss caused by telecommunication system or internet network failure, computer failure or virus, information damage or loss, computer system problem or any other force majeure.
5.4 The user violates the provisions of this agreement and causes damage to the author company. The author has the right to take measures including but not limited to interruption of use license, suspension of service provision, restriction of use, legal investigation, etc.
6 . Law and dispute resolution
6.1 This agreement is governed by the laws of the People's Republic of China.
6.2 Any dispute arising out of or in connection with this Agreement shall be settled through friendly negotiation by all parties; If the negotiation fails, either party may submit the relevant dispute to Zhengzhou Arbitration Commission for arbitration in accordance with its then effective arbitration rules; The arbitration award is final and binding on all parties.
7. Other terms
7.1 If any provision of this Agreement is invalid or unenforceable in whole or in part for any reason, or violates any applicable law, it shall be deemed to be deleted, but the remaining provisions of this Agreement shall remain valid and binding.
7.2 The author has the right to amend this agreement in accordance with the changes in relevant laws and regulations, as well as the adjustment of the company's business status and business strategy. The modified agreement will be attached to the new version of the software. In case of any dispute, the latest agreement text shall prevail. If you do not agree to change the content, you can delete the software by yourself. If the user continues to use the software, it is deemed that you accept the change of this agreement.
7.3 All rights of interpretation and modification of this agreement belong to the author.

View File

@ -1,26 +1,25 @@
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
#define MyAppName "华高扫描软件"
#define MyAppVersion "4.37.10100.23004"
#define MyAppSetupName "HuaGoScan_App_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}
AppName={cm:MyAppName}
AppVerName={cm:MyAppName}
AppVersion={#MyAppVersion}
DefaultDirName={pf}\{#MyAppDefSetupDir}
DefaultGroupName={#MyAppName}
DefaultGroupName={cm:MyAppName}
VersionInfoVersion={#MyAppVersion}
OutputDir=..\..\package
OutputBaseFilename={#MyAppSetupName}_{#MyAppVersion}
Compression=lzma
AppPublisher={#MyAppPublisher}
AppPublisher={cm:MyAppPublisher}
SolidCompression=no
UninstallIconFile=uninstall.ico
SetupIconFile=HuaGoScan_App.ico
@ -29,12 +28,25 @@ AlwaysShowComponentsList=true
ArchitecturesInstallIn64BitMode=x64
PrivilegesRequired=admin
DisableWelcomePage=no
ShowLanguageDialog=yes
ShowUndisplayableLanguages=yes
[Languages]
Name: "zn"; MessagesFile: "compiler:Languages/ChineseSimp.isl"
[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.MyAppName=Huago Scanning Software
english.MyAppPublisher=Ningbo Huagao Information Technology Co., Ltd
chinese_simp.MyAppName=华高扫描软件
chinese_simp.MyAppPublisher=宁波华高信息科技有限公司
chinese_trad.MyAppName=華高掃描軟件
chinese_trad.MyAppPublisher=寧波華高資訊科技有限公司
[Components]
Name: "Upgrade"; Description: "在线升级功能" ; Types: Full
Name: "Upgrade"; Description: "Upgrade" ; Types: Full; Languages: english
Name: "Upgrade"; Description: "在线升级功能" ; Types: Full; Languages: chinese_simp
Name: "Upgrade"; Description: "線上升級功能" ; 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
@ -181,10 +193,14 @@ Source: "..\..\x64\Release\HGCheckNewApp.exe"; DestDir: "{app}\"; Flags: ignore
[INI]
[Icons]
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\HuaGoScan.exe"
Name: "{group}\{#MyAppName}"; Filename: "{app}\HuaGoScan.exe"
Name: "{group}\华高扫描软件帮助文档"; Filename: "{app}\HuaGoScan_App_Help_manual.pdf"
Name: "{group}\卸载"; Filename: "{uninstallexe}";
Name: "{commondesktop}\{cm:MyAppName}"; Filename: "{app}\HuaGoScan.exe"
Name: "{group}\{cm:MyAppName}"; Filename: "{app}\HuaGoScan.exe"
Name: "{group}\Huago scanning software help document"; Filename: "{app}\HuaGoScan_App_Help_manual.pdf"; Languages: english
Name: "{group}\华高扫描软件帮助文档"; Filename: "{app}\HuaGoScan_App_Help_manual.pdf"; Languages: chinese_simp
Name: "{group}\華高掃描軟件幫助文檔"; Filename: "{app}\HuaGoScan_App_Help_manual.pdf"; Languages: chinese_trad
Name: "{group}\Uninstall"; Filename: "{uninstallexe}"; Languages: english
Name: "{group}\卸载"; Filename: "{uninstallexe}"; Languages: chinese_simp
Name: "{group}\卸載"; Filename: "{uninstallexe}"; Languages: chinese_trad
[Registry]
Root: HKLM; Subkey: "Software\HuaGoScan"; ValueType: string; ValueName: "AppDirectory"; ValueData: "{app}"; Flags: uninsdeletekey
@ -202,7 +218,6 @@ Root: HKLM; Subkey: "Software\WOW6432Node\HuaGoScan"; ValueType: string; ValueNa
var
globalInstallPath: String;
//初始化时把路径设置到编辑框
procedure InitializeWizard;
begin
WizardForm.DirEdit.Text := globalInstallPath; end;
@ -333,7 +348,6 @@ begin
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 -desc=install/upgrade"; Components: Upgrade; Flags: runascurrentuser
Filename: "{app}\HuaGoScan.exe"; Description: "{cm:LaunchProgram, {#MyAppName}}"; Flags: postinstall nowait skipifsilent runascurrentuser
Filename: "{app}\HuaGoScan.exe"; Description: "{cm:LaunchProgram, {cm:MyAppName}}"; Flags: postinstall nowait skipifsilent runascurrentuser
[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
[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