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;
|
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}\RUN_FILENAME.exe"; Description: "{cm:LaunchProgram,APPLICATION_NAME}"; Flags: nowait postinstall skipifsilent; Check: APPLICATION_NOT_SERVICE()
50 Filename: "{app}\RUN_FILENAME.exe"; Parameters: "-install -svcName ""APPLICATION_NAME"" -svcDesc ""APPLICATION_DESCRIPTION"" -mainExe ""APPLICATION_LAUNCHER_FILENAME"" START_ON_INSTALL RUN_AT_STARTUP"; Check: APPLICATION_SERVICE()
51
52 [UninstallRun]
53 Filename: "{app}\RUN_FILENAME.exe "; Parameters: "-uninstall -svcName APPLICATION_NAME STOP_ON_UNINSTALL"; Check: APPLICATION_SERVICE()
54
55 [Code]
56 function returnTrue(): Boolean;
57 begin
58 Result := True;
59 end;
60
61 function returnFalse(): Boolean;
62 begin
63 Result := False;
64 end;
65
66 function InitializeSetup(): Boolean;
67 begin
68 // Possible future improvements:
69 // if version less or same => just launch app
70 // if upgrade => check if same app is running and wait for it to exit
71 // Add pack200/unpack200 support?
72 Result := True;
73 end;
|