; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
#define MyAppName "KNEO X"
#define MyAppVersion "2.0"
#define MyAppPublisher "Innovedus Inc."
#define MyAppURL "https://www.example.com/"
#define MyAppExeName "main.exe"
[Setup]
; 唯一的 AppId，請勿在其他應用程式中重複使用
AppId={{0894596D-D78B-4D8C-97CC-D90FE98E26E0}}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={autopf}\{#MyAppName}
UninstallDisplayIcon={app}\{#MyAppExeName}
; 僅允許在 x64 或 Windows 11 on Arm 上安裝
ArchitecturesAllowed=x64compatible
ArchitecturesInstallIn64BitMode=x64compatible
DisableProgramGroupPage=yes
; 若移除此行則為系統管理員模式安裝 (安裝給所有使用者)
PrivilegesRequired=lowest
OutputBaseFilename=mysetup
SolidCompression=yes
WizardStyle=modern
[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
; 定義配對元件，讓使用者選擇是否安裝預設的 Script 與 Model
[Components]
Name: "pair1"; Description: "Fire Detection";
Name: "pair2"; Description: "Photo_quality";
Name: "pair3"; Description: "Test Mode";
Name: "pair4"; Description: "Object Detection";
[Files]
; 安裝主要執行檔到 {app} 目錄
Source: "C:\Users\mason\Downloads\Kneron-Academy\dist\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion
; 安裝 config.json 檔案 (不需使用者勾選)
Source: "C:\Users\mason\AppData\Local\Kneron_Academy\utils\config.json"; DestDir: "{localappdata}\Kneron_Academy\utils"; Flags: ignoreversion
; --- 配對1 ---
; pair 1
Source: "C:\Users\mason\AppData\Local\Kneron_Academy\utils\fire detection\yuan\*"; DestDir: "{localappdata}\Kneron_Academy\utils\fire detection\yuan"; Components: pair1; Flags: ignoreversion recursesubdirs createallsubdirs
; pair 2
Source: "C:\Users\mason\AppData\Local\Kneron_Academy\utils\photo quality\ruby\*"; DestDir: "{localappdata}\Kneron_Academy\utils\photo quality\ruby"; Components: pair2; Flags: ignoreversion recursesubdirs createallsubdirs
; pair 3
Source: "C:\Users\mason\AppData\Local\Kneron_Academy\utils\test mode\test\*"; DestDir: "{localappdata}\Kneron_Academy\utils\test mode\test"; Components: pair3; Flags: ignoreversion recursesubdirs createallsubdirs
; pair 4
Source: "C:\Users\mason\AppData\Local\Kneron_Academy\utils\yolov5s\yolov5s\*"; DestDir: "{localappdata}\Kneron_Academy\utils\yolov5s\yolov5s"; Components: pair4; Flags: ignoreversion recursesubdirs createallsubdirs
[Dirs]
; 如有需要隱藏這些資料夾，設定隱藏屬性
Name: "{localappdata}\Kneron_Academy\utils\fire detection\yuan"; Attribs: hidden
Name: "{localappdata}\Kneron_Academy\utils\photo quality\ruby"; Attribs: hidden
Name: "{localappdata}\Kneron_Academy\utils\test mode\test"; Attribs: hidden
[Icons]
Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent