-
-
Notifications
You must be signed in to change notification settings - Fork 964
/
CompilingGuidelineWin.html
1225 lines (1189 loc) · 41.8 KB
/
CompilingGuidelineWin.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<style>
.textbox {
vertical-align: top;
height: auto !important;
font-family: Helvetica,sans-serif;
font-size: 20px;
font-weight: bold;
margin: 10px;
padding: 10px;
background-color: white;
width: auto;
border-radius: 10px;
}
.texttohide {
font-family: Helvetica,sans-serif;
font-size: 14px;
font-weight: normal;
}
</style>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>VeraCrypt - Free Open source disk encryption with strong security for the Paranoid</title>
<meta name="description" content="VeraCrypt is free open-source disk encryption software for Windows, Mac OS X and Linux. In case an attacker forces you to reveal the password, VeraCrypt provides plausible deniability. In contrast to file encryption, data encryption performed by VeraCrypt is real-time (on-the-fly), automatic, transparent, needs very little memory, and does not involve temporary unencrypted files."/>
<meta name="keywords" content="encryption, security"/>
<link href="styles.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div>
<a href="Documentation.html"><img src="VeraCrypt128x128.png" alt="VeraCrypt"/></a>
</div>
<div id="menu">
<ul>
<li><a href="Home.html">Home</a></li>
<li><a href="/code/">Source Code</a></li>
<li><a href="Downloads.html">Downloads</a></li>
<li><a class="active" href="Documentation.html">Documentation</a></li>
<li><a href="Donation.html">Donate</a></li>
<li><a href="https://sourceforge.net/p/veracrypt/discussion/" target="_blank">Forums</a></li>
</ul>
</div>
<div>
<p>
<a href="Documentation.html">Documentation</a>
<img src="arrow_right.gif" alt=">>" style="margin-top: 5px">
<a href="Technical%20Details.html">Technical Details</a>
<img src="arrow_right.gif" alt=">>" style="margin-top: 5px">
<a href="CompilingGuidelines.html">Building VeraCrypt From Source</a>
<img src="arrow_right.gif" alt=">>" style="margin-top: 5px">
<a href="CompilingGuidelineWin.html">Windows Build Guide</a>
</p></div>
<div class="wikidoc">
This guide describes how to set up a Windows system that can compile the VeraCrypt. Further it is described how VeraCrypt is going to be compiled. <br>
The procedure for a Windows 10 system is described here as an example, but the procedure for other Windows systems is analogous.
</div>
<div class="wikidoc">
The following components are required for compiling VeraCrypt:
<ol>
<li>Microsoft Visual Studio 2010</li>
<li>Microsoft Visual Studio 2010 Service Pack 1</li>
<li>NASM</li>
<li>YASM</li>
<li>Visual C++ 1.52</li>
<li>Windows SDK 7.1</li>
<li>Windows Driver Kit 7.1</li>
<li>Windows 8.1 SDK</li>
<li>gzip</li>
<li>upx</li>
<li>7zip</li>
<li>Wix3</li>
<li>Microsoft Visual Studio 2019</li>
<li>Windows 10 SDK</li>
<li>Windows Driver Kit 1903</li>
<li>Visual Studio build tools</li>
</ol>
</div>
<div class="wikidoc">
Below are the procedure steps. Clicking on any of the link takes directly to the related step:
<ul>
<li><strong><a href="#InstallationOfMicrosoftVisualStudio2010">Installation of Microsoft Visual Studio 2010</a></li></strong>
<li><strong><a href="#InstallationOfMicrosoftVisualStudio2010ServicePack1">Installation of Microsoft Visual Studio 2010 Service Pack 1</a></li></strong>
<li><strong><a href="#InstallationOfNASM">Installation of NASM</a></li></strong>
<li><strong><a href="#InstallationOfYASM">Installation of YASM</a></li></strong>
<li><strong><a href="#InstallationOfVisualCPP">Installation of Microsoft Visual C++ 1.52</a></li></strong>
<li><strong><a href="#InstallationOfWindowsSDK71PP">Installation of the Windows SDK 7.1</a></li></strong>
<li><strong><a href="#InstallationOfWDK71PP">Installation of the Windows Driver Kit 7.1</a></li></strong>
<li><strong><a href="#InstallationOfSDK81PP">Installation of the Windows 8.1 SDK</a></li></strong>
<li><strong><a href="#InstallationOfGzip">Installation of gzip</a></li></strong>
<li><strong><a href="#InstallationOfUpx">Installation of upx</a></li></strong>
<li><strong><a href="#InstallationOf7zip">Installation of 7zip</a></li></strong>
<li><strong><a href="#InstallationOfWix3">Installation of Wix3</a></li></strong>
<li><strong><a href="#InstallationOfVS2019">Installation of Microsoft Visual Studio 2019</a></li></strong>
<li><strong><a href="#InstallationOfWDK10">Installation of the Windows Driver Kit 2004</a></li></strong>
<li><strong><a href="#InstallationOfVisualBuildTools">Installation of the Visual Studio build tools</a></li></strong>
<li><strong><a href="#DownloadVeraCrypt">Download VeraCrypt Source Files</a></li></strong>
<li><strong><a href="#CompileWin32X64">Compile the Win32/x64 Versions of VeraCrypt</a></li></strong>
<li><strong><a href="#CompileARM64">Compile the ARM64 Version of VeraCrypt</a></li></strong>
<li><strong><a href="#BuildVeraCryptExecutables">Build the VeraCrypt Executables</a></li></strong>
<li><strong><a href="#ImportCertificates">Import the Certificates</a></li></strong>
<li><strong><a href="#KnownIssues">Known Issues</a></li></strong>
</ul>
</div>
<div class="wikidoc">
<div class="textbox" id="InstallationOfMicrosoftVisualStudio2010">
<a href="#InstallationOfMicrosoftVisualStudio2010">Installation of Microsoft Visual Studio 2010</a>
<div class="texttohide">
<p>
<ol>
<li>
Visit the following Microsoft website and log in with a free Microsoft account: <br>
<a href="https://my.visualstudio.com/Downloads?q=Visual%20Studio%202010%20Professional&pgroup=" target="_blank">https://my.visualstudio.com/Downloads?q=Visual%20Studio%202010%20Professional&pgroup=</a>
</li>
<li>
Please download a (trial) version of “Visual Studio Professional 2010” <br>
<img src="CompilingGuidelineWin/DownloadVS2010.jpg" width="80%">
</li>
<li>
Mount the downloaded ISO file by doubleclicking it
</li>
<li>
Run the file "autorun.exe" as administrator
</li>
<li>
Install Microsoft Visual Studio 2010 with the default settings
</li>
</ol>
The installation of the Microsoft SQL Server 2008 Express Service Pack 1 (x64) may fail, but it is not required for compiling VeraCrypt.
</p>
</div>
</div>
<div class="textbox" id="InstallationOfMicrosoftVisualStudio2010ServicePack1">
<a href="#InstallationOfMicrosoftVisualStudio2010ServicePack1">Installation of Microsoft Visual Studio 2010 Service Pack 1</a>
<div class="texttohide">
<p>
Note: The content the official installer from Microsoft tries to download is no longer available. Therefore, it is necessary to use an offline installer.
<ol>
<li>
Visit the website of the internet archive and download the iso image of the Microsoft Visual Studio 2010 Service Pack 1:<br>
<a href="https://archive.org/details/vs-2010-sp-1dvd-1" target="_blank">https://archive.org/details/vs-2010-sp-1dvd-1</a>
</li>
<li>
Mount the downloaded ISO file by doubleclicking it
</li>
<li>
Run the file "Setup.exe" as administrator
</li>
<li>
Install Microsoft Visual Studio 2010 Service Pack 1 with the default settings
</li>
</ol>
</p>
</div>
</div>
<div class="textbox" id="InstallationOfNASM">
<a href="#InstallationOfNASM">Installation of NASM</a>
<div class="texttohide">
<p>
<ol>
<li>
Download “nasm-2.08-installer.exe” at: <br>
<a href="https://www.nasm.us/pub/nasm/releasebuilds/2.08/win32/" target="_blank">https://www.nasm.us/pub/nasm/releasebuilds/2.08/win32/</a>
</li>
<li>
Run the file as administrator
</li>
<li>
Install NASM with the default settings
</li>
<li>
Add NASM to the path Variable. This will make the command globally available on the command line. <br>
<ol style="list-style-type: upper-roman;">
<li>
Open a file explorer
</li>
<li>
Within the left file tree, please make a right click on "This PC" and select "Properties" <br>
<img src="CompilingGuidelineWin/SelectThisPC.jpg" width="40%">
</li>
<li>
Within the right menu, please click on "Advanced system settings" <br>
<img src="CompilingGuidelineWin/SelectAdvancedSystemSettings.jpg" width="50%">
</li>
<li>
Please click on "Environment Variables" <br>
<img src="CompilingGuidelineWin/SelectEnvironmentVariables.jpg" width="17%">
</li>
<li>
Within the area of the system variables, please select the "Path" variable and click on "Edit..." <br>
<img src="CompilingGuidelineWin/SelectPathVariable.jpg" width="25%">
</li>
<li>
Click on "New" and add the following value: <br>
<p style="font-family: 'Courier New', monospace;">C:\Program Files (x86)\nasm</p>
</li>
<li>
Close the windows by clicking on "OK"
</li>
</ol>
</li>
<li>
To check if the configuration is working correctly, please open a command prompt and watch the output of the following command: <br>
<p style="font-family: 'Courier New', monospace;">nasm</p> <br>
<img src="CompilingGuidelineWin/NasmCommandLine.jpg" width="50%">
</li>
</ol>
</p>
</div>
</div>
<div class="textbox" id="InstallationOfYASM">
<a href="#InstallationOfYASM">Installation of YASM</a>
<div class="texttohide">
<p>
<ol>
<li>
Please create the following folder: <br>
C:\Program Files\YASM
</li>
<li>
Please download the file "Win64 VS2010 .zip" at: <br>
<a href="https://yasm.tortall.net/Download.html" target="_blank">https://yasm.tortall.net/Download.html</a>
</li>
<li>
Your browser might inform you that the file might be a security risk due to the low download rate or the unencrypted connection. Nevertheless, the official website is the most reliable source for this file, so we recommend to allow the download
</li>
<li>
Unzip the zip file and copy the files to “C:\Program Files\YASM”
</li>
<li>
Please download the file "Win64 .exe" at: <br>
<a href="https://yasm.tortall.net/Download.html" target="_blank">https://yasm.tortall.net/Download.html</a>
</li>
<li>
Your browser might inform you that the file might be a security risk due to the low download rate or the unencrypted connection. Nevertheless, the official website is the most reliable source for this file, so we recommend to allow the download
</li>
<li>
Rename the file to “yasm.exe” and copy it to “C:\Program Files\YASM”
</li>
<li>
Add YASM to the path Variable and create a new system variable for YASM. This will make the command globally available on the command line. <br>
<ol style="list-style-type: upper-roman;">
<li>
Open a file explorer
</li>
<li>
Within the left file tree, please make a right click on "This PC" and select "Properties" <br>
<img src="CompilingGuidelineWin/SelectThisPC.jpg" width="40%">
</li>
<li>
Within the right menu, please click on "Advanced system settings" <br>
<img src="CompilingGuidelineWin/SelectAdvancedSystemSettings.jpg" width="50%">
</li>
<li>
Please click on "Environment Variables" <br>
<img src="CompilingGuidelineWin/SelectEnvironmentVariables.jpg" width="17%">
</li>
<li>
Within the area of the system variables, please select the "Path" variable and click on "Edit..." <br>
<img src="CompilingGuidelineWin/SelectPathVariable.jpg" width="25%">
</li>
<li>
Click on "New" and add the following value: <br>
<p style="font-family: 'Courier New', monospace;">C:\Program Files\YASM</p>
</li>
<li>
Close the top window by clicking on "OK"
</li>
<li>
Within the area of the system variables, please click on "New..." <br>
<img src="CompilingGuidelineWin/AddNewSystemVar.jpg" width="25%">
</li>
<li>
Fill out the form with the following values: <br>
<p style="font-family: 'Courier New', monospace;">Variable name: YASMPATH<br> Variable value: C:\Program Files\YASM</p>
</li>
<li>
Close the windows by clicking on "OK"
</li>
</ol>
</li>
<li>
To check if the configuration is working correctly, please open a command prompt and watch the output of the following command: <br>
<p style="font-family: 'Courier New', monospace;">yasm</p> <br>
and <br>
<p style="font-family: 'Courier New', monospace;">vsyasm</p> <br>
<img src="CompilingGuidelineWin/YasmCommandLine.jpg" width="50%">
</li>
</ol>
</p>
</div>
</div>
<div class="textbox" id="InstallationOfVisualCPP">
<a href="#InstallationOfVisualCPP">Installation of Microsoft Visual C++ 1.52</a>
<div class="texttohide">
<p>
<ol>
<li>
Visual C++ 1.52 is available via the paid Microsoft MSDN subscription. If you do not have a subscription, you download the ISO image via the internet archive: <br>
<a href="https://archive.org/details/ms-vc152" target="_blank">https://archive.org/details/ms-vc152</a>
</li>
<li>
Create the folder “C:\MSVC15”
</li>
<li>
Mount the ISO file and copy the content of the folder “MSVC” to “C:\MSVC15”
</li>
<li>
Create a system variable for Microsoft Visual C++ 1.52 <br>
<ol style="list-style-type: upper-roman;">
<li>
Open a file explorer
</li>
<li>
Within the left file tree, please make a right click on "This PC" and select "Properties" <br>
<img src="CompilingGuidelineWin/SelectThisPC.jpg" width="40%">
</li>
<li>
Within the right menu, please click on "Advanced system settings" <br>
<img src="CompilingGuidelineWin/SelectAdvancedSystemSettings.jpg" width="50%">
</li>
<li>
Please click on "Environment Variables" <br>
<img src="CompilingGuidelineWin/SelectEnvironmentVariables.jpg" width="17%">
</li>
<li>
Within the area of the system variables, please click on "New..." <br>
<img src="CompilingGuidelineWin/AddNewSystemVar.jpg" width="25%">
</li>
<li>
Fill out the form with the following values: <br>
<p style="font-family: 'Courier New', monospace;">Variable name: MSVC16_ROOT<br> Variable value: C:\MSVC15</p>
</li>
<li>
Close the windows by clicking on "OK"
</li>
</ol>
</li>
</ol>
</p>
</div>
</div>
<div class="textbox" id="InstallationOfWindowsSDK71PP">
<a href="#InstallationOfWindowsSDK71PP">Installation of the Windows SDK 7.1</a>
<div class="texttohide">
<p>
The installer requires .Net Framework 4 (Not a newer one like .Net Framework 4.8!). Since a newer version is already preinstalled with Windows 10, the installer has to be tricked:
<ol>
<li>
Click on the start button and search for: "regedit.msc". Start the first finding.
</li>
<li>
Navigate to "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\NET Framework Setup\NDP\v4\"
</li>
<li>
Change the permissions for the "Client" folder, so you can edit the keys: <br>
<ol style="list-style-type: upper-roman;">
<li>
Right click on the subfolder "Client" and select "Permissions..."
</li>
<li>
Click on "Advanced" <br>
<img src="CompilingGuidelineWin/RegeditPermissions-1.jpg" width="17%">
</li>
<li>
Change the owner to your user and click on "Add" <br>
<img src="CompilingGuidelineWin/RegeditPermissions-2.jpg" width="35%">
</li>
<li>
Set the principal to your user, select "Full Control" and click on "OK" <br>
<img src="CompilingGuidelineWin/RegeditPermissions-3.jpg" width="35%">
</li>
<li>
Within the folder "Client" note down the value of the entry "Version"
</li>
<li>
Doubleclick on the entry "Version" and change the value to "4.0.30319" <br>
<img src="CompilingGuidelineWin/RegeditPermissions-4.jpg" width="30%">
</li>
</ol>
</li>
<li>
Change the permissions for the "Full" folder, so you can edit the keys: <br>
<ol style="list-style-type: upper-roman;">
<li>
Right click on the subfolder "Full" and select "Permissions..."
</li>
<li>
Click on "Advanced" <br>
<img src="CompilingGuidelineWin/RegeditPermissions-1.jpg" width="17%">
</li>
<li>
Change the owner to your user and click on "Add" <br>
<img src="CompilingGuidelineWin/RegeditPermissions-2.jpg" width="35%">
</li>
<li>
Set the principal to your user, select "Full Control" and click on "OK" <br>
<img src="CompilingGuidelineWin/RegeditPermissions-3.jpg" width="35%">
</li>
<li>
Within the folder "Full" note down the value of the entry "Version"
</li>
<li>
Doubleclick on the entry "Version" and change the value to "4.0.30319" <br>
<img src="CompilingGuidelineWin/RegeditPermissions-4.jpg" width="30%">
</li>
</ol>
</li>
<li>
Download the Windows SDK 7.1 at: <br>
<a href="https://www.microsoft.com/en-us/download/details.aspx?id=8279" target="_blank">https://www.microsoft.com/en-us/download/details.aspx?id=8279</a>
</li>
<li>
Run the downloaded file as administrator and install the application with default settings
</li>
<li>
After the installation, revert the changes done in the registry editor. <br>
<b>Note:</b> The owner "TrustedInstaller" can be restored by searching for: "NT Service\TrustedInstaller"
</li>
</ol>
</p>
</div>
</div>
<div class="textbox" id="InstallationOfWDK71PP">
<a href="#InstallationOfWDK71PP">Installation of the Windows Driver Kit 7.1</a>
<div class="texttohide">
<p>
<ol>
<li>
Please download the ISO of the Windows Diver Kit 7.1 at: <br>
<a href="https://www.microsoft.com/en-us/download/details.aspx?id=11800" target="_blank">https://www.microsoft.com/en-us/download/details.aspx?id=11800</a>
</li>
<li>
Mount the downloaded ISO file by doubleclicking it
</li>
<li>
Run the file "KitSetup.exe" as administrator. Within the installation select all features to be installed. <br>
<b>Note: </b>It might be that during the installed you are requested to install the .NET Framework 3.5. In this case click on "Download and install this feature".
</li>
<li>
Install the Driver Kit to the default location
</li>
</ol>
</p>
</div>
</div>
<div class="textbox" id="InstallationOfSDK81PP">
<a href="#InstallationOfSDK81PP">Installation of the Windows 8.1 SDK</a>
<div class="texttohide">
<p>
<ol>
<li>
Please download the ISO of the Windows 8.1 SDK at: <br>
<a href="https://developer.microsoft.com/de-de/windows/downloads/sdk-archive/" target="_blank">https://developer.microsoft.com/de-de/windows/downloads/sdk-archive/</a>
</li>
<li>
Run the downloaded file as administrator and install the Windows 8.1 SDK with default settings
</li>
<li>
Create a system variable for the Windows 8.1 SDK <br>
<ol style="list-style-type: upper-roman;">
<li>
Open a file explorer
</li>
<li>
Within the left file tree, please make a right click on "This PC" and select "Properties" <br>
<img src="CompilingGuidelineWin/SelectThisPC.jpg" width="40%">
</li>
<li>
Within the right menu, please click on "Advanced system settings" <br>
<img src="CompilingGuidelineWin/SelectAdvancedSystemSettings.jpg" width="50%">
</li>
<li>
Please click on "Environment Variables" <br>
<img src="CompilingGuidelineWin/SelectEnvironmentVariables.jpg" width="17%">
</li>
<li>
Within the area of the system variables, please click on "New..." <br>
<img src="CompilingGuidelineWin/AddNewSystemVar.jpg" width="25%">
</li>
<li>
Fill out the form with the following values: <br>
<p style="font-family: 'Courier New', monospace;">Variable name: WSDK81<br> Variable value: C:\Program Files (x86)\Windows Kits\8.1\</p>
</li>
<li>
Close the windows by clicking on "OK"
</li>
</ol>
</li>
</ol>
</p>
</div>
</div>
<div class="textbox" id="InstallationOfGzip">
<a href="#InstallationOfGzip">Installation of gzip</a>
<div class="texttohide">
<p>
<ol>
<li>
Please create the following folder: <br>
C:\Program Files (x86)\gzip
</li>
<li>
Please download gzip version at: <br>
<a href="https://sourceforge.net/projects/gnuwin32/files/gzip/1.3.12-1/gzip-1.3.12-1-bin.zip/download?use-mirror=netix&download=" target="_blank">https://sourceforge.net/projects/gnuwin32/files/gzip/1.3.12-1/gzip-1.3.12-1-bin.zip/download?use-mirror=netix&download=</a>
</li>
<li>
Copy the content of the downloaded zip to “C:\Program Files (x86)\gzip”
</li>
<li>
Add gzip to the path Variable. This will make the command globally available on the command line. <br>
<ol style="list-style-type: upper-roman;">
<li>
Open a file explorer
</li>
<li>
Within the left file tree, please make a right click on "This PC" and select "Properties" <br>
<img src="CompilingGuidelineWin/SelectThisPC.jpg" width="40%">
</li>
<li>
Within the right menu, please click on "Advanced system settings" <br>
<img src="CompilingGuidelineWin/SelectAdvancedSystemSettings.jpg" width="50%">
</li>
<li>
Please click on "Environment Variables" <br>
<img src="CompilingGuidelineWin/SelectEnvironmentVariables.jpg" width="17%">
</li>
<li>
Within the area of the system variables, please select the "Path" variable and click on "Edit..." <br>
<img src="CompilingGuidelineWin/SelectPathVariable.jpg" width="25%">
</li>
<li>
Click on "New" and add the following value: <br>
<p style="font-family: 'Courier New', monospace;">C:\Program Files (x86)\gzip\bin</p>
</li>
<li>
Close the windows by clicking on "OK"
</li>
</ol>
</li>
<li>
To check if the configuration is working correctly, please open a command prompt and watch the output of the following command: <br>
<p style="font-family: 'Courier New', monospace;">gzip</p> <br>
<img src="CompilingGuidelineWin/gzipCommandLine.jpg" width="50%">
</li>
</ol>
</p>
</div>
</div>
<div class="textbox" id="InstallationOfUpx">
<a href="#InstallationOfUpx">Installation of upx</a>
<div class="texttohide">
<p>
<ol>
<li>
Please create the following folder: <br>
C:\Program Files (x86)\upx
</li>
<li>
Please download the latest upx-X-XX-win64.zip version at: <br>
<a href="https://github.com/upx/upx/releases/tag/v3.96" target="_blank">https://github.com/upx/upx/releases/tag/v3.96</a>
</li>
<li>
Copy the content of the downloaded zip to “C:\Program Files (x86)\upx”
</li>
<li>
Add gzip to the path Variable. This will make the command globally available on the command line. <br>
<ol style="list-style-type: upper-roman;">
<li>
Open a file explorer
</li>
<li>
Within the left file tree, please make a right click on "This PC" and select "Properties" <br>
<img src="CompilingGuidelineWin/SelectThisPC.jpg" width="40%">
</li>
<li>
Within the right menu, please click on "Advanced system settings" <br>
<img src="CompilingGuidelineWin/SelectAdvancedSystemSettings.jpg" width="50%">
</li>
<li>
Please click on "Environment Variables" <br>
<img src="CompilingGuidelineWin/SelectEnvironmentVariables.jpg" width="17%">
</li>
<li>
Within the area of the system variables, please select the "Path" variable and click on "Edit..." <br>
<img src="CompilingGuidelineWin/SelectPathVariable.jpg" width="25%">
</li>
<li>
Click on "New" and add the following value: <br>
<p style="font-family: 'Courier New', monospace;">C:\Program Files (x86)\upx</p>
</li>
<li>
Close the windows by clicking on "OK"
</li>
</ol>
</li>
<li>
To check if the configuration is working correctly, please open a command prompt and watch the output of the following command: <br>
<p style="font-family: 'Courier New', monospace;">upx</p> <br>
<img src="CompilingGuidelineWin/upxCommandLine.jpg" width="50%">
</li>
</ol>
</p>
</div>
</div>
<div class="textbox" id="InstallationOf7zip">
<a href="#InstallationOf7zip">Installation of 7zip</a>
<div class="texttohide">
<p>
<ol>
<li>
Please download the latest version of 7zip at: <br>
<a href="https://www.7-zip.de/" target="_blank">https://www.7-zip.de/</a>
</li>
<li>
Run the downloaded file as administrator and install 7zip with default settings
</li>
</ol>
</p>
</div>
</div>
<div class="textbox" id="InstallationOfWix3">
<a href="#InstallationOfWix3">Installation of Wix3</a>
<div class="texttohide">
<p>
<ol>
<li>
Please download wix311.exe at: <br>
<a href="https://github.com/wixtoolset/wix3/releases" target="_blank">https://github.com/wixtoolset/wix3/releases</a>
</li>
<li>
Run the downloaded file as administrator and install WiX Toolset with default settings
</li>
</ol>
</p>
</div>
</div>
<div class="textbox" id="InstallationOfVS2019">
<a href="#InstallationOfVS2019">Installation of Microsoft Visual Studio 2019</a>
<div class="texttohide">
<p>
<ol>
<li>
Visit the following Microsoft website and log in with a free Microsoft account: <br>
<a href="https://my.visualstudio.com/Downloads?q=visual%20studio%202019%20Professional" target="_blank">https://my.visualstudio.com/Downloads?q=visual%20studio%202019%20Professional</a>
</li>
<li>
Please download the latest (trial) version of “Visual Studio Professional 2019” <br>
<img src="CompilingGuidelineWin/DownloadVS2019.jpg" width="80%">
</li>
<li>
Run the downloaded file as administrator and go through the wizard. <br>
Select the following Workloads for installation: <br>
<ol style="list-style-type: upper-roman;">
<li>
Desktop development with C++
</li>
<li>
.NET desktop development
</li>
</ol>
Select the following individual components for installation:
<ol style="list-style-type: upper-roman;">
<li>
.NET
<ol style="list-style-type: upper-roman;">
<li>
.NET 6.0 Runtime
</li>
<li>
.NET Core 3.1 Runtime (LTS)
</li>
<li>
.NET Framework 4 targeting pack
</li>
<li>
.NET Framework 4.5 targeting pack
</li>
<li>
.NET Framework 4.5.1 targeting pack
</li>
<li>
.NET Framework 4.5.2 targeting pack
</li>
<li>
.NET Framework 4.6 targeting pack
</li>
<li>
.NET Framework 4.6.1 targeting pack
</li>
<li>
.NET Framework 4.7.2 targeting pack
</li>
<li>
.NET Framework 4.8 SDK
</li>
<li>
.NET Framework 4.8 targeting pack
</li>
<li>
.NET SDK
</li>
<li>
ML.NET Model Builder (Preview)
</li>
</ol>
</li>
<li>
Cloud, database, and server
<ol style="list-style-type: upper-roman;">
<li>
CLR data types for SQL Server
</li>
<li>
Connectivity and publishing tools
</li>
</ol>
</li>
<li>
Code tools
<ol style="list-style-type: upper-roman;">
<li>
NuGet package manager
</li>
<li>
Text Template Transformation
</li>
</ol>
</li>
<li>
Compilers, build tools, and runtimes
<ol style="list-style-type: upper-roman;">
<li>
.NET Compiler Platform SDK
</li>
<li>
C# and Visual Basic Roslyn compilers
</li>
<li>
C++ 2019 Redistributable Update
</li>
<li>
C++ CMake tools for Windows
</li>
<li>
C++/CLI support for v142 build tools (Latest)
</li>
<li>
MSBuild
</li>
<li>
MSVC v142 - VS 2019 C++ ARM64 build tools (Latest)
</li>
<li>
MSVC v142 - VS 2019 C++ ARM64 Spectre-mitigated libs (Latest)
</li>
<li>
MSVC v142 - VS 2019 C++ x64/x86 build tools (Latest)
</li>
<li>
MSVC v142 - VS 2019 C++ x64/x86 Spectre-mitigated libs (Latest)
</li>
</ol>
</li>
<li>
Debugging and testing
<ol style="list-style-type: upper-roman;">
<li>
.NET profiling tools
</li>
<li>
C++ AddressSanatizer
</li>
<li>
C++ profiling tools
</li>
<li>
Just-In-Time debugger
</li>
<li>
Test Adapter for Boost.Test
</li>
<li>
Test Adapter for Google Test
</li>
</ol>
</li>
<li>
Development activities
<ol style="list-style-type: upper-roman;">
<li>
C# and Visual Basic
</li>
<li>
C++ core features
</li>
<li>
F# language support
</li>
<li>
IntelliCode
</li>
<li>
JavaScript and TypeScript language support
</li>
<li>
Live Share
</li>
</ol>
</li>
<li>
Emulators
<ol style="list-style-type: upper-roman;">
NONE
</ol>
</li>
<li>
Games and Graphics
<ol style="list-style-type: upper-roman;">
<li>
Graphics debugger and GPU profiler for DirectX
</li>
</ol>
</li>
<li>
SDKs, libraries, and frameworks
<ol style="list-style-type: upper-roman;">
<li>
C++ ATL for latest v142 build tools (ARM64)
</li>
<li>
C++ ATL for latest v142 build tools (x86 & x64)
</li>
<li>
C++ ATL for latest v142 build tools with Spectre Mitigations (ARM64)
</li>
<li>
C++ ATL for latest v142 build tools with Spectre Mitigations (x86 & x64)
</li>
<li>
C++ MFC for latest v142 build tools (ARM64)
</li>
<li>
C++ MFC for latest v142 build tools (x86 & x64)
</li>
<li>
C++ MFC for latest v142 build tools with Spectre Mitigations (ARM64)
</li>
<li>
C++ MFC for latest v142 build tools with Spectre Mitigations (x86 & x64)
</li>
<li>
Entity Framework 6 tools
</li>
<li>
TypeScript 4.3 SDK
</li>
<li>
Windows 10 SDK (10.0.19041.0)
</li>
<li>
Windows Universal C Runtime
</li>
</ol>
</li>
</ol>
</li>
</ol>
</p>
</div>
</div>
<div class="textbox" id="InstallationOfWDK10">
<a href="#InstallationOfWDK10">Installation of the Windows Driver Kit version 2004</a>
<div class="texttohide">
<p>
<ol>
<li>
Please download the Windows Driver Kit (WDK) version 2004 at: <br>
<a href="https://docs.microsoft.com/en-us/windows-hardware/drivers/other-wdk-downloads" target="_blank">https://docs.microsoft.com/en-us/windows-hardware/drivers/other-wdk-downloads</a>
</li>
<li>
Run the downloaded file as administrator and install the WDK with default settings
</li>
<li>
At the end of the installation you will be asked if you want to "install Windows Driver Kit Visual Studio extension". <br>
Please make sure, that this option is selected before closing the dialog.
</li>
<li>
A different setup will start automatically and will detect Visual Studio Professional 2019 as possible target for the extension. <br>
Please select it and proceed with the installation.
</li>
</ol>
</p>
</div>
</div>
<div class="textbox" id="InstallationOfVisualBuildTools">
<a href="#InstallationOfVisualBuildTools">Installation of the Visual Studio build tools</a>
<div class="texttohide">
<p>
<ol>
<li>
Visit the following Microsoft website and log in with a free Microsoft account: <br>
<a href="https://my.visualstudio.com/Downloads?q=visual%20studio%202019%20build%20tools" target="_blank">https://my.visualstudio.com/Downloads?q=visual%20studio%202019%20build%20tools</a>
</li>
<li>
Please download the latest version of “Build Tools for Visual Studio 2019” <br>
<img src="CompilingGuidelineWin/DownloadVSBuildTools.jpg" width="80%">
</li>
<li>
Run the downloaded file as administrator and go through the wizard. Select the following individual components for installation:
<ol style="list-style-type: upper-roman;">
<li>
.NET
<ol style="list-style-type: upper-roman;">
NONE
</ol>
</li>
<li>
Cloud, database, and server
<ol style="list-style-type: upper-roman;">
NONE
</ol>
</li>
<li>
Code tools
<ol style="list-style-type: upper-roman;">
NONE
</ol>
</li>
<li>
Compilers, build tools, and runtimes
<ol style="list-style-type: upper-roman;">
<li>
C++/CLI support for v142 build tools (Latest)
</li>
<li>
MSVC v142 - VS 2019 C++ ARM64 build tools (Latest)
</li>
<li>
MSVC v142 - VS 2019 C++ ARM64 Spectre-mitigated libs (Latest)
</li>
<li>
MSVC v142 - VS 2019 C++ x64/x86 build tools (Latest)
</li>
<li>
MSVC v142 - VS 2019 C++ x64/x86 Spectre-mitigated libs (Latest)
</li>
</ol>
</li>
<li>
Debugging and testing
<ol style="list-style-type: upper-roman;">
NONE
</ol>
</li>
<li>
Development activities
<ol style="list-style-type: upper-roman;">
NONE
</ol>
</li>
<li>
SDKs, libraries, and frameworks
<ol style="list-style-type: upper-roman;">
<li>
C++ ATL for latest v142 build tools (ARM64)
</li>
<li>
C++ ATL for latest v142 build tools (x86 & x64)
</li>
<li>