|
4 | 4 | //https://github.com/source-foundry/FSCW |
5 | 5 | //-------------------------------------------------------- |
6 | 6 | //Version of this installer script. Please do not change. |
7 | | -#define public ScriptVersion '2.06' |
| 7 | +#define public ScriptVersion '2.07' |
8 | 8 | //-------------------------------------------------------- |
9 | 9 |
|
10 | 10 |
|
|
56 | 56 | #pragma error 'UniqueID is empty' |
57 | 57 | #endif |
58 | 58 |
|
59 | | -//Retrieve source folder |
60 | | -#define font_source_folder GetDataIniValue(SectionInstallFonts, 'SourceFolder') |
61 | | -#if len(font_source_folder)==0 |
62 | | - #error 'Source folder is empty' |
63 | | -#endif |
64 | | - |
65 | | -//Retrieve InstallerName |
66 | | -#define public InstallerName GetDataIniValue(SectionGeneral, 'Name') |
67 | | -#if len(InstallerName)==0 |
68 | | - #error 'Name is empty' |
69 | | -#endif |
70 | | - |
71 | 59 | //Version of the SETUP/INSTALLER |
72 | 60 | #define public Version GetDataIniValue(SectionVersion, 'Version') |
73 | 61 | #if len(Version)==0 |
|
94 | 82 | #endif |
95 | 83 | #endif |
96 | 84 |
|
| 85 | + |
97 | 86 | //Name of this font |
98 | 87 | #define public FontName GetDataIniValue(SectionAbout, 'FontName') |
99 | 88 | #if len(FontName)==0 |
|
112 | 101 | #error 'Copyright is empty' |
113 | 102 | #endif |
114 | 103 |
|
| 104 | +//Retrieve HomepageURL |
| 105 | +#define public HomepageURL GetDataIniValue(SectionAbout, 'HomepageURL') |
| 106 | +#if len(HomepageURL)==0 |
| 107 | + #error 'HomepageURL is empty' |
| 108 | +#endif |
| 109 | + |
| 110 | +//Retrieve SupportURL |
| 111 | +#define public SupportURL GetDataIniValue(SectionAbout, 'SupportURL') |
| 112 | +#if len(SupportURL)==0 |
| 113 | + #error 'SupportURL is empty' |
| 114 | +#endif |
| 115 | + |
| 116 | +//Retrieve InstallerName |
| 117 | +#define public InstallerName GetDataIniValue(SectionGeneral, 'Name') |
| 118 | +#if len(InstallerName)==0 |
| 119 | + #error 'Name is empty' |
| 120 | +#endif |
| 121 | + |
115 | 122 | //Retrieve icon file |
116 | 123 | #define public IconFile GetDataIniValue(SectionGeneral, 'Icon') |
117 | 124 | //Icon file can be empty, so no check here |
118 | 125 |
|
119 | | - |
120 | 126 | //Retrieve ExeFile (name of the setup) |
121 | 127 | #define public ExeFile GetDataIniValue(SectionGeneral, 'ExeFile') |
122 | 128 | #if len(ExeFile)==0 |
|
129 | 135 | #error 'DestinationFolder is empty' |
130 | 136 | #endif |
131 | 137 |
|
132 | | -//Retrieve Homepage |
133 | | -#define public Homepage GetDataIniValue(SectionAbout, 'Homepage') |
134 | | -#if len(Homepage)==0 |
135 | | - #error 'Homepage is empty' |
136 | | -#endif |
137 | | - |
138 | 138 | //Retrieve license file(s) |
139 | 139 | #define public LicenseFiles GetDataIniValue(SectionGeneral, 'LicenseFile') |
140 | 140 | #if len(LicenseFiles)==0 |
141 | 141 | #error 'LicenseFile is empty' |
142 | 142 | #endif |
143 | 143 |
|
144 | 144 |
|
| 145 | +//Retrieve source folder |
| 146 | +#define font_source_folder GetDataIniValue(SectionInstallFonts, 'SourceFolder') |
| 147 | +#if len(font_source_folder)==0 |
| 148 | + #error 'Source folder is empty' |
| 149 | +#endif |
| 150 | + |
145 | 151 |
|
146 | 152 | //Process *InstallFonts* section |
147 | 153 | #emit '; Processing section ' + SectionInstallFonts |
@@ -303,7 +309,7 @@ AppCopyright={#Copyright} |
303 | 309 | ;Information displayed in Control Panel -> Add/Remove Programs applet |
304 | 310 | ;--------------------------------------------------- |
305 | 311 | ;Displayed as "Help link:" |
306 | | -AppSupportURL={#Homepage} |
| 312 | +AppSupportURL={#SupportURL} |
307 | 313 | ;Should also be displayed there, but I was unable to verify this |
308 | 314 | AppContact={#Publisher} |
309 | 315 | ;Displayed as "Comments" |
@@ -386,7 +392,7 @@ ReadyLabel2b=Setup is now ready to install the {#FontName} v{#FontVersion} on yo |
386 | 392 | Name: "{app}\Fonts Applet"; Filename: "control.exe"; Parameters: "/name Microsoft.Fonts"; WorkingDir: "{win}"; |
387 | 393 |
|
388 | 394 | ;Link to the homepage for this font |
389 | | -Name: "{app}\Homepage"; Filename: "{#Homepage}"; |
| 395 | +Name: "{app}\Homepage"; Filename: "{#HomepageURL}"; |
390 | 396 |
|
391 | 397 |
|
392 | 398 | [Files] |
|
0 commit comments