; Inno Setup Script for Teacher-Student Matching System ; Version 1.0 #define MyAppName "Teacher Student Matcher" #define MyAppVersion "1.0" #define MyAppPublisher "Teacher Student Matcher" #define MyAppExeName "main.exe" #define MyAppURL "https://github.com/teacher-student-matcher" [Setup] ; Application Info AppId={{8E5F2D1A-4C6B-4F3E-9A1D-7B8E2F5C4A3D} AppName={#MyAppName} AppVersion={#MyAppVersion} AppPublisher={#MyAppPublisher} AppPublisherURL={#MyAppURL} AppSupportURL={#MyAppURL} AppUpdatesURL={#MyAppURL} ; Install Directory DefaultDirName={autopf}\{#MyAppName} DefaultGroupName={#MyAppName} DisableProgramGroupPage=yes ; Output Settings OutputDir=dist\output OutputBaseFilename=TeacherStudentMatcher_Setup_v{#MyAppVersion} Compression=lzma2 SolidCompression=yes ; Windows Version MinVersion=10.0 ; UI Settings WizardStyle=modern WizardResizable=no ; 64-bit ArchitecturesAllowed=x64compatible ArchitecturesInstallIn64BitMode=x64compatible [Languages] Name: "english"; MessagesFile: "compiler:Default.isl" Name: "japanese"; MessagesFile: "compiler:Languages\Japanese.isl" [Tasks] Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked [Files] Source: "dist\main.exe"; DestDir: "{app}"; Flags: ignoreversion Source: "dist\老师信息示例.xlsx"; DestDir: "{app}"; Flags: ignoreversion Source: "dist\学生信息示例.xlsx"; DestDir: "{app}"; Flags: ignoreversion [Icons] Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}" Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}" Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon [Run] Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent [UninstallDelete] Type: filesandordirs; Name: "{app}" [Code] function InitializeSetup(): Boolean; begin Result := True; end;