1; To build installer (for example, saga-8.1.3_setup.exe). 2; - Unzip the SAGA binary files in their own folder (for example, saga-8.1.3.zip). 3; - Place saga.iss and saga_readme.rtf in the SAGA folder (contains saga_gui.exe, etc.). 4; - Open saga.iss in Inno Setup. 5; - Choose Build | Compile. 6; Contributed by Philipp J. Hess 7 8[Setup] 9AppName=SAGA - System for Automated Geoscientific Analyses 10AppVerName=SAGA 8.1.3 11 12ArchitecturesAllowed=x64 13ArchitecturesInstallIn64BitMode=x64 14 15DefaultDirName={commonpf}\SAGA 16DefaultGroupName=SAGA 17UninstallDisplayIcon={app}\saga_gui.exe 18 19InfoBeforeFile=saga_setup_readme.rtf 20 21Compression=lzma 22SolidCompression=yes 23 24OutputDir=. 25OutputBaseFilename=saga-8.1.3_x64_setup 26 27VersionInfoVersion=8.1.3.0 28VersionInfoCompany=SAGA User Group Association 29VersionInfoCopyright=(c) 2005-2022 by O. Conrad 30VersionInfoDescription=SAGA single-file installer 31 32PrivilegesRequired=admin 33 34[Files] 35; Add .exe's separately so can exclude any other .exe's (e.g., old installer). 36Source: "saga_gui.exe"; DestDir: "{app}" 37Source: "saga_cmd.exe"; DestDir: "{app}" 38Source: "*.*"; Excludes: "*.iss,*.ini,*.cfg,*.bak,*.exe,*.bat,*.rtf"; DestDir: "{app}" 39Source: "tools\*.*"; DestDir: "{app}\tools" 40Source: "tools\toolchains\*.*"; DestDir: "{app}\tools\toolchains" 41Source: "dll\*.*"; DestDir: "{app}\dll"; Flags: recursesubdirs 42Source: "ArcSAGA Toolboxes\*.*"; DestDir: "{app}\ArcSAGA Toolboxes" 43 44[Icons] 45; Start up in tools folder so SAGA will load all tools automatically. 46Name: "{commonprograms}\SAGA"; Filename: "{app}\saga_gui.exe"; WorkingDir: "{app}" 47Name: "{commondesktop}\SAGA"; Filename: "{app}\saga_gui.exe"; WorkingDir: "{app}" 48 49[Registry] 50Root: HKLM; Subkey: "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\saga_gui.exe"; ValueType: string; ValueName: ""; ValueData: "{app}\saga_gui.exe"; Flags: uninsdeletekey 51Root: HKLM; Subkey: "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\saga_gui.exe"; ValueType: string; ValueName: "Path"; ValueData: "{app}" 52 53Root: HKLM; Subkey: "SOFTWARE\SAGA User Group Association\SAGA\8.1.3"; ValueType: string; ValueName: "InstallDir"; ValueData: "{app}"; Flags: uninsdeletekey 54Root: HKLM; Subkey: "SOFTWARE\SAGA User Group Association\SAGA\8.1.3"; ValueType: string; ValueName: "Version"; ValueData: "8.1.3.0" 55