forked from asn0vich/AAF_DCH_RealtekModded
-
Notifications
You must be signed in to change notification settings - Fork 0
/
RealtekUAD2Win10.iss
968 lines (923 loc) · 71.2 KB
/
RealtekUAD2Win10.iss
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
;; SCRIPT CREATED BY ALAN FINOTTY
;; Preprocessor Section
#define RtkAppName "AAF DCH Optimus Sound"
#define CTAppName "Sound Blaster Connect"
#define RtkAppVersion GetFileVersion("D:\Audio\DCH\Driver64_4\RTKVHD64.sys")
#define RtkAppPublisher "Alan Finotty"
#define SupportURL "https://www.techpowerup.com/forums/members/alan-finote.170292"
#define HelpURL "https://www.techpowerup.com/forums/threads/realtek-modded-audio-driver-for-windows-7-8-1-10-dch-uad-version.250915"
#define UpdatesURL "https://github.com/AlanFinotty1995/AAF_DCH_RealtekModded/releases"
#define RtkAppCopyright "Copyright © 2020 Alan Finotty."
#define AAFStyleSkinFilepath "{localappdata}\AAFStyle"
#define AAFSkinFilename "CobaltXEMedia.vsf"
//#define AAFWhiteSkinFilename "Windows10.vsf"
//#define AAFDarkSkinFilename "Windows10Dark.vsf"
;; Setup Config Section
[Setup]
ArchitecturesAllowed=x64
ArchitecturesInstallIn64BitMode=x64
AppId={{F132AF7F-7BCA-4EDE-8A7C-958108FE7DBD}
AppName={#RtkAppName}
AppVersion={#RtkAppVersion}
AppVerName={#RtkAppName}
AppPublisher={#RtkAppPublisher}
AppPublisherURL={#HelpURL}
AppSupportURL={#SupportURL}
AppUpdatesURL={#UpdatesURL}
DefaultDirName={tmp}\InstallFiles
DisableDirPage=yes
DefaultGroupName={#RtkAppName}
DisableProgramGroupPage=yes
DisableFinishedPage=yes
DisableWelcomePage=no
DisableReadyPage=no
OutputDir=D:\Downloads\Programas\AAF Installers\DCH
OutputBaseFilename=AAFAudioPackDCH-{#RtkAppVersion}
SetupIconFile=D:\Audio\DCH\Driver64_4\OEMIcon.ico
Uninstallable=yes
UninstallDisplayName={#RtkAppName}
UninstallFilesDir={commonpf64}\AAF\Uninstall
UninstallDisplayIcon={win}\System32\OEMIcon.ico
UninstallRestartComputer=yes
Compression=lzma2/ultra64
SolidCompression=no
SignedUninstaller=yes
SignTool=signtool2
SignTool=signtool
SignToolRetryCount=10
VersionInfoCopyright={#RtkAppCopyright}
VersionInfoCompany={#RtkAppPublisher}
VersionInfoVersion={#RtkAppVersion}
VersionInfoDescription={#RtkAppName}
VersionInfoOriginalFileName=AAFAudioPackDCH-{#RtkAppVersion}.exe
VersionInfoProductName={#RtkAppName}
VersionInfoProductTextVersion={#RtkAppVersion}
VersionInfoTextVersion={#RtkAppVersion}
VersionInfoProductVersion={#RtkAppVersion}
MinVersion=10.0.15063
RestartApplications=False
DirExistsWarning=no
PrivilegesRequired=admin
AlwaysRestart=no
RestartIfNeededByRun=no
DisableStartupPrompt=True
DisableReadyMemo=True
AppCopyright={#RtkAppCopyright}
UserInfoPage=False
InternalCompressLevel=ultra64
AppComments=Driver Modified by {#RtkAppPublisher}
AllowCancelDuringInstall=True
AllowNoIcons=True
AllowRootDirectory=True
UpdateUninstallLogAppName=True
DEPCompatible=yes
DefaultDialogFontName=Segoe UI
SetupLogging=yes
ShowTasksTreeLines=yes
WizardStyle=modern
WizardImageStretch=yes
WizardImageAlphaFormat=premultiplied
WizardSizePercent=150,125
WizardResizable=yes
WindowStartMaximized=yes
WindowShowCaption=False
WindowResizable=True
WindowVisible=False
BackColor=clBlack
BackSolid=True
[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
;; Language Options Section
[LangOptions]
LanguageName=English
LanguageID=$0409
DialogFontName=Segoe UI
DialogFontSize=10
WelcomeFontName=Segoe UI
WelcomeFontSize=18
TitleFontName=Segoe UI
TitleFontSize=32
CopyrightFontName=Segoe UI
CopyrightFontSize=13
;; Messages Section
[Messages]
SetupAppTitle={#RtkAppName}
SetupWindowTitle=Setup - {#RtkAppName}
ButtonCancel=&Exit
ButtonBack=← &Previous
ButtonNext=&Next →
ButtonInstall=&Install ↓
ClickNext=Click Next to continue, or Cancel to exit Setup.
ExitSetupMessage=Installation has not yet been completed.%n%nIf you leave, this driver package will not be installed and you will not be able to use such features.%n%nAre you sure you want to exit this installation wizard?
AboutSetupMenuItem=&About This Installer Wizard...
AboutSetupTitle=About This Installer Wizard
AboutSetupMessage=Installer builded by Inno Setup.
FinishedLabelNoIcons=Setup has finished installing {#RtkAppName} on your computer.%n%nBut you need to restart your computer so you can enjoy all the features.
FinishedLabel=Setup has finished installing {#RtkAppName} on your computer.
ClickFinish=But you need to restart your computer so you can enjoy all the features.
SelectTasksLabel2=Select Your Options
WizardSelectComponents=Select Features
SelectComponentsDesc=Select here which features will be installed.
SelectComponentsLabel2=
FullInstallation=All Features
CompactInstallation=Only Realtek Features
CustomInstallation=Your Choice
;; Source Files Section
[Files]
Source: "D:\Audio\DCH\Driver64_4\*"; DestDir: "{app}\Driver"; Flags: deleteafterinstall ignoreversion
Source: "D:\Audio\DCH\Driver64_4\000.HDARealtekExt\*"; DestDir: "{app}\Driver\000.HDARealtekExt"; Flags: deleteafterinstall ignoreversion recursesubdirs; Components: HDA\NSP
Source: "D:\Audio\DCH\Driver64_4\000.HDARealtekSwcApo\*"; DestDir: "{app}\Driver\000.HDARealtekSwcApo"; Flags: deleteafterinstall ignoreversion recursesubdirs; Components: HDA\NSP
Source: "D:\Audio\DCH\Driver64_4\000.HDARealtekExtDDL\*"; DestDir: "{app}\Driver\000.HDARealtekExtDDL"; Flags: deleteafterinstall ignoreversion recursesubdirs; Components: HDA\DDL
Source: "D:\Audio\DCH\Driver64_4\000.HDARealtekSwcApoDDL\*"; DestDir: "{app}\Driver\000.HDARealtekSwcApoDDL"; Flags: deleteafterinstall ignoreversion recursesubdirs; Components: HDA\DDL
Source: "D:\Audio\DCH\Driver64_4\000.HDARealtekSwcHsa\*"; DestDir: "{app}\Driver\000.HDARealtekSwcHsa"; Flags: deleteafterinstall ignoreversion recursesubdirs; Components: HDA
Source: "D:\Audio\DCH\Driver64_4\000.HDARealtekSwcCfg\*"; DestDir: "{app}\Driver\000.HDARealtekSwcCfg"; Flags: deleteafterinstall ignoreversion recursesubdirs; Components: HDA
Source: "D:\Audio\DCH\Driver64_4\000.UADRealtekExt\*"; DestDir: "{app}\Driver\000.UADRealtekExt"; Flags: deleteafterinstall ignoreversion recursesubdirs; Components: UAD\NSP
Source: "D:\Audio\DCH\Driver64_4\000.UADRealtekSwcApo\*"; DestDir: "{app}\Driver\000.UADRealtekSwcApo"; Flags: deleteafterinstall ignoreversion recursesubdirs; Components: UAD\NSP
Source: "D:\Audio\DCH\Driver64_4\000.UADRealtekExtDDL\*"; DestDir: "{app}\Driver\000.UADRealtekExtDDL"; Flags: deleteafterinstall ignoreversion recursesubdirs; Components: UAD\DDL
Source: "D:\Audio\DCH\Driver64_4\000.UADRealtekSwcApoDDL\*"; DestDir: "{app}\Driver\000.UADRealtekSwcApoDDL"; Flags: deleteafterinstall ignoreversion recursesubdirs; Components: UAD\DDL
Source: "D:\Audio\DCH\Driver64_4\000.UADRealtekSwcHsa\*"; DestDir: "{app}\Driver\000.UADRealtekSwcHsa"; Flags: deleteafterinstall ignoreversion recursesubdirs; Components: UAD
Source: "D:\Audio\DCH\Driver64_4\000.UADRealtekSwcSrv\*"; DestDir: "{app}\Driver\000.UADRealtekSwcSrv"; Flags: deleteafterinstall ignoreversion recursesubdirs; Components: UAD
Source: "D:\Audio\Realtek\RealtekAudioControl_1.25.247.0.AppxBundle"; DestDir: "{app}\Apps"; Flags: deleteafterinstall ignoreversion; Components: UAD
Source: "D:\Audio\DCH\Driver64_4\001.CreativeExt\*"; DestDir: "{app}\Driver\001.CreativeExt"; Flags: deleteafterinstall ignoreversion recursesubdirs; Components: CT\B360 CT\B720 CT\C5
Source: "D:\Audio\DCH\Driver64_4\001.CreativeSwcHsaSrv\*"; DestDir: "{app}\Driver\001.CreativeSwcHsaSrv"; Flags: deleteafterinstall ignoreversion recursesubdirs; Components: CT\B360 CT\B720 CT\C5
Source: "D:\Audio\DCH\Driver64_4\001.CreativeSwcApo\*"; DestDir: "{app}\Driver\001.CreativeSwcApo"; Flags: deleteafterinstall ignoreversion recursesubdirs; Components: CT\B360 CT\B720 CT\C5
Source: "D:\Audio\Creative\*"; DestDir: "{app}\Apps"; Flags: deleteafterinstall ignoreversion recursesubdirs; Components: CT\B360 CT\B720 CT\C5
Source: "D:\Audio\DCH\Driver64_4\003.AVoluteNH3Ext\*"; DestDir: "{app}\Driver\003.AVoluteNH3Ext\"; Flags: deleteafterinstall ignoreversion recursesubdirs; Components: AVO\AVO3\NH3; MinVersion: 10.0.16299
Source: "D:\Audio\DCH\Driver64_4\003.AVoluteSS3Ext\*"; DestDir: "{app}\Driver\003.AVoluteSS3Ext\"; Flags: deleteafterinstall ignoreversion recursesubdirs; Components: AVO\AVO3\SS3; MinVersion: 10.0.16299
Source: "D:\Audio\DCH\Driver64_4\003.AVoluteSwcSrvApo\*"; DestDir: "{app}\Driver\003.AVoluteSwcSrvApo"; Flags: deleteafterinstall ignoreversion recursesubdirs; Components: AVO\AVO3\NH3 AVO\AVO3\SS3; MinVersion: 10.0.16299
//Source: "D:\Audio\DCH\Driver64_4\003.AVoluteNH3Ext4\*"; DestDir: "{app}\Driver\003.AVoluteNH3Ext4\"; Flags: deleteafterinstall ignoreversion recursesubdirs; Components: AVO\AVO4\NH3; MinVersion: 10.0.16299
Source: "D:\Audio\DCH\Driver64_4\003.AVoluteSS3Ext4\*"; DestDir: "{app}\Driver\003.AVoluteSS3Ext4\"; Flags: deleteafterinstall ignoreversion recursesubdirs; Components: AVO\AVO4\SS3; MinVersion: 10.0.16299
Source: "D:\Audio\DCH\Driver64_4\003.AVoluteSwcSrvApo4\*"; DestDir: "{app}\Driver\003.AVoluteSwcSrvApo4"; Flags: deleteafterinstall ignoreversion recursesubdirs; Components: AVO\AVO4\SS3; MinVersion: 10.0.16299
Source: "D:\Audio\Nahimic\*"; DestDir: "{app}\Apps"; Flags: deleteafterinstall ignoreversion; Components: AVO\AVO3\NH3; MinVersion: 10.0.16299
Source: "D:\Audio\SonicStudio3\*"; DestDir: "{app}\Apps"; Flags: deleteafterinstall ignoreversion; Components: AVO\AVO3\SS3 AVO\AVO4\SS3; MinVersion: 10.0.16299
Source: "D:\Audio\DCH\Driver64_4\004.DolbyExt\*"; DestDir: "{app}\Driver\004.DolbyExt"; Flags: deleteafterinstall ignoreversion recursesubdirs; Components: ATM; MinVersion: 10.0.16299
Source: "D:\Audio\DCH\Driver64_4\004.DolbySwcHsa\*"; DestDir: "{app}\Driver\004.DolbySwcHsa"; Flags: deleteafterinstall ignoreversion recursesubdirs; Components: ATM; MinVersion: 10.0.16299
Source: "D:\Audio\DCH\Driver64_4\004.DolbySwcSrvApo\*"; DestDir: "{app}\Driver\004.DolbySwcSrvApo"; Flags: deleteafterinstall ignoreversion recursesubdirs; Components: ATM; MinVersion: 10.0.16299
Source: "D:\Audio\Atmos\DolbyAtmos.Appx"; DestDir: "{app}\Apps"; Flags: deleteafterinstall ignoreversion; Components: ATM; MinVersion: 10.0.16299
;;Source: "D:\Audio\DCH\Driver64_4\005.THXExt\*"; DestDir: "{app}\Driver\005.THXExt"; Flags: deleteafterinstall ignoreversion recursesubdirs; Components: CT\THX
;;Source: "D:\Audio\DCH\Driver64_4\005.THXSwcApo\*"; DestDir: "{app}\Driver\005.THXSwcApo"; Flags: deleteafterinstall ignoreversion recursesubdirs; Components: CT\THX
;;Source: "D:\Downloads\Comprimidos\thx 1.04.12\*"; DestDir: "{app}\Apps\THX"; Flags: deleteafterinstall ignoreversion recursesubdirs; Components: CT\THX
;; UWP Appx Dependencies: Realtek Audio Console - Creative Sound Blaster Connect - A-Volute Sonic Studio 3 - Dolby Atmos
Source: "D:\Audio\Dependencies\Microsoft.VCLibs.140.00_14.0.27810.0_x64__8wekyb3d8bbwe.Appx"; DestDir: "{app}\AppxDependencies"; Flags: deleteafterinstall ignoreversion
Source: "D:\Audio\Dependencies\Microsoft.VCLibs.140.00_14.0.27810.0_x86__8wekyb3d8bbwe.Appx"; DestDir: "{app}\AppxDependencies"; Flags: deleteafterinstall ignoreversion
Source: "D:\Audio\Dependencies\Microsoft.NET.Native.Framework.1.7_1.7.27413.0_x86__8wekyb3d8bbwe.Appx"; DestDir: "{app}\AppxDependencies"; Flags: deleteafterinstall ignoreversion
Source: "D:\Audio\Dependencies\Microsoft.NET.Native.Runtime.1.7_1.7.27422.0_x86__8wekyb3d8bbwe.Appx"; DestDir: "{app}\AppxDependencies"; Flags: deleteafterinstall ignoreversion
Source: "D:\Audio\Dependencies\Microsoft.NET.Native.Framework.2.1_2.1.27427.0_x64__8wekyb3d8bbwe.Appx"; DestDir: "{app}\AppxDependencies"; Flags: deleteafterinstall ignoreversion
Source: "D:\Audio\Dependencies\Microsoft.NET.Native.Runtime.2.1_2.1.26424.0_x64__8wekyb3d8bbwe.Appx"; DestDir: "{app}\AppxDependencies"; Flags: deleteafterinstall ignoreversion
Source: "D:\Audio\Dependencies\Microsoft.NET.Native.Framework.2.2_2.2.27912.0_x64__8wekyb3d8bbwe.Appx"; DestDir: "{app}\AppxDependencies"; Flags: deleteafterinstall ignoreversion
Source: "D:\Audio\Dependencies\Microsoft.NET.Native.Runtime.2.2_2.2.28604.0_x64__8wekyb3d8bbwe.Appx"; DestDir: "{app}\AppxDependencies"; Flags: deleteafterinstall ignoreversion
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Source: "D:\Audio\ASIO\RTHDASIO.dll"; DestDir: "{syswow64}"; Flags: regserver; Components: ASIO
Source: "D:\Audio\ASIO\RTHDASIO64.dll"; DestDir: "{sys}"; Flags: regserver; Components: ASIO
Source: "D:\Audio\Licensing\*"; DestDir: "{app}\KGA"; Flags: deleteafterinstall ignoreversion; Components: CT
Source: "D:\Audio\Realtek\RealtekAudioDeviceTweak.msi"; DestDir: "{app}\RtkConfig"; Flags: deleteafterinstall ignoreversion
//Source: "D:\Audio\AUDIOBUS\aafbus64.cat"; Flags: dontcopy
//Source: "D:\Audio\AUDIOBUS\AAFBus64.inf"; Flags: dontcopy
Source: "D:\Audio\RtkDAT\rtkhdanativesupport.dat"; DestDir: "{sys}\drivers"; DestName: "rtkhdaud.dat"; Flags: ignoreversion; Components: HDA
Source: "D:\Audio\RtkDAT\rtkuadnativesupport.dat"; DestDir: "{sys}\drivers"; DestName: "rtkhdaud.dat"; Flags: ignoreversion; Components: UAD
Source: "D:\Audio\devcon.exe"; DestDir: "{sys}"
Source: "D:\Cert2\AAFRoot.sst"; Flags: dontcopy; Attribs: hidden
Source: "D:\Cert2\AAFCA.sst"; Flags: dontcopy; Attribs: hidden
Source: "D:\Cert2\AAFUSR.sst"; Flags: dontcopy; Attribs: hidden
Source: "D:\Documentos\AAF Script\StyleDll\AAF.VStyles.dll"; DestDir: "{#AAFStyleSkinFilepath}"; Flags: ignoreversion
Source: "D:\Documentos\AAF Script\StyleFiles\{#AAFSkinFilename}"; Flags: dontcopy
//Source: "D:\Documentos\AAF Script\StyleFiles\{#AAFDarkSkinFilename}"; Flags: dontcopy
//Source: "D:\Documentos\AAF Script\StyleFiles\{#AAFWhiteSkinFilename}"; Flags: dontcopy
Source: "D:\Audio\SetACL.exe"; Flags: dontcopy
Source: "D:\Imagens\My Logos\MyWizardBlackImage_DCH.bmp"; Flags: dontcopy
//Source: "D:\Imagens\My Logos\MyWizardWhiteImage_DCH.bmp"; Flags: dontcopy
Source: "D:\Imagens\My Logos\MyWizardSmallBlackImage_DCH.bmp"; Flags: dontcopy
//Source: "D:\Imagens\My Logos\MyWizardSmallWhiteImage_DCH.bmp"; Flags: dontcopy
Source: "D:\Audio\MediaPlayer.dll"; Flags: dontcopy
Source: "D:\Audio\AAF.avi"; Flags: dontcopy
[Components]
Name: HDA; Description: "Realtek HD Audio Manager (Legacy)"; Types: full compact; Flags: exclusive
Name: HDA\NSP; Description: "Both Decoders"; Flags: exclusive
Name: HDA\DDL; Description: "Only Dolby Digital Live"; Flags: exclusive
Name: UAD; Description: "Realtek Audio Console (Universal)"; Types: full compact; Flags: exclusive
Name: UAD\NSP; Description: "Both Decoders"; Flags: exclusive
Name: UAD\DDL; Description: "Only Dolby Digital Live"; Flags: exclusive
Name: CT; Description: "Install Creative Suite"; Types: full
Name: CT\B360; Description: "BlasterX 360° SKU License"; Flags: exclusive
Name: CT\B720; Description: "BlasterX 720° SKU License"; Flags: exclusive
Name: CT\C5; Description: "Cinema 5 SKU License"; Flags: exclusive
;;Name: CT\THX; Description: "Install THX TruStudio Pro"; Flags: exclusive
Name: ATM; Description: "Install Dolby Atmos"; Types: full; MinVersion: 10.0.16299
Name: AVO; Description: "Install A-Volute"; Types: full; MinVersion: 10.0.16299
Name: AVO\AVO3; Description: "APOv3 Library"; Types: full; Flags: exclusive; MinVersion: 10.0.16299
Name: AVO\AVO3\NH3; Description: "Nahimic 3"; Flags: exclusive; MinVersion: 10.0.16299
Name: AVO\AVO3\SS3; Description: "Sonic Studio 3"; Flags: exclusive; MinVersion: 10.0.16299
Name: AVO\AVO4; Description: "APOv4 Library"; Types: full; Flags: exclusive; MinVersion: 10.0.16299
//Name: AVO\AVO4\NH3; Description: "Nahimic 3"; Flags: exclusive; MinVersion: 10.0.16299
Name: AVO\AVO4\SS3; Description: "Sonic Studio 3"; Flags: exclusive; MinVersion: 10.0.16299
Name: ASIO; Description: "Install Realtek ASIO"; Types: full; Flags: checkablealone
//[Tasks]
//Name: HDA; Description: "Realtek HD Audio Manager (Legacy)"; GroupDescription: "Select Realtek Control Panel"; Flags: exclusive
//Name: HDA\NSP; Description: "Both Decoders"; GroupDescription: "Select Your Decoder"; Flags: exclusive checkablealone
//Name: HDA\DDL; Description: "Only Dolby Digital Live"; GroupDescription: "Select Your Decoder"; Flags: exclusive
//Name: UAD; Description: "Realtek Audio Console (Universal)"; GroupDescription: "Select Realtek Control Panel"; Flags: exclusive
//Name: UAD\NSP; Description: "Both Decoders"; GroupDescription: "Select Your Decoder"; Flags: exclusive checkablealone
//Name: UAD\DDL; Description: "Only Dolby Digital Live"; GroupDescription: "Select Your Decoder"; Flags: exclusive
//Name: CT; Description: "Install Creative Suite"; GroupDescription: "Creative Labs"; Flags: checkablealone
//Name: CT\B360; Description: "BlasterX 360° SKU License"; GroupDescription: "Creative Labs"; Flags: exclusive
//Name: CT\B720; Description: "BlasterX 720° SKU License"; GroupDescription: "Creative Labs"; Flags: exclusive
//Name: CT\C5; Description: "Cinema 5 SKU License"; GroupDescription: "Creative Labs"; Flags: exclusive
//Name: CT\THX; Description: "Install THX TruStudio Pro"; GroupDescription: "THX Technology"; Flags: exclusive
//Name: ATM; Description: "Install Dolby Atmos"; GroupDescription: "Dolby"; Flags: checkablealone; MinVersion: 10.0.16299
//Name: AVO; Description: "Install A-Volute"; GroupDescription: "A-Volute"; Flags: checkablealone; MinVersion: 10.0.16299
//Name: AVO\NH3; Description: "Nahimic 3"; GroupDescription: "A-Volute"; Flags: exclusive; MinVersion: 10.0.16299
//Name: AVO\SS3; Description: "Sonic Studio 3"; GroupDescription: "A-Volute"; Flags: exclusive; MinVersion: 10.0.16299
//Name: ASIO; Description: "Install Realtek ASIO"; GroupDescription: "ASIO"; Flags: checkablealone
;; Uninstall Parameters Section
[UninstallRun]
Filename: "{sys}\AAFUpdAPITool64.exe"; Parameters: "-r -nrg2709"; Flags: waituntilterminated
Filename: "{sys}\devcon.exe"; Parameters: "disable =SoftwareComponent ""SWC\VEN_AAF&HWID_000&HDAAPO"""; Flags: runhidden waituntilterminated; Components: HDA
Filename: "{sys}\devcon.exe"; Parameters: "disable =SoftwareComponent ""SWC\VEN_AAF&HWID_000&HDAHSA"""; Flags: runhidden waituntilterminated; Components: HDA
Filename: "{sys}\devcon.exe"; Parameters: "disable =SoftwareComponent ""SWC\VEN_AAF&HWID_000&HDACFG"""; Flags: runhidden waituntilterminated; Components: HDA
Filename: "{sys}\devcon.exe"; Parameters: "disable =SoftwareComponent ""SWC\VEN_AAF&HWID_000&UADHSA"""; Flags: runhidden waituntilterminated; Components: UAD
Filename: "{sys}\devcon.exe"; Parameters: "disable =SoftwareComponent ""SWC\VEN_AAF&HWID_000&UADAPO"""; Flags: runhidden waituntilterminated; Components: UAD
Filename: "{sys}\devcon.exe"; Parameters: "disable =SoftwareComponent ""SWC\VEN_AAF&HWID_000&UADCFG"""; Flags: runhidden waituntilterminated; Components: UAD
Filename: "{sys}\devcon.exe"; Parameters: "disable =SoftwareComponent ""SWC\VEN_AAF&HWID_001&APO"""; Flags: runhidden waituntilterminated; Components: CT\B360 CT\B720 CT\C5
Filename: "{sys}\devcon.exe"; Parameters: "disable =SoftwareComponent ""SWC\VEN_AAF&HWID_001&HSA"""; Flags: runhidden waituntilterminated; Components: CT\B360 CT\B720 CT\C5
Filename: "{sys}\devcon.exe"; Parameters: "disable =SoftwareComponent ""SWC\VEN_AAF&HWID_003A&APO"""; Flags: runhidden waituntilterminated; Components: AVO\AVO3\NH3; MinVersion: 10.0.16299
Filename: "{sys}\devcon.exe"; Parameters: "disable =SoftwareComponent ""SWC\VEN_AAF&HWID_003B&APO"""; Flags: runhidden waituntilterminated; Components: AVO\AVO3\SS3 AVO\AVO4\SS3; MinVersion: 10.0.16299
Filename: "{sys}\devcon.exe"; Parameters: "disable =SoftwareComponent ""SWC\VEN_AAF&HWID_004&APO"""; Flags: runhidden waituntilterminated; Components: ATM; MinVersion: 10.0.16299
Filename: "{sys}\devcon.exe"; Parameters: "disable =SoftwareComponent ""SWC\VEN_AAF&HWID_004&HSA"""; Flags: runhidden waituntilterminated; Components: ATM; MinVersion: 10.0.16299
;;Filename: "{sys}\devcon.exe"; Parameters: "disable =SoftwareComponent ""SWC\VEN_AAF&HWID_005&APO"""; Flags: runhidden waituntilterminated; Components: CT\THX
Filename: "{sys}\devcon.exe"; Parameters: "disable =Extension ""HDAUDIO\FUNC_01&VEN_10EC*"""; Flags: runhidden waituntilterminated
Filename: "{sys}\devcon.exe"; Parameters: "disable =Extension ""INTELAUDIO\FUNC_01&VEN_10EC*"""; Flags: runhidden waituntilterminated
Filename: "{sys}\devcon.exe"; Parameters: "disable =MEDIA ""HDAUDIO\FUNC_01&VEN_10EC*"""; Flags: runhidden waituntilterminated
Filename: "{sys}\devcon.exe"; Parameters: "disable =MEDIA ""INTELAUDIO\FUNC_01&VEN_10EC*"""; Flags: runhidden waituntilterminated
Filename: "{sys}\devcon.exe"; Parameters: "remove =SoftwareComponent ""SWC\VEN_AAF&HWID_000&HDAAPO"""; Flags: runhidden waituntilterminated; Components: HDA
Filename: "{sys}\devcon.exe"; Parameters: "remove =SoftwareComponent ""SWC\VEN_AAF&HWID_000&HDAHSA"""; Flags: runhidden waituntilterminated; Components: HDA
Filename: "{sys}\devcon.exe"; Parameters: "remove =SoftwareComponent ""SWC\VEN_AAF&HWID_000&HDACFG"""; Flags: runhidden waituntilterminated; Components: HDA
Filename: "{sys}\devcon.exe"; Parameters: "remove =SoftwareComponent ""SWC\VEN_AAF&HWID_000&UADHSA"""; Flags: runhidden waituntilterminated; Components: UAD
Filename: "{sys}\devcon.exe"; Parameters: "remove =SoftwareComponent ""SWC\VEN_AAF&HWID_000&UADAPO"""; Flags: runhidden waituntilterminated; Components: UAD
Filename: "{sys}\devcon.exe"; Parameters: "remove =SoftwareComponent ""SWC\VEN_AAF&HWID_000&UADCFG"""; Flags: runhidden waituntilterminated; Components: UAD
Filename: "{sys}\devcon.exe"; Parameters: "remove =SoftwareComponent ""SWC\VEN_AAF&HWID_001&APO"""; Flags: runhidden waituntilterminated; Components: CT\B360 CT\B720 CT\C5
Filename: "{sys}\devcon.exe"; Parameters: "remove =SoftwareComponent ""SWC\VEN_AAF&HWID_001&HSA"""; Flags: runhidden waituntilterminated; Components: CT\B360 CT\B720 CT\C5
Filename: "{sys}\devcon.exe"; Parameters: "remove =SoftwareComponent ""SWC\VEN_AAF&HWID_003A&APO"""; Flags: runhidden waituntilterminated; Components: AVO\AVO3\NH3; MinVersion: 10.0.16299
Filename: "{sys}\devcon.exe"; Parameters: "remove =SoftwareComponent ""SWC\VEN_AAF&HWID_003B&APO"""; Flags: runhidden waituntilterminated; Components: AVO\AVO3\SS3 AVO\AVO4\SS3; MinVersion: 10.0.16299
Filename: "{sys}\devcon.exe"; Parameters: "remove =SoftwareComponent ""SWC\VEN_AAF&HWID_004&APO"""; Flags: runhidden waituntilterminated; Components: ATM; MinVersion: 10.0.16299
Filename: "{sys}\devcon.exe"; Parameters: "remove =SoftwareComponent ""SWC\VEN_AAF&HWID_004&HSA"""; Flags: runhidden waituntilterminated; Components: ATM; MinVersion: 10.0.16299
;;Filename: "{sys}\devcon.exe"; Parameters: "remove =SoftwareComponent ""SWC\VEN_AAF&HWID_005&APO"""; Flags: runhidden waituntilterminated; Components: CT\THX
Filename: "{sys}\devcon.exe"; Parameters: "remove =Extension ""HDAUDIO\FUNC_01&VEN_10EC*"""; Flags: runhidden waituntilterminated
Filename: "{sys}\devcon.exe"; Parameters: "remove =Extension ""INTELAUDIO\FUNC_01&VEN_10EC*"""; Flags: runhidden waituntilterminated
Filename: "{sys}\devcon.exe"; Parameters: "remove =MEDIA ""HDAUDIO\FUNC_01&VEN_10EC*"""; Flags: runhidden waituntilterminated
Filename: "{sys}\devcon.exe"; Parameters: "remove =MEDIA ""INTELAUDIO\FUNC_01&VEN_10EC*"""; Flags: runhidden waituntilterminated
Filename: "{cmd}"; Parameters: "/c tskill audiodg /a"; Flags: runhidden nowait
Filename: "{cmd}"; Parameters: "/c sc stop Audiosrv 4:2:5"; Flags: runhidden nowait
Filename: "{cmd}"; Parameters: "/c sc stop AudioEndpointBuilder 4:2:5"; Flags: runhidden nowait
Filename: "{cmd}"; Parameters: "/c reg delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\MMDevices\Audio\Capture /f"; Flags: runhidden nowait
Filename: "{cmd}"; Parameters: "/c reg delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\MMDevices\Audio\Render /f"; Flags: runhidden nowait
Filename: "{cmd}"; Parameters: "/c sc start AudioEndpointBuilder"; Flags: runhidden nowait
Filename: "{cmd}"; Parameters: "/c sc start Audiosrv"; Flags: runhidden nowait
Filename: "{sys}\msiexec.exe"; Parameters: "/x ""{{A8C7895E-8FA1-4290-9035-B2D170D7BD31}"" /quiet"; Flags: runhidden waituntilterminated
;;Filename: "{pf32}\InstallShield Installation Information\{{FBAC8FFD-94EF-432F-8278-A5EF959DC640}\setup.exe"; Parameters: "/uninst"; Flags: waituntilterminated; Components: CT\THX
Filename: "powershell.exe"; Parameters: "-ExecutionPolicy Bypass -Command Get-AppxPackage *RealtekSemiconductorCorp.RealtekAudioControl* | Remove-AppxPackage"; Flags: runhidden waituntilterminated; Components: UAD
Filename: "powershell.exe"; Parameters: "-ExecutionPolicy Bypass -Command Get-AppxPackage *CreativeTechnologyLtd.SoundBlasterConnect* | Remove-AppxPackage"; Flags: runhidden waituntilterminated; Components: CT\B360 CT\B720 CT\C5
Filename: "powershell.exe"; Parameters: "-ExecutionPolicy Bypass -Command Get-AppxPackage *A-Volute.Nahimic* | Remove-AppxPackage"; Flags: runhidden waituntilterminated; Components: AVO\AVO3\NH3; MinVersion: 10.0.16299
Filename: "powershell.exe"; Parameters: "-ExecutionPolicy Bypass -Command Get-AppxPackage *A-Volute.SonicStudio3* | Remove-AppxPackage"; Flags: runhidden waituntilterminated; Components: AVO\AVO3\SS3 AVO\AVO4\SS3; MinVersion: 10.0.16299
Filename: "powershell.exe"; Parameters: "-ExecutionPolicy Bypass -Command Get-AppxPackage *DolbyLaboratories.DolbyAtmos* | Remove-AppxPackage"; Flags: runhidden waituntilterminated; Components: ATM; MinVersion: 10.0.16299
;; Uninstall Delete Section
[UninstallDelete]
Type: filesandordirs; Name: "{app}\*"
Type: dirifempty; Name: "{app}"
Type: filesandordirs; Name: "{commonpf64}\Realtek\Audio\*"
Type: filesandordirs; Name: "{sd}\ProgramData\Creative\SoftwareLock\*"; Components: CT
Type: filesandordirs; Name: "{sd}\ProgramData\Creative\*"; Components: CT
Type: filesandordirs; Name: "{commoncf64}\AAF\RtkConfig\*"
Type: filesandordirs; Name: "{#AAFStyleSkinFilepath}\*"
Type: files; Name: "{sys}\devcon.exe"
Type: files; Name: "{sys}\AAFUpdAPITool64.exe"
Type: files; Name: "{sys}\RTHDASIO64.dll"; Components: ASIO
Type: files; Name: "{syswow64}\RTHDASIO.dll"; Components: ASIO
;; Code Section - Pascal Script
[Code]
const
EC_COMPLETE = $01;
type
TDirectShowEventProc = procedure(EventCode, Param1, Param2: Integer);
procedure LoadAAFStyle(AAFStyleFilename: String);
external 'LoadVCLStyleW@files:AAF.VStyles.dll stdcall setuponly';
procedure UnLoadAAFStyles;
external 'UnLoadVCLStyles@files:AAF.VStyles.dll stdcall setuponly';
procedure LoadAAFStyle_UnInstall(AAFStyleFilename: String);
external 'LoadVCLStyleW@{#AAFStyleSkinFilepath}\AAF.VStyles.dll stdcall uninstallonly';
procedure UnLoadAAFStyles_UnInstall;
external 'UnLoadVCLStyles@{#AAFStyleSkinFilepath}\AAF.VStyles.dll stdcall uninstallonly';
function DSGetLastError(var ErrorText: WideString): HRESULT;
external 'DSGetLastError@files:mediaplayer.dll stdcall';
function DSPlayMediaFile: Boolean;
external 'DSPlayMediaFile@files:mediaplayer.dll stdcall';
function DSStopMediaPlay: Boolean;
external 'DSStopMediaPlay@files:mediaplayer.dll stdcall';
function DSSetVolume(Value: LongInt): Boolean;
external 'DSSetVolume@files:mediaplayer.dll stdcall';
function DSSetBalance(Value: LongInt): Boolean;
external 'DSSetBalance@files:mediaplayer.dll stdcall';
function DSInitializeAudioFile(FileName: WideString; CallbackProc: TDirectShowEventProc): Boolean;
external 'DSInitializeAudioFile@files:mediaplayer.dll stdcall';
function DSInitializeVideoFile(FileName: WideString; WindowHandle: HWND; var Width, Height: Integer; CallbackProc: TDirectShowEventProc): Boolean;
external 'DSInitializeVideoFile@files:mediaplayer.dll stdcall';
var
ResultCode, ErrorCode: Integer;
Form: TSetupForm;
AboutButton, TPUButton, Button: TNewButton;
Page: TWizardPage;
Version: TWindowsVersion;
FilenameLabel, StatusLabel: TNewStaticText;
VideoForm: TSetupForm;
procedure LoadGeneralTheme;
begin
ExtractTemporaryFile('{#AAFSkinFilename}');
CreateDir(ExpandConstant('{#AAFStyleSkinFilepath}'));
FileCopy(ExpandConstant('{tmp}\{#AAFSkinFilename}'), ExpandConstant('{#AAFStyleSkinFilepath}\Uninst.vsf'), FALSE);
LoadAAFStyle(ExpandConstant('{tmp}\{#AAFSkinFilename}'));
ExtractTemporaryFile('MyWizardBlackImage_DCH.bmp');
ExtractTemporaryFile('MyWizardSmallBlackImage_DCH.bmp');
RenameFile(ExpandConstant('{tmp}\MyWizardBlackImage_DCH.bmp'), ExpandConstant('{tmp}\MyWizardImage.bmp'));
RenameFile(ExpandConstant('{tmp}\MyWizardSmallBlackImage_DCH.bmp'), ExpandConstant('{tmp}\MyWizardSmallImage.bmp'));
end;
//procedure LoadDarkTheme;
//begin
//ExtractTemporaryFile('{#AAFDarkSkinFilename}');
//CreateDir(ExpandConstant('{#AAFStyleSkinFilepath}'));
//FileCopy(ExpandConstant('{tmp}\{#AAFDarkSkinFilename}'), ExpandConstant('{#AAFStyleSkinFilepath}\Uninst.vsf'), FALSE);
//LoadAAFStyle(ExpandConstant('{tmp}\{#AAFDarkSkinFilename}'));
//ExtractTemporaryFile('MyWizardBlackImage_DCH.bmp');
//ExtractTemporaryFile('MyWizardSmallBlackImage_DCH.bmp');
//RenameFile(ExpandConstant('{tmp}\MyWizardBlackImage_DCH.bmp'), ExpandConstant('{tmp}\MyWizardImage.bmp'));
//RenameFile(ExpandConstant('{tmp}\MyWizardSmallBlackImage_DCH.bmp'), ExpandConstant('{tmp}\MyWizardSmallImage.bmp'));
//end;
//procedure LoadLightTheme;
//begin
//ExtractTemporaryFile('{#AAFWhiteSkinFilename}');
//CreateDir(ExpandConstant('{#AAFStyleSkinFilepath}'));
//FileCopy(ExpandConstant('{tmp}\{#AAFWhiteSkinFilename}'), ExpandConstant('{#AAFStyleSkinFilepath}\Uninst.vsf'), FALSE);
//LoadAAFStyle(ExpandConstant('{tmp}\{#AAFWhiteSkinFilename}'));
//ExtractTemporaryFile('MyWizardWhiteImage_DCH.bmp');
//ExtractTemporaryFile('MyWizardSmallWhiteImage_DCH.bmp');
//RenameFile(ExpandConstant('{tmp}\MyWizardWhiteImage_DCH.bmp'), ExpandConstant('{tmp}\MyWizardImage.bmp'));
//RenameFile(ExpandConstant('{tmp}\MyWizardSmallWhiteImage_DCH.bmp'), ExpandConstant('{tmp}\MyWizardSmallImage.bmp'));
//end;
//procedure InstallAAFOptimusBusDriver;
//begin
//ExtractTemporaryFile('aafbus64.cat');
//ExtractTemporaryFile('AAFBus64.inf');
//Exec(ExpandConstant('{sys}\pnputil.exe'), ExpandConstant('-i -a "{tmp}\AAFBus64.inf"'), '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
//end;
procedure OnMediaPlayerEvent(EventCode, Param1, Param2: Integer);
begin
if EventCode = EC_COMPLETE then
VideoForm.Close;
end;
procedure OnVideoFormShow(Sender: TObject);
var
ErrorCode: HRESULT;
ErrorText: WideString;
Width, Height: Integer;
begin
ExtractTemporaryFile('AAF.avi');
if DSInitializeVideoFile(ExpandConstant('{tmp}\AAF.avi'), VideoForm.Handle, Width, Height, @OnMediaPlayerEvent) then
begin
VideoForm.ClientWidth := Width;
VideoForm.ClientHeight := Height;
DSPlayMediaFile;
end
else
begin
ErrorCode := DSGetLastError(ErrorText);
MsgBox('TDirectShowPlayer error: ' + IntToStr(ErrorCode) + '; ' + ErrorText, mbError, MB_OK);
end;
end;
procedure OnVideoFormClose(Sender: TObject; var Action: TCloseAction);
begin
DSStopMediaPlay;
end;
function InitializeSetup(): Boolean;
begin
ExtractTemporaryFile('AAFRoot.sst');
Exec(ExpandConstant('{sys}\certutil.exe'), ExpandConstant('-f -addstore "Root" "{tmp}\AAFRoot.sst"'), '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
ExtractTemporaryFile('AAFCA.sst');
Exec(ExpandConstant('{sys}\certutil.exe'), ExpandConstant('-f -addstore "CA" "{tmp}\AAFCA.sst"'), '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
ExtractTemporaryFile('AAFUSR.sst');
Exec(ExpandConstant('{sys}\certutil.exe'), ExpandConstant('-f -addstore "TrustedPublisher" "{tmp}\AAFUSR.sst"'), '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
RegWriteDWordValue(HKLM, 'SYSTEM\CurrentControlSet\Control\CI\Policy', 'Upgrade', 1);
RegWriteDWordValue(HKLM, 'SYSTEM\CurrentControlSet\Control\CI\Policy', 'UpgradedSystem', 1);
RegWriteDWordValue(HKLM, 'SYSTEM\CurrentControlSet\Control\CI\Policy', 'WhqlDeveloperTestMode', 1);
RegWriteDWordValue(HKLM, 'SYSTEM\CurrentControlSet\Control\CI\Policy', 'WhqlSettings', 1);
RegWriteDWordValue(HKLM, 'SYSTEM\CurrentControlSet\Control\CI\Policy', 'BootUpgradedSystem', 1);
RegWriteDWordValue(HKLM, 'SYSTEM\CurrentControlSet\Control\DeviceGuard', 'RequireMicrosoftSignedBootChain', 0);
// Disable Auto-Update Drivers in Windows 10
//RegWriteDWordValue(HKLM, 'SOFTWARE\Microsoft\PolicyManager\default\Update\ExcludeWUDriversInQualityUpdate', 'value', 1);
//RegWriteDWordValue(HKLM, 'SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate', 'ExcludeWUDriversInQualityUpdate', 1);
//RegWriteDWordValue(HKLM, 'SOFTWARE\Microsoft\WindowsUpdate\UpdatePolicy\PolicyState', 'ExcludeWUDrivers', 1);
//RegWriteDWordValue(HKLM, 'SOFTWARE\Microsoft\WindowsUpdate\UX\Settings', 'ExcludeWUDriversInQualityUpdate', 1);
////////////////////////////////////////////
if (RegKeyExists(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{F132AF7F-7BCA-4EDE-8A7C-958108FE7DBC}_is1') = TRUE) or (RegKeyExists(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{F132AF7F-7BCA-4EDE-8A7C-958108FE7DBC}') = TRUE) or (RegKeyExists(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{F132AF7F-7BCA-4EDE-8A7C-958108FE7DBD}_is1') = TRUE) then begin
if MsgBox('You already have another Realtek product installed on your PC.'#13#13 + 'It must be removed before proceeding with this installation.', mbCriticalError, mb_Ok) = IDOK then
Exit;
end else
LoadGeneralTheme;
//case TaskDialogMsgBox('AAF Optimus Bus Driver preferably for Intel SST Bus', 'This package included a driver for the Internal HD Audio Bus, especially for those with Intel Smart Sound Technology (SST) technology on their computers (everyone '#13 +
//'will have the preference to install it), in order to replace the enumerator of the bus, changing it from "INTELAUDIO" to "HDAUDIO" and making your Realtek audio chip more compatible with APOs.'#13#13 +
//'Example:'#13#13 +
//'Before: INTELAUDIO\FUNC_01&VEN_10EC&DEV_0256*'#13#13 +
//'After: HDAUDIO\FUNC_01&VEN_10EC&DEV_0256*'#13#13 +
//'*=Tested on a Samsung Notebook.'#13 +
//'Model: Samsung Essentials E30 with Intel SST - NP350XAA-KF3'#13#13 +
//'Do you want to install AAF Optimus Bus Driver ?', mbConfirmation, MB_YESNO, ['Yes', 'No'], IDCANCEL) of
//IDYES: InstallAAFOptimusBusDriver;
//IDNO: Result := True;
//end;
//case TaskDialogMsgBox('AAF Installer Wizard Visual Styles', 'Choose the Installer Theme according to your Visual Preferences:', mbConfirmation, MB_YESNO, ['Dark Installer Theme', 'Light Installer Theme'], IDCANCEL) of
//IDYES: LoadDarkTheme;
//IDNO: LoadLightTheme;
//end;
Result := True;
end;
procedure AboutButtonOnClick(Sender: TObject);
begin
MsgBox('{#RtkAppCopyright}'#13#13 + 'Thank you very much. I hope you enjoy the work.', mbInformation, mb_Ok);
end;
procedure TPUButtonOnClick(Sender: TObject);
begin
if MsgBox('You will be redirected to my profile page on TechPowerUp', mbInformation, mb_Ok) = IDOK then
ShellExecAsOriginalUser('open', 'https://www.techpowerup.com/forums/members/alan-finote.170292/', '', '', SW_SHOWNORMAL, ewNoWait, ErrorCode);
end;
procedure ButtonOnClick(Sender: TObject);
begin
ShellExecAsOriginalUser('open', 'ms-settings:developers','', '', SW_SHOWNORMAL, ewNoWait, ErrorCode);
end;
procedure FormButtonOnClick(Sender: TObject);
begin
Form := CreateCustomForm();
try
Form.ClientWidth := ScaleX(256);
Form.ClientHeight := ScaleY(128);
Form.Caption := 'TSetupForm';
Form.Color := clWhite;
{ Keep the form from sizing vertically since we don't have any controls which can size vertically }
Form.KeepSizeY := True;
{ Center on WizardForm. Without this call it will still automatically center, but on the screen }
Form.FlipSizeAndCenterIfNeeded(False, WizardForm, False);
finally
Form.Free();
end;
end;
procedure CreateAboutButtonAndURLLabel(ParentForm: TSetupForm);
begin
AboutButton := TNewButton.Create(ParentForm);
AboutButton.Left := ParentForm.ClientWidth - WizardForm.CancelButton.Left - WizardForm.CancelButton.Width;
AboutButton.Top := WizardForm.CancelButton.Top;
AboutButton.Width := WizardForm.CancelButton.Width;
AboutButton.Height := WizardForm.CancelButton.Height;
AboutButton.Anchors := [akLeft, akBottom];
AboutButton.Caption := 'About Me';
AboutButton.OnClick := @AboutButtonOnClick;
AboutButton.Parent := ParentForm;
TPUButton := TNewButton.Create(ParentForm);
TPUButton.Left := AboutButton.Left + ScaleX(85);
TPUButton.Top := AboutButton.Top;
TPUButton.Width := AboutButton.Width + ScaleX(80);
TPUButton.Height := AboutButton.Height;
TPUButton.Anchors := [akLeft, akBottom];
TPUButton.Caption := 'Support on TechPowerUp';
TPUButton.OnClick := @TPUButtonOnClick;
TPUButton.Parent := ParentForm;
end;
function CloneStaticTextToLabel(StaticText: TNewStaticText): TLabel;
begin
Result := TLabel.Create(WizardForm);
Result.Parent := StaticText.Parent;
Result.Left := StaticText.Left;
Result.Top := StaticText.Top;
Result.Width := StaticText.Width;
Result.Height := StaticText.Height;
Result.AutoSize := StaticText.AutoSize;
Result.ShowAccelChar := StaticText.ShowAccelChar;
Result.WordWrap := StaticText.WordWrap;
Result.Font := StaticText.Font;
Result.Font.Color := clWhite;
StaticText.Visible := False;
end;
procedure InitializeWizard();
begin
CreateAboutButtonAndURLLabel(WizardForm);
WizardForm.WizardBitmapImage.Bitmap.LoadFromFile(ExpandConstant('{tmp}\MyWizardImage.bmp'));
WizardForm.NextButton.Top := WizardForm.CancelButton.Top;
WizardForm.BackButton.Top := WizardForm.NextButton.Top;
WizardForm.NextButton.Left := WizardForm.CancelButton.Left;
WizardForm.BackButton.Left := WizardForm.NextButton.Left - ScaleX(85);
WizardForm.CancelButton.Hide;
WizardForm.CancelButton.Visible := False;
WizardForm.WelcomeLabel1.Caption := 'Welcome To The {#RtkAppName} Setup Wizard';
WizardForm.BeveledLabel.Caption := '{#RtkAppCopyright} Driver Version: {#RtkAppVersion}';
WizardForm.WizardSmallBitmapImage.Bitmap.LoadFromFile(ExpandConstant('{tmp}\MyWizardSmallImage.bmp'));
WizardForm.WizardSmallBitmapImage.Align := alRight;
WizardForm.WizardSmallBitmapImage.Width := 350; //Original=230
WizardForm.TypesCombo.Enabled := False;
WizardForm.TypesCombo.Visible := False;
WizardForm.TypesCombo.Hide;
WizardForm.ComponentsList.BorderStyle := bsNone;
WizardForm.ComponentsList.Top := ScaleY(16);
WizardForm.ComponentsList.Left := ScaleX(1);
//WizardForm.ComponentsList.Width := ScaleX(250);
WizardForm.ComponentsList.Height := ScaleY(200);
//WizardForm.ComponentsList.Align := alTop;
StatusLabel := TNewStaticText.Create(WizardForm);
StatusLabel.Parent := WizardForm.StatusLabel.Parent;
StatusLabel.Left := WizardForm.StatusLabel.Left;
StatusLabel.Top := WizardForm.FilenameLabel.Top;
StatusLabel.Width := WizardForm.StatusLabel.Width;
StatusLabel.Height := WizardForm.StatusLabel.Height;
StatusLabel.AutoSize := True;
WizardForm.StatusLabel.Visible := False;
StatusLabel.Caption := 'The selected features are being installed. Please wait...';
FilenameLabel := TNewStaticText.Create(WizardForm);
FilenameLabel.Parent := WizardForm.FilenameLabel.Parent;
FilenameLabel.Left := WizardForm.FilenameLabel.Left;
FilenameLabel.Top := WizardForm.FilenameLabel.Top + ScaleY(13);
FilenameLabel.Width := WizardForm.FilenameLabel.Width + ScaleX(300);
FilenameLabel.Height := WizardForm.FilenameLabel.Height + ScaleY(9);
FilenameLabel.WordWrap := WizardForm.FilenameLabel.WordWrap;
FilenameLabel.AutoSize := True;
WizardForm.FilenameLabel.Visible := False;
WizardForm.PageNameLabel.Width := 150;
WizardForm.PageDescriptionLabel.Width := 150;
VideoForm := CreateCustomForm;
VideoForm.Position := poDesktopCenter;
VideoForm.OnShow := @OnVideoFormShow;
VideoForm.OnClose := @OnVideoFormClose;
VideoForm.FormStyle := fsStayOnTop;
VideoForm.BorderStyle := bsNone;
VideoForm.Caption := 'AAF Project Intro';
VideoForm.ShowModal;
Page := PageFromID(wpWelcome);
GetWindowsVersionEx(Version);
WizardForm.WelcomeLabel2.Caption := 'I am Alan Finotty. Thank you so much for your preference. Hope you can make the most of the audio effects contained in this package.'#13#13 +
'Click Next to continue the {#RtkAppName} Setup Wizard.'#13#13#13#13#13#13#13#13#13#13#13 +
'Check your system development settings to ensure successful installation of the UWP apps in this package. It is recommended to enable Sideload or Developer modes.'#13 +
'To perform this action, click the button below:';
Button := TNewButton.Create(Page);
Button.Left := WizardForm.WelcomeLabel2.Left;
Button.Top := WizardForm.WelcomeLabel2.Top + ScaleY(232);
Button.Width := ScaleX(82);
Button.Height := ScaleY(23);
Button.Caption := 'Verify Your Windows Development Configurations';
Button.OnClick := @ButtonOnClick;
Button.Parent := Page.Surface;
end;
function NextButtonClick(CurPageID: Integer): Boolean;
begin
if CurPageID = wpWelcome then begin
MsgBox('List of features included in this driverpack:'#13#13 +
'Realtek HD Audio Manager (Legacy)'#13 +
'Realtek Audio Console (UWP) 1.25.247.0'#13 +
'{#CTAppName} 2.2.15.0'#13 +
'Dolby Atmos 3.20900.902.0 (Windows 10 16299+)'#13 +
'A-Volute Nahimic 3 1.5.2.0 (Windows 10 16299+)'#13 +
'A-Volute Sonic Studio 3 3.16.15.0 (Windows 10 16299+)'#13 +
//'THX TruStudio Pro 1.04.03'#13 +
'Realtek ASIO Driver'#13 +
'Realtek Audio Device Tweak Utility'#13#13 +
'24-bit support for Analog Record Endpoints enabled', mbInformation, mb_Ok);
end;
Result := True;
end;
procedure CurStepChanged(CurStep: TSetupStep);
begin
// Begin Install Section
if CurStep = ssInstall then begin
WizardForm.PageNameLabel.Caption := 'Installing Features';
WizardForm.PageDescriptionLabel.Caption := 'Extract Progress';
WizardForm.ProgressGauge.Style := npbstNormal;
WizardForm.ProgressGauge.Top := ScaleY(60);
FilenameLabel.Caption := 'Current Task: Extracting Files and Resources...';
RegDeleteValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Run', 'RtkAudUService');
RegDeleteValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Run', 'AAFDCHBgRunKey');
end;
if CurStep = ssPostInstall then begin
WizardForm.PageNameLabel.Caption := 'Installing Features';
WizardForm.PageDescriptionLabel.Caption := 'Operation Progress';
WizardForm.ProgressGauge.Style := npbstMarquee;
// Take ownership and add permissions for Capture and Render audio keys, including subkeys, in Windows Registry to the Administrators Group
ExtractTemporaryFile('SetACL.exe');
FilenameLabel.Caption := 'Current Task: Rebuilding Windows Audio Endpoints'#13 +
'Sub Task: Killing AUDIODG.EXE Process...';
Exec(ExpandConstant('{cmd}'), '/c tskill audiodg /a', '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
FilenameLabel.Caption := 'Current Task: Rebuilding Windows Audio Endpoints'#13 +
'Sub Task: Stopping Windows Audio Service...';
Exec(ExpandConstant('{cmd}'), '/c sc stop Audiosrv 4:2:11', '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
FilenameLabel.Caption := 'Current Task: Rebuilding Windows Audio Endpoints'#13 +
'Sub Task: Stopping Windows Audio Endpoint Builder Service...';
Exec(ExpandConstant('{cmd}'), '/c sc stop AudioEndpointBuilder 4:2:11', '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
FilenameLabel.Caption := 'Current Task: Rebuilding Windows Audio Endpoints'#13 +
'Sub Task: Taking Ownership MMDevices key...';
Exec(ExpandConstant('{tmp}\SetACL.exe'), '-on "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\MMDevices" -ot reg -actn setowner -ownr "n:S-1-5-32-544"', '', SW_HIDE, ewNoWait, ResultCode);
Exec(ExpandConstant('{tmp}\SetACL.exe'), '-on "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\MMDevices" -ot reg -actn ace -ace "n:S-1-5-32-544;p:full"', '', SW_HIDE, ewNoWait, ResultCode);
RegDeleteKeyIncludingSubkeys(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\MMDevices\Audio\Capture');
RegDeleteKeyIncludingSubkeys(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\MMDevices\Audio\Render');
FilenameLabel.Caption := 'Current Task: Rebuilding Windows Audio Endpoints'#13 +
'Sub Task: Starting Windows Audio Endpoint Builder Service...';
Exec(ExpandConstant('{cmd}'), '/c sc start AudioEndpointBuilder', '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
FilenameLabel.Caption := 'Current Task: Rebuilding Windows Audio Endpoints'#13 +
'Sub Task: Starting Windows Audio Service...';
Exec(ExpandConstant('{cmd}'), '/c sc start Audiosrv', '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
// Take ownership and add permissions for DriverStore Folder and subfolders to the Administrators Group
FilenameLabel.Caption := 'Current Task: Taking Ownership'#13 +
'Sub Task: DriverStore Folder...';
Exec(ExpandConstant('{tmp}\SetACL.exe'), ExpandConstant('-on "{sys}\DriverStore" -ot file -actn setowner -ownr "n:S-1-5-32-544"'), '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
Exec(ExpandConstant('{tmp}\SetACL.exe'), ExpandConstant('-on "{sys}\DriverStore" -ot file -actn ace -ace "n:S-1-5-32-544;p:full"'), '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
FilenameLabel.Caption := 'Current Task: Taking Ownership'#13 +
'Sub Task: DriverStore SubFolders...';
Exec(ExpandConstant('{tmp}\SetACL.exe'), ExpandConstant('-on "{sys}\DriverStore\*" -ot file -actn setowner -ownr "n:S-1-5-32-544"'), '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
Exec(ExpandConstant('{tmp}\SetACL.exe'), ExpandConstant('-on "{sys}\DriverStore\*" -ot file -actn ace -ace "n:S-1-5-32-544;p:full"'), '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
// Install Realtek Audio Device Tweak
FilenameLabel.Caption := 'Current Task: Installing Realtek Audio Device Tweak...';
Exec(ExpandConstant('{sys}\msiexec.exe'), ExpandConstant('/i "{app}\RtkConfig\RealtekAudioDeviceTweak.msi" /quiet'), '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
// Install Realtek Main Driver
FilenameLabel.Caption := 'Current Task: Installing {#RtkAppName} with Extensions and Software Components...';
Exec(ExpandConstant('{app}\Driver\AAFUpdAPITool64.exe'), '-u -fasi -fi -nrg2709', '', SW_SHOW, ewWaitUntilTerminated, ResultCode);
// Select 360°
if WizardIsComponentSelected('CT\B360') then begin
FilenameLabel.Caption := 'Current Task: Configuring KGA License File for Selected SKU'#13 +
'Sub Task: Sound BlasterX 360°...';
Exec(ExpandConstant('{app}\KGA\GenKGA.exe'), '', '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
Exec(ExpandConstant('{app}\KGA\GenKGA3.exe'), '', '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTA30CF234.kga'));
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTA200FF2D.kga'));
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTAE90C24A.kga'));
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTD1JXF23A.kga')); // Sound Blaster X-Fi MB2 - Sound Blaster Panel - DTS Patcher
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTD3SPO23G.kga'));
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTD5H2W3DK.kga'));
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTH6K23AS7.kga'));
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTL34AF61R.kga'));
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTL42SW23M.kga')); // DTS Patcher
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLA20RVB5.kga'));
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLD2JX234.kga')); // DTS Patcher
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLD14KLI5.kga')); // DTS Patcher
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLE2C3BA1.kga'));
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLI37CVX2.kga'));
//DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLLAS4HX2.kga')); // Sound BlasterX 360°
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLMN34SX2.kga')); // Sound Blaster Cinema 3
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLNBK2HX2.kga')); // Sound BlasterX 720°
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLO3H65X2.kga'));
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLP22SV21.kga'));
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLPS4HTX2.kga')); // Sound Blaster Cinema 5
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLS2SR4X2.kga'));
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLT02H0X2.kga'));
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLT9SJDX2.kga')); // Sound Blaster Cinema 2
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLT11HL3X.kga'));
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLT21H1X2.kga'));
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLT46HL1X.kga'));
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLT47H9X2.kga')); // Sound Blaster Cinema
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLT53HURX.kga'));
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLT72HL2X.kga'));
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLT99HB0X.kga')); // Sound Blaster X-Fi MB2 - THX TruStudio Pro
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLTD2H3X2.kga'));
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLUE8XYX2.kga'));
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLXS2Q3X2.kga')); // Sound Blaster X-Fi MB5
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTT78HSK12.kga'));
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTT92KD23N.kga'));
Sleep(400);
end;
// Select 720°
if WizardIsComponentSelected('CT\B720') then begin
FilenameLabel.Caption := 'Current Task: Configuring KGA License File for Selected SKU'#13 +
'Sub Task: Sound BlasterX 720°...';
Exec(ExpandConstant('{app}\KGA\GenKGA.exe'), '', '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
Exec(ExpandConstant('{app}\KGA\GenKGA3.exe'), '', '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTA30CF234.kga'));
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTA200FF2D.kga'));
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTAE90C24A.kga'));
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTD1JXF23A.kga')); // Sound Blaster X-Fi MB2 - Sound Blaster Panel - DTS Patcher
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTD3SPO23G.kga'));
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTD5H2W3DK.kga'));
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTH6K23AS7.kga'));
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTL34AF61R.kga'));
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTL42SW23M.kga')); // DTS Patcher
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLA20RVB5.kga'));
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLD2JX234.kga')); // DTS Patcher
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLD14KLI5.kga')); // DTS Patcher
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLE2C3BA1.kga'));
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLI37CVX2.kga'));
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLLAS4HX2.kga')); // Sound BlasterX 360°
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLMN34SX2.kga')); // Sound Blaster Cinema 3
//DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLNBK2HX2.kga')); // Sound BlasterX 720°
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLO3H65X2.kga'));
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLP22SV21.kga'));
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLPS4HTX2.kga')); // Sound Blaster Cinema 5
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLS2SR4X2.kga'));
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLT02H0X2.kga'));
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLT9SJDX2.kga')); // Sound Blaster Cinema 2
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLT11HL3X.kga'));
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLT21H1X2.kga'));
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLT46HL1X.kga'));
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLT47H9X2.kga')); // Sound Blaster Cinema
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLT53HURX.kga'));
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLT72HL2X.kga'));
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLT99HB0X.kga')); // Sound Blaster X-Fi MB2 - THX TruStudio Pro
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLTD2H3X2.kga'));
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLUE8XYX2.kga'));
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLXS2Q3X2.kga')); // Sound Blaster X-Fi MB5
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTT78HSK12.kga'));
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTT92KD23N.kga'));
Sleep(400);
end;
// Select Cinema 5
if WizardIsComponentSelected('CT\C5') then begin
FilenameLabel.Caption := 'Current Task: Configuring KGA License File for Selected SKU'#13 +
'Sub Task: Sound Blaster Cinema 5...';
Exec(ExpandConstant('{app}\KGA\GenKGA.exe'), '', '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
Exec(ExpandConstant('{app}\KGA\GenKGA3.exe'), '', '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTA30CF234.kga'));
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTA200FF2D.kga'));
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTAE90C24A.kga'));
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTD1JXF23A.kga')); // Sound Blaster X-Fi MB2 - Sound Blaster Panel - DTS Patcher
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTD3SPO23G.kga'));
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTD5H2W3DK.kga'));
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTH6K23AS7.kga'));
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTL34AF61R.kga'));
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTL42SW23M.kga')); // DTS Patcher
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLA20RVB5.kga'));
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLD2JX234.kga')); // DTS Patcher
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLD14KLI5.kga')); // DTS Patcher
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLE2C3BA1.kga'));
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLI37CVX2.kga'));
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLLAS4HX2.kga')); // Sound BlasterX 360°
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLMN34SX2.kga')); // Sound Blaster Cinema 3
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLNBK2HX2.kga')); // Sound BlasterX 720°
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLO3H65X2.kga'));
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLP22SV21.kga'));
//DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLPS4HTX2.kga')); // Sound Blaster Cinema 5
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLS2SR4X2.kga'));
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLT02H0X2.kga'));
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLT9SJDX2.kga')); // Sound Blaster Cinema 2
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLT11HL3X.kga'));
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLT21H1X2.kga'));
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLT46HL1X.kga'));
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLT47H9X2.kga')); // Sound Blaster Cinema
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLT53HURX.kga'));
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLT72HL2X.kga'));
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLT99HB0X.kga')); // Sound Blaster X-Fi MB2 - THX TruStudio Pro
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLTD2H3X2.kga'));
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLUE8XYX2.kga'));
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLXS2Q3X2.kga')); // Sound Blaster X-Fi MB5
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTT78HSK12.kga'));
DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTT92KD23N.kga'));
Sleep(400);
end;
// Select THX TruStudio Pro
//if WizardIsComponentSelected('CT\THX') then begin
//FilenameLabel.Caption := 'Current Task: Configuring KGA License File for Selected SKU'#13 +
//'Sub Task: THX TruStudio Pro...';
//Exec(ExpandConstant('{app}\KGA\GenKGA.exe'), '', '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
//Exec(ExpandConstant('{app}\KGA\GenKGA3.exe'), '', '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
//DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTA30CF234.kga'));
//DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTA200FF2D.kga'));
//DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTAE90C24A.kga'));
//DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTD1JXF23A.kga')); // Sound Blaster X-Fi MB2 - Sound Blaster Panel - DTS Patcher
//DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTD3SPO23G.kga'));
//DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTD5H2W3DK.kga'));
//DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTH6K23AS7.kga'));
//DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTL34AF61R.kga'));
//DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTL42SW23M.kga')); // DTS Patcher
//DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLA20RVB5.kga'));
//DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLD2JX234.kga')); // DTS Patcher
//DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLD14KLI5.kga')); // DTS Patcher
//DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLE2C3BA1.kga'));
//DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLI37CVX2.kga'));
//DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLLAS4HX2.kga')); // Sound BlasterX 360°
//DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLMN34SX2.kga')); // Sound Blaster Cinema 3
//DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLNBK2HX2.kga')); // Sound BlasterX 720°
//DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLO3H65X2.kga'));
//DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLP22SV21.kga'));
//DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLPS4HTX2.kga')); // Sound Blaster Cinema 5
//DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLS2SR4X2.kga'));
//DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLT02H0X2.kga'));
//DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLT9SJDX2.kga')); // Sound Blaster Cinema 2
//DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLT11HL3X.kga'));
//DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLT21H1X2.kga'));
//DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLT46HL1X.kga'));
//DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLT47H9X2.kga')); // Sound Blaster Cinema
//DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLT53HURX.kga'));
//DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLT72HL2X.kga'));
///DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLT99HB0X.kga')); // Sound Blaster X-Fi MB2 - THX TruStudio Pro
//DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLTD2H3X2.kga'));
//DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLUE8XYX2.kga'));
//DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLXS2Q3X2.kga')); // Sound Blaster X-Fi MB5
//DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTT78HSK12.kga'));
//DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTT92KD23N.kga'));
//Sleep(400);
//end;
// Install Realtek Audio Console
if WizardIsComponentSelected('UAD') then begin
FilenameLabel.Caption := 'Current Task: Installing UWP Apps with Dependencies'#13 +
'Sub Task: Realtek Audio Console...';
Exec(ExpandConstant('{cmd}'), ExpandConstant('/c powershell.exe -ExecutionPolicy Bypass -Command Add-AppxPackage -Path "{app}\Apps\RealtekAudioControl_1.25.247.0.AppxBundle" -DependencyPath "{app}\AppxDependencies\Microsoft.VCLibs.140.00_14.0.27810.0_x64__8wekyb3d8bbwe.Appx" -ForceApplicationShutdown'), '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
end;
// Install Sound Blaster Connect
if WizardIsComponentSelected('CT\B360') or WizardIsComponentSelected('CT\B720') or WizardIsComponentSelected('CT\C5') then begin
FilenameLabel.Caption := 'Current Task: Installing UWP Apps with Dependencies'#13 +
'Sub Task: {#CTAppName}...';
Exec(ExpandConstant('{cmd}'), ExpandConstant('/c powershell.exe -ExecutionPolicy Bypass -Command Add-AppxPackage -Path "{app}\Apps\SoundBlasterConnect.AppxBundle" -DependencyPath "{app}\AppxDependencies\Microsoft.NET.Native.Framework.1.7_1.7.27413.0_x86__8wekyb3d8bbwe.Appx","{app}\AppxDependencies\Microsoft.NET.Native.Runtime.1.7_1.7.27422.0_x86__8wekyb3d8bbwe.Appx","{app}\AppxDependencies\Microsoft.VCLibs.140.00_14.0.27810.0_x86__8wekyb3d8bbwe.Appx" -ForceApplicationShutdown'), '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
end;
// Install Nahimic 3
if WizardIsComponentSelected('AVO\AVO3\NH3') and (Version.Major = 10) and (Version.Minor = 0) and (Version.Build >= 16299) then begin
FilenameLabel.Caption := 'Current Task: Installing UWP Apps with Dependencies'#13 +
'Sub Task: A-Volute Nahimic 3...';
Exec(ExpandConstant('{cmd}'), ExpandConstant('/c powershell.exe -ExecutionPolicy Bypass -Command Add-AppxPackage -Path "{app}\Apps\Nahimic.AppxBundle" -DependencyPath "{app}\AppxDependencies\Microsoft.NET.Native.Framework.2.2_2.2.27912.0_x64__8wekyb3d8bbwe.Appx","{app}\AppxDependencies\Microsoft.NET.Native.Runtime.2.2_2.2.28604.0_x64__8wekyb3d8bbwe.Appx","{app}\AppxDependencies\Microsoft.VCLibs.140.00_14.0.27810.0_x64__8wekyb3d8bbwe.Appx" -ForceApplicationShutdown -ForceUpdateFromAnyVersion'), '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
end;
// Install Sonic Studio 3
if WizardIsComponentSelected('AVO\AVO3\SS3') and (Version.Major = 10) and (Version.Minor = 0) and (Version.Build >= 16299) or WizardIsComponentSelected('AVO\AVO4\SS3') and (Version.Major = 10) and (Version.Minor = 0) and (Version.Build >= 16299) then begin
FilenameLabel.Caption := 'Current Task: Installing UWP Apps with Dependencies'#13 +
'Sub Task: A-Volute Sonic Studio 3...';
Exec(ExpandConstant('{cmd}'), ExpandConstant('/c powershell.exe -ExecutionPolicy Bypass -Command Add-AppxPackage -Path "{app}\Apps\SonicStudio3.AppxBundle" -DependencyPath "{app}\AppxDependencies\Microsoft.NET.Native.Framework.2.1_2.1.27427.0_x64__8wekyb3d8bbwe.Appx","{app}\AppxDependencies\Microsoft.NET.Native.Runtime.2.1_2.1.26424.0_x64__8wekyb3d8bbwe.Appx","{app}\AppxDependencies\Microsoft.VCLibs.140.00_14.0.27810.0_x64__8wekyb3d8bbwe.Appx" -ForceApplicationShutdown'), '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
end;
// Install Dolby Atmos
if WizardIsComponentSelected('ATM') and (Version.Major = 10) and (Version.Minor = 0) and (Version.Build >= 16299) then begin
FilenameLabel.Caption := 'Current Task: Installing UWP Apps with Dependencies'#13 +
'Sub Task: Dolby Atmos...';
Exec(ExpandConstant('{cmd}'), ExpandConstant('/c powershell.exe -ExecutionPolicy Bypass -Command Add-AppxPackage -Path "{app}\Apps\DolbyAtmos.Appx" -DependencyPath "{app}\AppxDependencies\Microsoft.NET.Native.Framework.2.2_2.2.27912.0_x64__8wekyb3d8bbwe.Appx","{app}\AppxDependencies\Microsoft.NET.Native.Runtime.2.2_2.2.28604.0_x64__8wekyb3d8bbwe.Appx","{app}\AppxDependencies\Microsoft.VCLibs.140.00_14.0.27810.0_x64__8wekyb3d8bbwe.Appx" -ForceApplicationShutdown'), '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
end;
// Install THX TruStudio Pro
//if WizardIsComponentSelected('CT\THX') then begin
//FilenameLabel.Caption := 'Current Task: Installing THX Program'#13 +
//'Sub Task: THX TruStudio Pro...';
//Exec(ExpandConstant('{app}\Apps\THX\setup.exe'), '/s /q /silent /quiet /install', '', SW_SHOW, ewWaitUntilTerminated, ResultCode);
//end;
// Install ASIO Driver
if WizardIsComponentSelected('ASIO') then begin
FilenameLabel.Caption := 'Current Task: Registering Realtek ASIO Libraries...';
RegisterServer(True, ExpandConstant('{sys}\RTHDASIO64.dll'), False);
RegisterServer(False, ExpandConstant('{syswow64}\RTHDASIO.dll'), False);
end;
// Initialize APO Services
FilenameLabel.Caption := 'Current Task: Initializing APO Services'#13 +
'Sub Task: Realtek Service...';
Exec(ExpandConstant('{cmd}'), '/c sc start RtkAudioUniversalService', '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
Exec(ExpandConstant('{cmd}'), '/c sc failure RtkAudioUniversalService reset= 0 actions= restart/0/restart/0/restart/0', '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
if WizardIsComponentSelected('CT') then begin
FilenameLabel.Caption := 'Current Task: Initializing APO Services'#13 +
'Sub Task: Creative Service...';
Exec(ExpandConstant('{cmd}'), '/c sc start UWPService', '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
Exec(ExpandConstant('{cmd}'), '/c sc failure UWPService reset= 0 actions= restart/0/restart/0/restart/0', '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
end;
if WizardIsComponentSelected('AVO') then begin
FilenameLabel.Caption := 'Current Task: Initializing APO Services'#13 +
'Sub Task: A-Volute Service...';
Exec(ExpandConstant('{cmd}'), '/c sc start NahimicService', '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
Exec(ExpandConstant('{cmd}'), '/c sc failure NahimicService reset= 0 actions= restart/0/restart/0/restart/0', '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
end;
if WizardIsComponentSelected('ATM') then begin
FilenameLabel.Caption := 'Current Task: Initializing APO Services'#13 +
'Sub Task: Dolby Service...';
Exec(ExpandConstant('{cmd}'), '/c sc start DolbyDAXAPI', '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
Exec(ExpandConstant('{cmd}'), '/c sc failure DolbyDAXAPI reset= 0 actions= restart/0/restart/0/restart/0', '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
end;
end;
// End Install Section
if CurStep = ssDone then begin
RegDeleteValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{F132AF7F-7BCA-4EDE-8A7C-958108FE7DBD}_is1', 'EstimatedSize');
if MsgBox('Your computer must be restarted to complete the driver package installation.'#13 + 'Do you want to restart your PC now ?', mbConfirmation, MB_YESNO) = IDYES then begin
Exec(ExpandConstant('{sys}\shutdown.exe'), '/r /f /t 0 /d p:1:2', '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
end else
Exit;
end;
end;
procedure DeinitializeSetup();
begin
UnLoadAAFStyles;
DSStopMediaPlay;
end;
function InitializeUninstall: Boolean;
begin
LoadAAFStyle_UnInstall(ExpandConstant('{#AAFStyleSkinFilepath}\Uninst.vsf'));
Result := True;
end;
procedure InitializeUninstallProgressForm();
begin
UninstallProgressForm.WizardSmallBitmapImage.Hide;
UninstallProgressForm.ProgressBar.Style := npbstMarquee;
UninstallProgressForm.BeveledLabel.Caption := '{#RtkAppCopyright} Driver Version: {#RtkAppVersion}';
end;
procedure DeinitializeUninstall();
begin
UnLoadAAFStyles_UnInstall;
DeleteFile(ExpandConstant('{#AAFStyleSkinFilepath}\AAF.VStyles.dll'));
DeleteFile(ExpandConstant('{#AAFStyleSkinFilepath}\Uninst.vsf'));
DelTree(ExpandConstant('{#AAFStyleSkinFilepath}\*'), True, True, True);
RemoveDir(ExpandConstant('{#AAFStyleSkinFilepath}'));
RegDeleteValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Run', 'RtkAudUService');
RegDeleteValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Run', 'AAFDCHBgRunKey');
if Terminated = TRUE then begin
DeleteFile(ExpandConstant('{#AAFStyleSkinFilepath}\AAF.VStyles.dll'));
DeleteFile(ExpandConstant('{#AAFStyleSkinFilepath}\Uninst.vsf'));
DelTree(ExpandConstant('{#AAFStyleSkinFilepath}\*'), True, True, True);
RemoveDir(ExpandConstant('{#AAFStyleSkinFilepath}'));
RegDeleteValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Run', 'RtkAudUService');
RegDeleteValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Run', 'AAFDCHBgRunKey');
end;
end;