Small Windows Setup capable Update by reinstall using InnoSetup

Hi Guys,

i just created a small Setup using the Freeware InnoSetup for Windows.

as an example also GTK Frontend and Syncthing Tray are selectable.Also there is an initial Startup-Config for the Lame users providable.

It will install the files at the usual locations. No Service-Install yet. (not needed in my case)

alter it as you wish to create your own setup for your distribution.

    ; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define MyAppName "Syncthing"
#define MyAppVersion "0.10.22"
#define MyAppPublisher "Markus Dembach"
#define MyAppURL "http://135.124.92.41/Tools/Syncthing"
#define MyAppExeName "st-logo-256.png"

[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={{D6F52D20-BA90-402E-B680-030CD5DEF5AC}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={pf}\{#MyAppName}
DefaultGroupName={#MyAppName}
LicenseFile=C:\Syncthing\LICENSE.txt
OutputBaseFilename=Syncthing 0.10.22 RSE GTK Tray
ArchitecturesAllowed=x64
ArchitecturesInstallIn64BitMode=x64
; SetupIconFile=C:\Syncthing\st-logo-256.ico

Compression=lzma2
SolidCompression=yes

[Types]
Name: "GTK"; Description: "GTK Frontend mit Tray (Internet bei Installation erforderlich !)"
Name: "Tray"; Description: "Kleines Tray (auch ohne Internet installierbar)"

[Components]
Name: "program"; Description: "Program Files"; Types: GTK Tray; Flags: fixed
Name: "GTK"; Description: "GTK Frontend"; Types: GTK
Name: "Tray"; Description: "Small Tray"; Types: Tray

[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
Name: "german"; MessagesFile: "compiler:Languages\German.isl"

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

[Files]
Source: "C:\Syncthing\CONTRIBUTORS.txt"; DestDir: "{app}"; Flags: ignoreversion; Components: program
Source: "C:\Syncthing\LICENSE.txt"; DestDir: "{app}"; Flags: ignoreversion; Components: program
Source: "C:\Syncthing\README.txt"; DestDir: "{app}"; Flags: ignoreversion  ; Components: program
Source: "C:\Syncthing\syncthing.exe"; DestDir: "{app}"; Flags: ignoreversion; Components: program
Source: "C:\Syncthing\config.xml"; DestDir: "{localappdata}\Syncthing\"; Flags: onlyifdoesntexist; Components: program
Source: "C:\Syncthing\SyncthingGTK-v0.6.1-r2-win32-installer.exe"; DestDir: "{localappdata}\Syncthing\"; Flags: deleteafterinstall; Components: GTK
Source: "C:\Syncthing\Output\Syncthing Tray 0.3.1 RSE.exe"; DestDir: "{localappdata}\Syncthing\"; Flags: deleteafterinstall; Components: Tray
; NOTE: Don't use "Flags: ignoreversion" on any shared system files

[Icons]


[Run]

Filename: "{localappdata}\Syncthing\SyncthingGTK-v0.6.1-r2-win32-installer.exe"; Description: "GTK Tray & Frontend";StatusMsg: "Installing GTK Frontend..."; Flags: waituntilterminated skipifsilent; Components: GTK
Filename: "{localappdata}\Syncthing\Syncthing Tray 0.3.1 RSE.exe"; Description: "Tray";StatusMsg: "Installing Tray..."; Flags: waituntilterminated skipifsilent; Components: Tray