Add Inno Setup

This commit is contained in:
Linloir 2022-10-19 12:03:19 +08:00
parent 273f93d3a1
commit 36769204a9
No known key found for this signature in database
GPG Key ID: 58EEB209A0F2C366
2 changed files with 63 additions and 2 deletions

61
inno_setup.iss Normal file
View File

@ -0,0 +1,61 @@
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
#define MyAppName "LChatClient"
#define MyAppVersion "1.0"
#define MyAppPublisher "Linloir"
#define MyAppExeName "LChatClient.exe"
#define MyAppComp "com.linloir"
[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={{45C34500-34D4-4E59-A222-5BD12A410F98}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
DefaultDirName={autopf}\{#MyAppName}
DisableProgramGroupPage=yes
; Uncomment the following line to run in non administrative install mode (install for current user only.)
;PrivilegesRequired=lowest
PrivilegesRequiredOverridesAllowed=dialog
OutputDir=C:\Users\Linloir\Desktop\lchatclientcompiler
OutputBaseFilename=mysetup
Compression=lzma
SolidCompression=yes
WizardStyle=modern
[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
[Files]
Source: "E:\Repositories\CollegeProjects\tcp_client\build\windows\runner\Release\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\Repositories\CollegeProjects\tcp_client\build\windows\runner\Release\data\*"; DestDir: "{app}\data"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "E:\Repositories\CollegeProjects\tcp_client\build\windows\runner\Release\flutter_windows.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\Repositories\CollegeProjects\tcp_client\build\windows\runner\Release\window_manager_plugin.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\Repositories\CollegeProjects\tcp_client\build\windows\runner\Release\screen_retriever_plugin.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\Repositories\CollegeProjects\tcp_client\build\windows\runner\Release\LChatClient.exe"; DestDir: "{app}"; Flags: ignoreversion
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
[Dirs]
Name: "{userappdata}\{#MyAppComp}\{#MyAppName}"; Flags: uninsalwaysuninstall
Name: "{userdocs}\{#MyAppName}"; Flags: uninsalwaysuninstall
[Icons]
Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
[UninstallDelete]
Type: filesandordirs; Name: "{userdocs}\{#MyAppName}\*"
Type: filesandordirs; Name: "{userdocs}\{#MyAppName}"
Type: filesandordirs; Name: "{userappdata}\{#MyAppComp}\{#MyAppName}\*"
Type: filesandordirs; Name: "{userappdata}\{#MyAppComp}\{#MyAppName}"
Type: dirifempty; Name: "{userappdata}\{#MyAppComp}"
[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent

View File

@ -94,8 +94,8 @@ BEGIN
VALUE "FileVersion", VERSION_AS_STRING "\0"
VALUE "InternalName", "LChatClient" "\0"
VALUE "LegalCopyright", "Copyright (C) 2022 com.linloir. All rights reserved." "\0"
VALUE "OriginalFilename", "LCatClient.exe" "\0"
VALUE "ProductName", "LCatClient" "\0"
VALUE "OriginalFilename", "LChatClient.exe" "\0"
VALUE "ProductName", "LChatClient" "\0"
VALUE "ProductVersion", VERSION_AS_STRING "\0"
END
END