1 ;This file will be executed next to the application bundle image 2 ;I.e. current directory will contain folder APPLICATION_NAME with application files 3 [Setup] 4 AppId={{PRODUCT_APP_IDENTIFIER}} 5 AppName=APPLICATION_NAME 6 AppVersion=APPLICATION_VERSION 7 AppVerName=APPLICATION_NAME APPLICATION_VERSION 8 AppPublisher=APPLICATION_VENDOR 9 AppComments=APPLICATION_COMMENTS 10 AppCopyright=APPLICATION_COPYRIGHT 11 ;AppPublisherURL=http://java.com/ 12 ;AppSupportURL=http://java.com/ 13 ;AppUpdatesURL=http://java.com/ 14 DefaultDirName=APPLICATION_INSTALL_ROOT\APPLICATION_NAME 15 DisableStartupPrompt=Yes 16 DisableDirPage=Yes 17 DisableProgramGroupPage=Yes 18 DisableReadyPage=Yes 19 DisableFinishedPage=Yes 20 DisableWelcomePage=Yes 21 DefaultGroupName=APPLICATION_GROUP 22 ;Optional License 23 LicenseFile=APPLICATION_LICENSE_FILE 24 ;WinXP or above 25 MinVersion=0,5.1 26 OutputBaseFilename=APPLICATION_NAME-APPLICATION_VERSION 27 Compression=lzma 28 SolidCompression=yes 29 PrivilegesRequired=APPLICATION_INSTALL_PRIVILEGE 30 SetupIconFile=APPLICATION_NAME\APPLICATION_NAME.ico 31 UninstallDisplayIcon={app}\APPLICATION_NAME.ico 32 UninstallDisplayName=APPLICATION_NAME 33 WizardImageStretch=No 34 WizardSmallImageFile=APPLICATION_NAME-setup-icon.bmp 35 ArchitecturesInstallIn64BitMode=ARCHITECTURE_BIT_MODE 36 37 [Languages] 38 Name: "english"; MessagesFile: "compiler:Default.isl" 39 40 [Files] 41 Source: "APPLICATION_NAME\APPLICATION_NAME.exe"; DestDir: "{app}"; Flags: ignoreversion 42 Source: "APPLICATION_NAME\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs 43 44 [Icons] 45 Name: "{group}\APPLICATION_NAME"; Filename: "{app}\APPLICATION_NAME.exe"; IconFilename: "{app}\APPLICATION_NAME.ico"; Check: APPLICATION_MENU_SHORTCUT() 46 Name: "{commondesktop}\APPLICATION_NAME"; Filename: "{app}\APPLICATION_NAME.exe"; IconFilename: "{app}\APPLICATION_NAME.ico"; Check: APPLICATION_DESKTOP_SHORTCUT() 47 48 [Run] 49 Filename: "{app}\APPLICATION_NAME.exe"; Description: "{cm:LaunchProgram,APPLICATION_NAME}"; Flags: nowait postinstall skipifsilent 50 51 [Code] 52 function returnTrue(): Boolean; 53 begin 54 Result := True; 55 end; 56 57 function returnFalse(): Boolean; 58 begin 59 Result := False; 60 end; 61 62 function InitializeSetup(): Boolean; 63 begin 64 // Possible future improvements: 65 // if version less or same => just launch app 66 // if upgrade => check if same app is running and wait for it to exit 67 // Add pack200/unpack200 support? 68 Result := True; 69 end;