Skip to content

Commit 109ecc8

Browse files
committed
Hack v3.000, Issue #11 fix (for real this time)
1 parent 4104973 commit 109ecc8

7 files changed

+51
-35
lines changed

fonts/Hack_v3_000/Hack-Bold.ttf

8 Bytes
Binary file not shown.

fonts/Hack_v3_000/Hack-BoldItalic.ttf

8 Bytes
Binary file not shown.

fonts/Hack_v3_000/Hack-Italic.ttf

8 Bytes
Binary file not shown.

fonts/Hack_v3_000/Hack-Regular.ttf

8 Bytes
Binary file not shown.

src/Data.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ UniqueID=HackWindowsInstaller
1010

1111
[Version]
1212
;Version of the Setup (*NOT* for the Font release).
13-
Version=1.4.0
13+
Version=1.4.1
1414
;This value can be overwritten by an CI tool during build like this (param EXTERNAL_VERSION):
1515
;iscc.exe /DEXTERNAL_VERSION=%APPVEYOR_BUILD_VERSION% src/YourScriptFile.iss
1616

src/HackWindowsInstaller.iss

+18-14
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@
256256

257257
//--------------------------------------------------------
258258
//Version of this installer script. Please do not change.
259-
#define public ScriptVersion '2.02'
259+
#define public ScriptVersion '2.03'
260260
//--------------------------------------------------------
261261

262262

@@ -984,27 +984,29 @@ begin
984984
begin
985985
986986
//Start the service the before action has stopped
987-
customProgressPage.SetText('Starting service {#FontCacheService}...','');
987+
customProgressPage.SetText('Starting {#FontCacheService} service...','');
988988
if FontCacheService_Stopped=true then begin
989989
StartNTService2('{#FontCacheService}');
990990
FontCacheService_Stopped:=false;
991+
customProgressPage.SetText('{#FontCacheService} service was started','');
992+
end;
993+
994+
customProgressPage.SetText('Starting service {#FontCache30Service}...','');
995+
if FontCache30Service_Stopped=true then begin
996+
StartNTService2('{#FontCache30Service}');
997+
FontCache30Service_Stopped:=false;
998+
customProgressPage.SetText('{#FontCache30Service} service was started','');
991999
end;
9921000
993-
//We got several error reports that this steps hangs the installer if certain programs are running:
994-
//
1001+
1002+
// We got several error reports that step hangs the installer if certain programs are running:
9951003
// "Installer stuck at starting fontcache on windows 10 Version 10.0.15063 Build 15063"
9961004
// https://github.com/source-foundry/Hack-windows-installer/issues/11
997-
//
998-
//At least for the one machine I was able to reproduce this, starting the .NET Fontache caused the installer to hang.
999-
//Not starting the service after the font install had NO negative impact on the program that seemed to cause this (MS Word).
1000-
//Therefore, we will NOT restart this service to avoid issue #11.
10011005
1002-
//customProgressPage.SetText('Starting service {#FontCache30Service}...','');
1003-
//if FontCache30Service_Stopped=true then begin
1004-
// StartNTService2('{#FontCache30Service}');
1005-
// FontCache30Service_Stopped:=false;
1006-
//end;
1007-
1006+
// Hence, this step is disabled although it is recommended to send out WM_FONTCHANGE. Given
1007+
// that we request a restart anyway, this should only have a minimum impact (if at all).
1008+
{
1009+
customProgressPage.SetText('Informing Windows that fonts have changed...','');
10081010
10091011
//Inform windows that fonts have changed (just to be sure we do this always)
10101012
//See https://msdn.microsoft.com/en-us/library/windows/desktop/dd183326%28v=vs.85%29.aspx
@@ -1013,6 +1015,8 @@ begin
10131015
//WM_FONTCHANGE = 0x1D = 29
10141016
10151017
customProgressPage.SetText('Storing font data...','');
1018+
}
1019+
10161020
10171021
//Write the buffer to disk. We better make sure that {app} exists.
10181022
appDestinationFolder:=ExpandConstant('{app}');

src/zz_Preprocessor_Result.iss

+32-20
Original file line numberDiff line numberDiff line change
@@ -48,25 +48,25 @@
4848
; Hack Bold
4949
; Hack-Bold.ttf
5050
; C:\dev\git\Hack-windows-installer\fonts\Hack_v3_000\Hack-Bold.ttf
51-
; 12022be7e047f0ec26517084d5fc6d444a2511ac
51+
; 2d5c7e8b0091cce6a9adf71f7c8992365d486f70
5252

5353
; INI position #2
5454
; Hack
5555
; Hack-Regular.ttf
5656
; C:\dev\git\Hack-windows-installer\fonts\Hack_v3_000\Hack-Regular.ttf
57-
; 8f7271c506e5fc5b6ad69ec00845f10d0a4ee146
57+
; 5eceb4a3b9bc49d23da0499317f4bed5d5a0b4bb
5858

5959
; INI position #3
6060
; Hack Bold Italic
6161
; Hack-BoldItalic.ttf
6262
; C:\dev\git\Hack-windows-installer\fonts\Hack_v3_000\Hack-BoldItalic.ttf
63-
; e41d5b385511295d1f771f2c647e9151dbf72012
63+
; c05822be3b154476970241d6bddc0fe1662639da
6464

6565
; INI position #4
6666
; Hack Italic
6767
; Hack-Italic.ttf
6868
; C:\dev\git\Hack-windows-installer\fonts\Hack_v3_000\Hack-Italic.ttf
69-
; 593a16309b9fe89ce600ef688cb53d5747054ab3
69+
; 0c5a8a3396eaa2c49e1c317b47afee5b08a5a27a
7070

7171

7272

@@ -111,10 +111,10 @@
111111
;Because the sub expects a string for each item, an error from ISPP about "Actual datatype not declared type"
112112
;when compiling the setup indicates that total_fonts is set to a wrong value
113113

114-
; C:\dev\git\Hack-windows-installer\fonts\Hack_v3_000\Hack-Bold.ttf\Hack-Bold.ttf - "Hack Bold" - 12022be7e047f0ec26517084d5fc6d444a2511ac
115-
; C:\dev\git\Hack-windows-installer\fonts\Hack_v3_000\Hack-Regular.ttf\Hack-Regular.ttf - "Hack" - 8f7271c506e5fc5b6ad69ec00845f10d0a4ee146
116-
; C:\dev\git\Hack-windows-installer\fonts\Hack_v3_000\Hack-BoldItalic.ttf\Hack-BoldItalic.ttf - "Hack Bold Italic" - e41d5b385511295d1f771f2c647e9151dbf72012
117-
; C:\dev\git\Hack-windows-installer\fonts\Hack_v3_000\Hack-Italic.ttf\Hack-Italic.ttf - "Hack Italic" - 593a16309b9fe89ce600ef688cb53d5747054ab3
114+
; C:\dev\git\Hack-windows-installer\fonts\Hack_v3_000\Hack-Bold.ttf\Hack-Bold.ttf - "Hack Bold" - 2d5c7e8b0091cce6a9adf71f7c8992365d486f70
115+
; C:\dev\git\Hack-windows-installer\fonts\Hack_v3_000\Hack-Regular.ttf\Hack-Regular.ttf - "Hack" - 5eceb4a3b9bc49d23da0499317f4bed5d5a0b4bb
116+
; C:\dev\git\Hack-windows-installer\fonts\Hack_v3_000\Hack-BoldItalic.ttf\Hack-BoldItalic.ttf - "Hack Bold Italic" - c05822be3b154476970241d6bddc0fe1662639da
117+
; C:\dev\git\Hack-windows-installer\fonts\Hack_v3_000\Hack-Italic.ttf\Hack-Italic.ttf - "Hack Italic" - 0c5a8a3396eaa2c49e1c317b47afee5b08a5a27a
118118

119119
;---END---
120120

@@ -136,8 +136,8 @@ SetupMutex=HackWindowsInstaller_Mutex
136136

137137
AppName=Hack Windows Installer
138138

139-
AppVersion=1.4.0
140-
VersionInfoVersion=1.4.0
139+
AppVersion=1.4.1
140+
VersionInfoVersion=1.4.1
141141

142142
AppPublisher=Michael Hex / Source Foundry
143143
AppCopyright=Copyright © 2016 Michael Hex / Source Foundry
@@ -208,7 +208,7 @@ AllowCancelDuringInstall=False
208208
SetupAppTitle=Hack Windows Installer
209209

210210
;SetupWindowsTitle is displayed in the setup window itself so we better include the version
211-
SetupWindowTitle=Hack Windows Installer 1.4.0
211+
SetupWindowTitle=Hack Windows Installer 1.4.1
212212

213213
;Messages for the "Read to install" wizard page
214214
;NOT USED - "Ready To Install" - below title bar
@@ -287,7 +287,7 @@ Name: "{app}\Website"; Filename: "http://sourcefoundry.org/hack/";
287287

288288
[INI]
289289
;Create an ini to make detection for enterprise deployment tools easy
290-
Filename: "{app}\InstallInfo.ini"; Section: "Main"; Key: "Version"; String: "1.4.0"
290+
Filename: "{app}\InstallInfo.ini"; Section: "Main"; Key: "Version"; String: "1.4.1"
291291
Filename: "{app}\InstallInfo.ini"; Section: "Main"; Key: "Name"; String: "Hack Windows Installer"
292292

293293

@@ -519,10 +519,10 @@ procedure FillFontDataArray();
519519
begin
520520
521521
522-
AddFontData('Hack-Bold.ttf', 'Hack Bold', '12022be7e047f0ec26517084d5fc6d444a2511ac');
523-
AddFontData('Hack-Regular.ttf', 'Hack', '8f7271c506e5fc5b6ad69ec00845f10d0a4ee146');
524-
AddFontData('Hack-BoldItalic.ttf', 'Hack Bold Italic', 'e41d5b385511295d1f771f2c647e9151dbf72012');
525-
AddFontData('Hack-Italic.ttf', 'Hack Italic', '593a16309b9fe89ce600ef688cb53d5747054ab3');
522+
AddFontData('Hack-Bold.ttf', 'Hack Bold', '2d5c7e8b0091cce6a9adf71f7c8992365d486f70');
523+
AddFontData('Hack-Regular.ttf', 'Hack', '5eceb4a3b9bc49d23da0499317f4bed5d5a0b4bb');
524+
AddFontData('Hack-BoldItalic.ttf', 'Hack Bold Italic', 'c05822be3b154476970241d6bddc0fe1662639da');
525+
AddFontData('Hack-Italic.ttf', 'Hack Italic', '0c5a8a3396eaa2c49e1c317b47afee5b08a5a27a');
526526
527527
end;
528528
@@ -670,8 +670,8 @@ begin
670670
671671
LogAsImportant('--------------------------------');
672672
LogAsImportant('Font name.....: Hack fonts');
673-
LogAsImportant('Script version: 2.02');
674-
LogAsImportant('Setup version.: 1.4.0');
673+
LogAsImportant('Script version: 2.03');
674+
LogAsImportant('Setup version.: 1.4.1');
675675
LogAsImportant('Font version..: 3.000');
676676
LogAsImportant('Local time....: ' + GetDateTimeString('yyyy-dd-mm hh:nn', '-', ':'));
677677
LogAsImportant('Fonts folder..: ' + ExpandConstant('{fonts}'));
@@ -747,18 +747,30 @@ begin
747747
try
748748
begin
749749
750-
customProgressPage.SetText('Starting service FontCache...','');
750+
customProgressPage.SetText('Starting FontCache service...','');
751751
if FontCacheService_Stopped=true then begin
752752
StartNTService2('FontCache');
753753
FontCacheService_Stopped:=false;
754+
customProgressPage.SetText('FontCache service was started','');
754755
end;
755-
756756
757+
customProgressPage.SetText('Starting service FontCache3.0.0.0...','');
758+
if FontCache30Service_Stopped=true then begin
759+
StartNTService2('FontCache3.0.0.0');
760+
FontCache30Service_Stopped:=false;
761+
customProgressPage.SetText('FontCache3.0.0.0 service was started','');
762+
end;
757763
764+
765+
766+
{
767+
customProgressPage.SetText('Informing Windows that fonts have changed...','');
758768
759769
SendBroadcastMessage(29, 0, 0);
760770
761771
customProgressPage.SetText('Storing font data...','');
772+
}
773+
762774
763775
appDestinationFolder:=ExpandConstant('{app}');
764776
appDestinationFolder:=AddBackslash(appDestinationFolder);

0 commit comments

Comments
 (0)