#define MyAppName "TactileIpc3D"
#define MyAppVersion "0.2.0"
#define MyAppPublisher "TactileIpc3D"
#define MyAppExeName "TactileIpc3D.exe"
#define SourceDir "..\\build\Desktop_Qt_6_8_3_MinGW_64_bit-Release\\out\Release"
#define OutputDir "..\\dist"
#define AssetsDir "assets"
#define AppIconFile AssetsDir + "\\App.ico"
#define WizardSmallFile AssetsDir + "\\WizardSmall.bmp"
#define WizardLargeFile AssetsDir + "\\WizardLarge.bmp"

[Setup]
AppId={{1E4C86D4-4E53-4B8A-9F7F-1D56E8E04353}}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
AppPublisher={#MyAppPublisher}
DefaultDirName={autopf}\{#MyAppName}
DefaultGroupName={#MyAppName}
OutputDir={#OutputDir}
OutputBaseFilename={#MyAppName}-Setup-{#MyAppVersion}
Compression=lzma
SolidCompression=yes
WizardStyle=modern
SetupLogging=yes
ArchitecturesAllowed=x64
ArchitecturesInstallIn64BitMode=x64
#ifexist AppIconFile
SetupIconFile={#AppIconFile}
#endif
#ifexist WizardSmallFile
WizardSmallImageFile={#WizardSmallFile}
#endif
#ifexist WizardLargeFile
WizardImageFile={#WizardLargeFile}
#endif

[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
; Name: "chinesesimp"; MessagesFile: "compiler:Languages\\ChineseSimplified.isl"

[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked

[Files]
Source: "{#SourceDir}\\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs

[Icons]
Name: "{group}\\{#MyAppName}"; Filename: "{app}\\{#MyAppExeName}"
Name: "{autodesktop}\\{#MyAppName}"; Filename: "{app}\\{#MyAppExeName}"; Tasks: desktopicon

[Run]
Filename: "{app}\\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#MyAppName}}"; Flags: postinstall nowait skipifsilent
