|
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.04' |
| 7 | +#define public ScriptVersion '2.05' |
8 | 8 | //-------------------------------------------------------- |
9 | 9 |
|
10 | 10 |
|
|
129 | 129 | #error 'DestinationFolder is empty' |
130 | 130 | #endif |
131 | 131 |
|
132 | | -//Retrieve Website |
133 | | -#define public Website GetDataIniValue(SectionAbout, 'Website') |
134 | | -#if len(Website)==0 |
135 | | - #error 'Website is empty' |
| 132 | +//Retrieve Homepage |
| 133 | +#define public Homepage GetDataIniValue(SectionAbout, 'Homepage') |
| 134 | +#if len(Homepage)==0 |
| 135 | + #error 'Homepage is empty' |
136 | 136 | #endif |
137 | 137 |
|
138 | 138 | //Retrieve license file(s) |
@@ -303,7 +303,7 @@ AppCopyright={#Copyright} |
303 | 303 | ;Information displayed in Control Panel -> Add/Remove Programs applet |
304 | 304 | ;--------------------------------------------------- |
305 | 305 | ;Displayed as "Help link:" |
306 | | -AppSupportURL={#Website} |
| 306 | +AppSupportURL={#Homepage} |
307 | 307 | ;Should also be displayed there, but I was unable to verify this |
308 | 308 | AppContact={#Publisher} |
309 | 309 | ;Displayed as "Comments" |
@@ -386,7 +386,7 @@ ReadyLabel2b=Setup is now ready to install the {#FontName} v{#FontVersion} on yo |
386 | 386 | Name: "{app}\Fonts Applet"; Filename: "control.exe"; Parameters: "/name Microsoft.Fonts"; WorkingDir: "{win}"; |
387 | 387 |
|
388 | 388 | ;Link to the homepage for this font |
389 | | -Name: "{app}\Website"; Filename: "{#Website}"; |
| 389 | +Name: "{app}\Homepage"; Filename: "{#Homepage}"; |
390 | 390 |
|
391 | 391 |
|
392 | 392 | [Files] |
@@ -431,35 +431,35 @@ Name: "{app}\Website"; Filename: "{#Website}"; |
431 | 431 | ;------------------------ |
432 | 432 | ;Remove old font files during install |
433 | 433 | #define public i 0 |
434 | | -#sub Sub_InstallDeleteRemove |
| 434 | +#sub Sub_InstallDeleteRemoveOldFonts |
435 | 435 | Type: files; Name: "{fonts}\{#remove_font_files[i]}"; |
436 | 436 | #endsub |
437 | | -#for {i = 0; i < remove_font_count; i++} Sub_InstallDeleteRemove |
| 437 | +#for {i = 0; i < remove_font_count; i++} Sub_InstallDeleteRemoveOldFonts |
438 | 438 | #undef i |
439 | 439 | ;------------------------ |
440 | 440 |
|
441 | | -;Delete old log files that were use prior to FSCW |
| 441 | +;Delete old log files that were used prior to FSCW |
442 | 442 | Type: files; Name: "{app}\Log-FontData*.txt" |
443 | 443 |
|
444 | 444 |
|
445 | 445 | [Registry] |
446 | 446 | ;------------------------ |
447 | 447 | ;Remove old font names during install |
448 | 448 | #define public i 0 |
449 | | -#sub Sub_RegistyDelete |
| 449 | +#sub Sub_RegistyDeleteOldFonts |
450 | 450 | Root: HKLM; Subkey: "SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts"; ValueName: "{#remove_font_names[i]} {#TrueType}"; ValueType: none; Flags: deletevalue; |
451 | 451 | #endsub |
452 | | -#for {i = 0; i < remove_font_count; i++} Sub_RegistyDelete |
| 452 | +#for {i = 0; i < remove_font_count; i++} Sub_RegistyDeleteOldFonts |
453 | 453 | #undef i |
454 | 454 | ;------------------------ |
455 | 455 |
|
456 | 456 | ;------------------------ |
457 | 457 | ;Delete any entry found in FontSubsitutes for each of the fonts that will be installed |
458 | 458 | #define public i 0 |
459 | | -#sub Sub_DeleteRegistryFontSubstitutes |
| 459 | +#sub Sub_RegistryDeleteFontSubstitutes |
460 | 460 | Root: HKLM; Subkey: "SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes"; ValueName: "{#font_names[i]} {#TrueType}"; ValueType: none; Flags: deletevalue; |
461 | 461 | #endsub |
462 | | -#for {i = 0; i < install_font_count; i++} Sub_DeleteRegistryFontSubstitutes |
| 462 | +#for {i = 0; i < install_font_count; i++} Sub_RegistryDeleteFontSubstitutes |
463 | 463 | #undef i |
464 | 464 | ;------------------------ |
465 | 465 |
|
|
0 commit comments