11#define MyAppName " sqlcw"
2- #define MyAppVersion " 1.1"
3- #define MyAppURL " https://sourceforge.net/projects/sqlcw/"
2+ #define MyAppURL " https://github.com/peter277/sqlcw"
43#define MyAppExeName " sqlcw.exe"
5- #define ProjectDir " X:\Projects\sqlcw"
4+ #define ProjectDir ExtractFileDir(ExtractFileDir(SourcePath))
5+
6+ #define VerMajor GetEnv(" ENV_BUILD_VERSION_MAJOR" )
7+ #define VerMinor GetEnv(" ENV_BUILD_VERSION_MINOR" )
8+ #define VerPatch GetEnv(" ENV_BUILD_VERSION_PATCH" ) != " " ? GetEnv(" ENV_BUILD_VERSION_PATCH" ) : " 0"
9+
10+ #if VerMajor != " " && VerMinor != " "
11+ #define MyAppVersion VerMajor + " ." + VerMinor + " ." + VerPatch
12+ #else
13+ #define MyAppVersion " dev"
14+ #endif
615
716[Setup]
817; NOTE: The value of AppId uniquely identifies this application. Do not use the same AppId value in installers for other applications.
@@ -11,13 +20,14 @@ AppId={{0D0F4C50-15D5-4CDF-A7C7-316375B5359A}
1120AppName = {#MyAppName }
1221AppVersion = {#MyAppVersion}
1322AppVerName = {#MyAppName } {#MyAppVersion}
23+ ;AppPublisher={#MyAppPublisher}
1424AppPublisherURL = {#MyAppURL}
1525AppSupportURL = {#MyAppURL}
1626AppUpdatesURL = {#MyAppURL}
1727DefaultDirName = {autopf}\{#MyAppName }
1828DefaultGroupName = {#MyAppName }
1929AllowNoIcons = yes
20- LicenseFile = {#ProjectDir}\doc\LICENSE_GPL- 3.0 .txt
30+ LicenseFile = {#ProjectDir}\doc\LICENSE .txt
2131; Remove the following line to run in administrative install mode (install for all users.)
2232PrivilegesRequired = lowest
2333PrivilegesRequiredOverridesAllowed= dialog commandline
@@ -27,13 +37,13 @@ SolidCompression=yes
2737WizardStyle = modern
2838ChangesEnvironment = true
2939
30- ; "ArchitecturesAllowed=x64 " specifies that Setup cannot run on
40+ ; "ArchitecturesAllowed=x64compatible " specifies that Setup cannot run on
3141; anything but x64.
32- ArchitecturesAllowed = x64
33- ; "ArchitecturesInstallIn64BitMode=x64 " requests that the install be
42+ ArchitecturesAllowed = x64compatible
43+ ; "ArchitecturesInstallIn64BitMode=x64compatible " requests that the install be
3444; done in "64-bit mode" on x64, meaning it should use the native
3545; 64-bit Program Files directory and the 64-bit view of the registry.
36- ArchitecturesInstallIn64BitMode = x64
46+ ArchitecturesInstallIn64BitMode = x64compatible
3747
3848; Specify a particular icon file to display for the Uninstall entry in the Add/Remove Programs Control Panel applet
3949UninstallDisplayIcon = {app} \bin\{#MyAppExeName}
@@ -42,17 +52,20 @@ UninstallDisplayIcon={app}\bin\{#MyAppExeName}
4252Name : " english" ; MessagesFile : " compiler:Default.isl"
4353
4454[Files]
45- Source : " {#ProjectDir}\bin\Release\sqlcw.exe" ; DestDir : " {app} \bin" ; Flags : ignoreversion
46- Source : " {#ProjectDir}\doc\README.txt" ; DestDir : " {app} " ; Flags : ignoreversion
55+ Source : " {#ProjectDir}\build\sqlcw.exe" ; DestDir : " {app} \bin" ; Flags : ignoreversion
56+ Source : " {#ProjectDir}\build\README.html" ; DestDir : " {app} " ; Flags : ignoreversion
57+ Source : " {#ProjectDir}\build\LICENSE.html" ; DestDir : " {app} " ; Flags : ignoreversion
4758Source : " {#ProjectDir}\doc\examples\*" ; DestDir : " {app} \examples" ; Flags : ignoreversion recursesubdirs createallsubdirs
59+ Source : " {#ProjectDir}\doc\library-licenses\*" ; DestDir : " {app} \library-licenses" ; Flags : ignoreversion recursesubdirs createallsubdirs
4860; NOTE: Don't use "Flags: ignoreversion" on any shared system files
4961
5062[Icons]
5163;Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
5264Name : " {group} \{cm:ProgramOnTheWeb,{#MyAppName}}" ; Filename : " {#MyAppURL}"
5365Name : " {group} \Examples" ; Filename : " {app} \examples"
5466Name : " {group} \{cm:UninstallProgram,{#MyAppName}}" ; Filename : " {uninstallexe} "
55- Name : " {group} \{#MyAppName} Readme" ; Filename : " {app} \README.txt"
67+ Name : " {group} \{#MyAppName} Readme" ; Filename : " {app} \README.html"
68+ Name : " {group} \{#MyAppName} License" ; Filename : " {app} \LICENSE.html"
5669
5770[Tasks]
5871Name : modifypath; Description : &Add application executable to environmental path
0 commit comments