File chicken-iup.iss.in artifact 1e8d4de81a part of check-in 4f5a3f42b5


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

;; SEE  http://stackoverflow.com/questions/3304463/how-do-i-modify-the-path-environment-variable-when-running-an-inno-setup-install
;; For information on how to cleanly tweak the path.
;; Actual relevant sources are here: http://legroom.net/software/modpath

#define CIUPAppName "chicken-iup"
#define CIUPVersion "0.5"
#define CIUPPrefix "{%CIUPPrefix%}"
#define ChickenVersion "{%ChickenVersion%}"
#define ChickenURL "http://www.call-cc.org"
#define MinGWBindir "{%MinGWBindir%}"

[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={{683DFF9C-58AA-4045-8104-A191CAEC7C6D}
AppName={#CIUPAppName}
AppVersion={#CIUPVersion}
AppPublisher=Call/CC
AppPublisherURL={#ChickenURL}
AppSupportURL={#ChickenURL}
AppUpdatesURL={#ChickenURL}
DefaultDirName={#CIUPPrefix}
DefaultGroupName={#CIUPAppName}
LicenseFile=chicken-{#ChickenVersion}\LICENSE
OutputBaseFilename={#CIUPAppName}-setup
Compression=lzma
SolidCompression=yes

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

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

[Files]
Source: "binpkg\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "{#MinGWBindir}\libgcc_s_dw2-1.dll"; DestDir: "{app}\bin";
Source: "{#MinGWBindir}\libstdc++-6.dll"; DestDir: "{app}\bin";
Source: "examples\*"; DestDir: "{userdesktop}\Chicken-IUP Examples"; Flags: ignoreversion recursesubdirs createallsubdirs

[Icons]
Name: "{group}\chicken-iup"; Filename: "{app}\bin\csi.exe"
Name: "{commondesktop}\chicken-iup"; Filename: "{app}\bin\csi.exe"; Tasks: desktopicon

[Run]
Filename: "{app}\bin\csi.exe"; Description: "{cm:LaunchProgram,chicken-iup}"; Flags: nowait postinstall skipifsilent

[Registry]
Root: HKLM; Subkey: "SYSTEM\CurrentControlSet\Control\Session Manager\Environment";ValueType: expandsz; ValueName: "Path"; ValueData: "{olddata};{app}\bin;{app}\lib"
Root: HKLM; Subkey: "SYSTEM\CurrentControlSet\Control\Session Manager\Environment";ValueType: expandsz; ValueName: "CHICKEN_PREFIX"; ValueData: "{app}"; Flags: uninsdeletevalue
Root: HKLM; Subkey: "SYSTEM\CurrentControlSet\Control\Session Manager\Environment";ValueType: expandsz; ValueName: "CHICKEN_INSTALL_PREFIX"; ValueData: "{app}\lib\chicken\7"; Flags: uninsdeletevalue
Root: HKLM; Subkey: "SYSTEM\CurrentControlSet\Control\Session Manager\Environment";ValueType: expandsz; ValueName: "CSC_OPTIONS"; ValueData: "-I{app}\include -I{app}\lib\include -L{app}\lib"; Flags: uninsdeletevalue