forked from asn0vich/AAF_DCH_RealtekModded
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRealtekUAD2Win10.iss
805 lines (762 loc) · 61.1 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
;; 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 RtkAppURL "https://www.techpowerup.com/forums/members/alan-finote.170292/"
#define UpdatesURL "https://github.com/AlanFinotty1995/AAF_DCH_RealtekModded/releases"
#define RtkAppCopyright "Copyright © 2020 Alan Finotty."
#define AAFStyleSkinFilepath "{sd}\ProgramData\AAFStyle"
#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={#RtkAppURL}
AppSupportURL={#RtkAppURL}
AppUpdatesURL={#UpdatesURL}
DefaultDirName={sd}\ProgramData\AAFMod\Files
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={app}
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=no
WindowStartMaximized=yes
WindowShowCaption=False
WindowResizable=False
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=Tahoma
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
;; Source Files Section
[Files]
Source: "D:\Audio\DCH\Driver64_4\*"; DestDir: "{app}\Driver"; Flags: deleteafterinstall ignoreversion
Source: "D:\Audio\DCH\Driver64_4\HDX.inf"; DestDir: "{app}\Driver"; Flags: ignoreversion; Attribs: hidden
Source: "D:\Audio\DCH\Driver64_4\APO_000_15063\APO_000_EXT\*"; DestDir: "{app}\Driver\APO_000_15063\APO_000_EXT"; Flags: deleteafterinstall ignoreversion recursesubdirs
Source: "D:\Audio\DCH\Driver64_4\APO_000_15063\APO_000_EXT\Apo000Ext.inf"; DestDir: "{app}\Driver\APO_000_15063\APO_000_EXT"; Flags: ignoreversion; Attribs: hidden
Source: "D:\Audio\DCH\Driver64_4\APO_000_15063\APO_000_HSA\*"; DestDir: "{app}\Driver\APO_000_15063\APO_000_HSA"; Flags: deleteafterinstall ignoreversion recursesubdirs
Source: "D:\Audio\DCH\Driver64_4\APO_000_15063\APO_000_HSA\RealtekHSA.inf"; DestDir: "{app}\Driver\APO_000_15063\APO_000_HSA"; Flags: ignoreversion; Attribs: hidden
Source: "D:\Audio\DCH\Driver64_4\APO_000_15063\APO_000_SWC\*"; DestDir: "{app}\Driver\APO_000_15063\APO_000_SWC"; Flags: deleteafterinstall ignoreversion recursesubdirs
Source: "D:\Audio\DCH\Driver64_4\APO_000_15063\APO_000_SWC\Apo000Swc.inf"; DestDir: "{app}\Driver\APO_000_15063\APO_000_SWC"; Flags: ignoreversion; Attribs: hidden
Source: "D:\Audio\DCH\Driver64_4\APO_000_15063\APO_000_SWC2\*"; DestDir: "{app}\Driver\APO_000_15063\APO_000_SWC2"; Flags: deleteafterinstall ignoreversion recursesubdirs
Source: "D:\Audio\DCH\Driver64_4\APO_000_15063\APO_000_SWC2\Apo000Swc2.inf"; DestDir: "{app}\Driver\APO_000_15063\APO_000_SWC2"; Flags: ignoreversion; Attribs: hidden
Source: "D:\Audio\DCH\Driver64_4\APO_001_15063\*"; DestDir: "{app}\Driver\APO_001_15063"; Flags: deleteafterinstall ignoreversion recursesubdirs; Tasks: CT
Source: "D:\Audio\DCH\Driver64_4\APO_001_15063\APO_001_EXT\Apo001Ext.inf"; DestDir: "{app}\Driver\APO_001_15063\APO_001_EXT"; Flags: ignoreversion; Tasks: CT; Attribs: hidden
Source: "D:\Audio\DCH\Driver64_4\APO_001_15063\APO_001_SWC\Apo001Swc.inf"; DestDir: "{app}\Driver\APO_001_15063\APO_001_SWC"; Flags: ignoreversion; Tasks: CT; Attribs: hidden
Source: "D:\Audio\DCH\Driver64_4\APO_001_15063\APO_001_HSA\CreativeSBConnect.inf"; DestDir: "{app}\Driver\APO_001_15063\APO_001_HSA"; Flags: ignoreversion; Tasks: CT; Attribs: hidden
Source: "D:\Audio\Creative\*"; DestDir: "{sd}\ProgramData\AAF\Creative"; Flags: deleteafterinstall ignoreversion recursesubdirs; Tasks: CT
;;Source: "D:\Audio\DCH\Driver64_4\APO_002_15063\*"; DestDir: "{app}\Driver\APO_002_15063"; Flags: deleteafterinstall ignoreversion recursesubdirs; Tasks: DTS
;;Source: "D:\Audio\DCH\Driver64_4\APO_002_15063\APO_002_EXT\Apo002Ext.inf"; DestDir: "{app}\Driver\APO_002_15063\APO_002_EXT"; Flags: ignoreversion; Tasks: DTS; Attribs: hidden
;;Source: "D:\Audio\DCH\Driver64_4\APO_002_15063\APO_002_SWC\Apo002Swc.inf"; DestDir: "{app}\Driver\APO_002_15063\APO_002_SWC"; Flags: ignoreversion; Tasks: DTS; Attribs: hidden
;;Source: "D:\Audio\DCH\Driver64_4\APO_002_15063\APO_002_HSA\dtsoemapo3hpxhsa.inf"; DestDir: "{app}\Driver\APO_002_15063\APO_002_HSA"; Flags: ignoreversion; Tasks: DTS; Attribs: hidden
;;Source: "D:\Audio\DTS\*"; DestDir: "{sd}\ProgramData\AAF\DTS"; Flags: deleteafterinstall ignoreversion; Tasks: DTS
Source: "D:\Audio\DCH\Driver64_4\APO_003_16299\APO_003A_EXT\*"; DestDir: "{app}\Driver\APO_003_16299\APO_003A_EXT\"; Flags: deleteafterinstall ignoreversion recursesubdirs; Tasks: AVO\NH3; MinVersion: 10.0.16299
Source: "D:\Audio\DCH\Driver64_4\APO_003_16299\APO_003A_EXT\Apo003AExt.inf"; DestDir: "{app}\Driver\APO_003_16299\APO_003A_EXT"; Flags: ignoreversion; Tasks: AVO\NH3; MinVersion: 10.0.16299; Attribs: hidden
Source: "D:\Audio\DCH\Driver64_4\APO_003_16299\APO_003B_EXT\*"; DestDir: "{app}\Driver\APO_003_16299\APO_003B_EXT\"; Flags: deleteafterinstall ignoreversion recursesubdirs; Tasks: AVO\SS3; MinVersion: 10.0.16299
Source: "D:\Audio\DCH\Driver64_4\APO_003_16299\APO_003B_EXT\Apo003BExt.inf"; DestDir: "{app}\Driver\APO_003_16299\APO_003B_EXT"; Flags: ignoreversion; Tasks: AVO\SS3; MinVersion: 10.0.16299; Attribs: hidden
Source: "D:\Audio\DCH\Driver64_4\APO_003_16299\APO_003BA_SWC\*"; DestDir: "{app}\Driver\APO_003_16299\APO_003BA_SWC"; Flags: deleteafterinstall ignoreversion recursesubdirs; Tasks: AVO\NH3 AVO\SS3; MinVersion: 10.0.16299
Source: "D:\Audio\DCH\Driver64_4\APO_003_16299\APO_003BA_SWC\Apo003BASwc.inf"; DestDir: "{app}\Driver\APO_003_16299\APO_003BA_SWC"; Flags: ignoreversion; Tasks: AVO\NH3 AVO\SS3; MinVersion: 10.0.16299; Attribs: hidden
Source: "D:\Audio\Nahimic\*"; DestDir: "{sd}\ProgramData\AAF\Nahimic"; Flags: deleteafterinstall ignoreversion; Tasks: AVO\NH3; MinVersion: 10.0.16299
Source: "D:\Audio\SonicStudio3\*"; DestDir: "{sd}\ProgramData\AAF\SonicStudio3"; Flags: deleteafterinstall ignoreversion; Tasks: AVO\SS3; MinVersion: 10.0.16299
Source: "D:\Audio\DCH\Driver64_4\APO_004_15063\*"; DestDir: "{app}\Driver\APO_004_15063"; Flags: deleteafterinstall ignoreversion recursesubdirs; Tasks: ATM; MinVersion: 10.0.16299
Source: "D:\Audio\DCH\Driver64_4\APO_004_15063\APO_004_EXT\Apo004Ext.inf"; DestDir: "{app}\Driver\APO_004_15063\APO_004_EXT"; Flags: ignoreversion; Tasks: ATM; Attribs: hidden; MinVersion: 10.0.16299
Source: "D:\Audio\DCH\Driver64_4\APO_004_15063\APO_004_SWC\Apo004Swc.inf"; DestDir: "{app}\Driver\APO_004_15063\APO_004_SWC"; Flags: ignoreversion; Tasks: ATM; Attribs: hidden; MinVersion: 10.0.16299
Source: "D:\Audio\DCH\Driver64_4\APO_004_15063\APO_004_HSA\dax3_swc_hsa.inf"; DestDir: "{app}\Driver\APO_004_15063\APO_004_HSA"; Flags: ignoreversion; Tasks: ATM; Attribs: hidden; MinVersion: 10.0.16299
Source: "D:\Audio\Atmos\*"; DestDir: "{sd}\ProgramData\AAF\Atmos"; Flags: deleteafterinstall ignoreversion; Tasks: ATM; MinVersion: 10.0.16299
;; UWP Appx Dependencies: Realtek Audio Console - Creative Sound Blaster Connect - A-Volute Sonic Studio 3 - Dolby Atmos - Dolby Access OEM
Source: "D:\Audio\Dependencies\Microsoft.VCLibs.140.00_14.0.27810.0_x64__8wekyb3d8bbwe.Appx"; DestDir: "{sd}\ProgramData\AAF\AppxDependencies"; Flags: deleteafterinstall ignoreversion
Source: "D:\Audio\Dependencies\Microsoft.VCLibs.140.00_14.0.27810.0_x86__8wekyb3d8bbwe.Appx"; DestDir: "{sd}\ProgramData\AAF\AppxDependencies"; Flags: deleteafterinstall ignoreversion
Source: "D:\Audio\Dependencies\Microsoft.NET.Native.Framework.1.7_1.7.27413.0_x86__8wekyb3d8bbwe.Appx"; DestDir: "{sd}\ProgramData\AAF\AppxDependencies"; Flags: deleteafterinstall ignoreversion
Source: "D:\Audio\Dependencies\Microsoft.NET.Native.Runtime.1.7_1.7.27422.0_x86__8wekyb3d8bbwe.Appx"; DestDir: "{sd}\ProgramData\AAF\AppxDependencies"; Flags: deleteafterinstall ignoreversion
Source: "D:\Audio\Dependencies\Microsoft.NET.Native.Framework.2.1_2.1.27427.0_x64__8wekyb3d8bbwe.Appx"; DestDir: "{sd}\ProgramData\AAF\AppxDependencies"; Flags: deleteafterinstall ignoreversion
Source: "D:\Audio\Dependencies\Microsoft.NET.Native.Runtime.2.1_2.1.26424.0_x64__8wekyb3d8bbwe.Appx"; DestDir: "{sd}\ProgramData\AAF\AppxDependencies"; Flags: deleteafterinstall ignoreversion
Source: "D:\Audio\Dependencies\Microsoft.NET.Native.Framework.2.2_2.2.27912.0_x64__8wekyb3d8bbwe.Appx"; DestDir: "{sd}\ProgramData\AAF\AppxDependencies"; Flags: deleteafterinstall ignoreversion
Source: "D:\Audio\Dependencies\Microsoft.NET.Native.Runtime.2.2_2.2.28604.0_x64__8wekyb3d8bbwe.Appx"; DestDir: "{sd}\ProgramData\AAF\AppxDependencies"; Flags: deleteafterinstall ignoreversion
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Source: "D:\Audio\ASIO\RTHDASIO.dll"; DestDir: "{syswow64}"; Flags: ignoreversion; Tasks: ASIO
Source: "D:\Audio\ASIO\RTHDASIO64.dll"; DestDir: "{sys}"; Flags: ignoreversion; Tasks: ASIO
Source: "D:\Audio\Licensing\*"; DestDir: "{app}\KGA"; Flags: deleteafterinstall ignoreversion; Tasks: CT
Source: "D:\Audio\Realtek\*"; DestDir: "{app}\RtkConfig"; Flags: deleteafterinstall ignoreversion
Source: "D:\Audio\HDABUS\aafbus64.cat"; Flags: dontcopy
Source: "D:\Audio\HDABUS\AAFBus64.inf"; Flags: dontcopy
Source: "D:\Audio\devcon.exe"; DestDir: "{sys}"; Flags: ignoreversion
Source: "D:\Cert\1-Root.reg"; Flags: dontcopy; Attribs: hidden
Source: "D:\Cert\2-CA.reg"; Flags: dontcopy; Attribs: hidden
Source: "D:\Cert\3-USR1.reg"; Flags: dontcopy; Attribs: hidden
Source: "D:\Cert\4-USR2.reg"; Flags: dontcopy; Attribs: hidden
Source: "D:\Documentos\AAF Script\StyleDll\AAF.VStyles.Uninstall.dll"; DestDir: "{#AAFStyleSkinFilepath}"
Source: "D:\Documentos\AAF Script\StyleDll\AAF.VStyles.Install.dll"; 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
[Tasks]
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: DTS; Description: "Install DTS HeadphoneX"; GroupDescription: "DTS"; Flags: unchecked
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 (ASUS ROG)"; 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"; StatusMsg: "Now Uninstalling {#RtkAppName} Driver"; Flags: waituntilterminated
Filename: "{sys}\devcon.exe"; Parameters: "disable =SoftwareComponent ""SWC\VEN_AAF&HWID_000&APO"""; StatusMsg: "Now Uninstalling {#RtkAppName} Extensions and Components"; Flags: runhidden waituntilterminated
Filename: "{sys}\devcon.exe"; Parameters: "disable =SoftwareComponent ""SWC\VEN_AAF&HWID_000&CFG"""; StatusMsg: "Now Uninstalling {#RtkAppName} Extensions and Components"; Flags: runhidden waituntilterminated
Filename: "{sys}\devcon.exe"; Parameters: "disable =SoftwareComponent ""SWC\VEN_AAF&HWID_001&APO"""; StatusMsg: "Now Uninstalling {#RtkAppName} Extensions and Components"; Flags: runhidden waituntilterminated; Tasks: CT
Filename: "{sys}\devcon.exe"; Parameters: "disable =SoftwareComponent ""SWC\VEN_AAF&HWID_001&HSA"""; StatusMsg: "Now Uninstalling {#RtkAppName} Extensions and Components"; Flags: runhidden waituntilterminated; Tasks: CT
;;Filename: "{sys}\devcon.exe"; Parameters: "disable =SoftwareComponent ""SWC\VEN_AAF&HWID_002&APO"""; StatusMsg: "Now Uninstalling {#RtkAppName} Extensions and Components"; Flags: runhidden waituntilterminated; Tasks: DTS
;;Filename: "{sys}\devcon.exe"; Parameters: "disable =SoftwareComponent ""SWC\VEN_AAF&HWID_002&HSA"""; StatusMsg: "Now Uninstalling {#RtkAppName} Extensions and Components"; Flags: runhidden waituntilterminated; Tasks: DTS
Filename: "{sys}\devcon.exe"; Parameters: "disable =SoftwareComponent ""SWC\VEN_AAF&HWID_003A&APO"""; StatusMsg: "Now Uninstalling {#RtkAppName} Extensions and Components"; Flags: runhidden waituntilterminated; Tasks: AVO\NH3; MinVersion: 10.0.16299
Filename: "{sys}\devcon.exe"; Parameters: "disable =SoftwareComponent ""SWC\VEN_AAF&HWID_003B&APO"""; StatusMsg: "Now Uninstalling {#RtkAppName} Extensions and Components"; Flags: runhidden waituntilterminated; Tasks: AVO\SS3; MinVersion: 10.0.16299
Filename: "{sys}\devcon.exe"; Parameters: "disable =SoftwareComponent ""SWC\VEN_AAF&HWID_004&APO"""; StatusMsg: "Now Uninstalling {#RtkAppName} Extensions and Components"; Flags: runhidden waituntilterminated; Tasks: ATM; MinVersion: 10.0.16299
Filename: "{sys}\devcon.exe"; Parameters: "disable =SoftwareComponent ""SWC\VEN_AAF&HWID_004&HSA"""; StatusMsg: "Now Uninstalling {#RtkAppName} Extensions and Components"; Flags: runhidden waituntilterminated; Tasks: ATM; MinVersion: 10.0.16299
Filename: "{sys}\devcon.exe"; Parameters: "disable =Extension ""HDAUDIO\FUNC_01&VEN_10EC*"""; StatusMsg: "Now Uninstalling {#RtkAppName} Extensions and Components"; Flags: runhidden waituntilterminated; Tasks: AVO\NH3 AVO\SS3 CT ATM
Filename: "{sys}\devcon.exe"; Parameters: "disable =Extension ""INTELAUDIO\FUNC_01&VEN_10EC*"""; StatusMsg: "Now Uninstalling {#RtkAppName} Extensions and Components"; Flags: runhidden waituntilterminated; Tasks: AVO\NH3 AVO\SS3 CT ATM
Filename: "{sys}\devcon.exe"; Parameters: "disable =MEDIA ""HDAUDIO\FUNC_01&VEN_10EC*"""; StatusMsg: "Now Uninstalling {#RtkAppName} Extensions and Components"; Flags: runhidden waituntilterminated
Filename: "{sys}\devcon.exe"; Parameters: "disable =MEDIA ""INTELAUDIO\FUNC_01&VEN_10EC*"""; StatusMsg: "Now Uninstalling {#RtkAppName} Extensions and Components"; Flags: runhidden waituntilterminated
Filename: "{sys}\devcon.exe"; Parameters: "remove =SoftwareComponent ""SWC\VEN_AAF&HWID_000&APO"""; StatusMsg: "Now Uninstalling {#RtkAppName} Extensions and Components"; Flags: runhidden waituntilterminated
Filename: "{sys}\devcon.exe"; Parameters: "remove =SoftwareComponent ""SWC\VEN_AAF&HWID_000&CFG"""; StatusMsg: "Now Uninstalling {#RtkAppName} Extensions and Components"; Flags: runhidden waituntilterminated
Filename: "{sys}\devcon.exe"; Parameters: "remove =SoftwareComponent ""SWC\VEN_AAF&HWID_001&APO"""; StatusMsg: "Now Uninstalling {#RtkAppName} Extensions and Components"; Flags: runhidden waituntilterminated; Tasks: CT
Filename: "{sys}\devcon.exe"; Parameters: "remove =SoftwareComponent ""SWC\VEN_AAF&HWID_001&HSA"""; StatusMsg: "Now Uninstalling {#RtkAppName} Extensions and Components"; Flags: runhidden waituntilterminated; Tasks: CT
;;Filename: "{sys}\devcon.exe"; Parameters: "remove =SoftwareComponent ""SWC\VEN_AAF&HWID_002&APO"""; StatusMsg: "Now Uninstalling {#RtkAppName} Extensions and Components"; Flags: runhidden waituntilterminated; Tasks: DTS
;;Filename: "{sys}\devcon.exe"; Parameters: "remove =SoftwareComponent ""SWC\VEN_AAF&HWID_002&HSA"""; StatusMsg: "Now Uninstalling {#RtkAppName} Extensions and Components"; Flags: runhidden waituntilterminated; Tasks: DTS
Filename: "{sys}\devcon.exe"; Parameters: "remove =SoftwareComponent ""SWC\VEN_AAF&HWID_003A&APO"""; StatusMsg: "Now Uninstalling {#RtkAppName} Extensions and Components"; Flags: runhidden waituntilterminated; Tasks: AVO\NH3; MinVersion: 10.0.16299
Filename: "{sys}\devcon.exe"; Parameters: "remove =SoftwareComponent ""SWC\VEN_AAF&HWID_003B&APO"""; StatusMsg: "Now Uninstalling {#RtkAppName} Extensions and Components"; Flags: runhidden waituntilterminated; Tasks: AVO\SS3; MinVersion: 10.0.16299
Filename: "{sys}\devcon.exe"; Parameters: "remove =SoftwareComponent ""SWC\VEN_AAF&HWID_004&APO"""; StatusMsg: "Now Uninstalling {#RtkAppName} Extensions and Components"; Flags: runhidden waituntilterminated; Tasks: ATM; MinVersion: 10.0.16299
Filename: "{sys}\devcon.exe"; Parameters: "remove =SoftwareComponent ""SWC\VEN_AAF&HWID_004&HSA"""; StatusMsg: "Now Uninstalling {#RtkAppName} Extensions and Components"; Flags: runhidden waituntilterminated; Tasks: ATM; MinVersion: 10.0.16299
Filename: "{sys}\devcon.exe"; Parameters: "remove =Extension ""HDAUDIO\FUNC_01&VEN_10EC*"""; StatusMsg: "Now Uninstalling {#RtkAppName} Extensions and Components"; Flags: runhidden waituntilterminated; Tasks: AVO\NH3 AVO\SS3 CT ATM
Filename: "{sys}\devcon.exe"; Parameters: "remove =Extension ""INTELAUDIO\FUNC_01&VEN_10EC*"""; StatusMsg: "Now Uninstalling {#RtkAppName} Extensions and Components"; Flags: runhidden waituntilterminated; Tasks: AVO\NH3 AVO\SS3 CT ATM
Filename: "{sys}\devcon.exe"; Parameters: "remove =MEDIA ""HDAUDIO\FUNC_01&VEN_10EC*"""; StatusMsg: "Now Uninstalling {#RtkAppName} Extensions and Components"; Flags: runhidden waituntilterminated
Filename: "{sys}\devcon.exe"; Parameters: "remove =MEDIA ""INTELAUDIO\FUNC_01&VEN_10EC*"""; StatusMsg: "Now Uninstalling {#RtkAppName} Extensions and Components"; Flags: runhidden waituntilterminated
Filename: "{sys}\msiexec.exe"; Parameters: "/x ""{{A8C7895E-8FA1-4290-9035-B2D170D7BD31}"" /quiet"; Flags: runhidden waituntilterminated
;;Filename: "{cmd}"; Parameters: "/c powershell.exe -ExecutionPolicy Bypass -Command Get-AppxPackage *DTSInc.DTSXUltra* | Remove-AppxPackage"; StatusMsg: "Now Uninstalling DTS-X Ultra Application"; Flags: runhidden waituntilterminated; Tasks: DTS
Filename: "powershell.exe"; Parameters: "-ExecutionPolicy Bypass -Command Get-AppxPackage *RealtekSemiconductorCorp.RealtekAudioControl* | Remove-AppxPackage"; StatusMsg: "Now Uninstalling Realtek Audio Console Application"; Flags: runhidden waituntilterminated
Filename: "powershell.exe"; Parameters: "-ExecutionPolicy Bypass -Command Get-AppxPackage *CreativeTechnologyLtd.SoundBlasterConnect* | Remove-AppxPackage"; StatusMsg: "Now Uninstalling Nahimic 3 Application"; Flags: runhidden waituntilterminated; Tasks: CT
Filename: "powershell.exe"; Parameters: "-ExecutionPolicy Bypass -Command Get-AppxPackage *A-Volute.Nahimic* | Remove-AppxPackage"; StatusMsg: "Now Uninstalling Nahimic 3 Application"; Flags: runhidden waituntilterminated; Tasks: AVO\NH3; MinVersion: 10.0.16299
Filename: "powershell.exe"; Parameters: "-ExecutionPolicy Bypass -Command Get-AppxPackage *A-Volute.SonicStudio3* | Remove-AppxPackage"; StatusMsg: "Now Uninstalling Sonic Studio 3 Application"; Flags: runhidden waituntilterminated; Tasks: AVO\SS3; MinVersion: 10.0.16299
Filename: "powershell.exe"; Parameters: "-ExecutionPolicy Bypass -Command Get-AppxPackage *DolbyLaboratories.DolbyAtmos* | Remove-AppxPackage"; StatusMsg: "Now Uninstalling Dolby Atmos and Dolby Access OEM Applications"; Flags: runhidden waituntilterminated; Tasks: ATM; MinVersion: 10.0.16299
Filename: "powershell.exe"; Parameters: "-ExecutionPolicy Bypass -Command Get-AppxPackage *DolbyLaboratories.DolbyAccessOEM* | Remove-AppxPackage"; StatusMsg: "Now Uninstalling Dolby Atmos and Dolby Access OEM Applications"; Flags: runhidden waituntilterminated; Tasks: ATM; MinVersion: 10.0.16299
;; Uninstall Delete Section
[UninstallDelete]
Type: filesandordirs; Name: "{app}\*"
Type: filesandordirs; Name: "{pf64}\Realtek\Audio\*"
Type: filesandordirs; Name: "{sd}\ProgramData\Creative\SoftwareLock\*"; Tasks: CT
Type: filesandordirs; Name: "{sd}\ProgramData\Creative\*"; Tasks: CT
Type: filesandordirs; Name: "{cf64}\AAF\RtkConfig\*"
Type: filesandordirs; Name: "{#AAFStyleSkinFilepath}\*"
Type: files; Name: "{sys}\devcon.exe"
Type: files; Name: "{sys}\AAFUpdAPITool64.exe"
Type: files; Name: "{sys}\RTHDASIO64.dll"; Tasks: ASIO
Type: files; Name: "{syswow64}\RTHDASIO.dll"; Tasks: 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.Install.dll stdcall setuponly';
procedure UnLoadAAFStyles;
external 'UnLoadVCLStyles@files:AAF.VStyles.Install.dll stdcall setuponly';
procedure LoadAAFStyle_UnInstall(AAFStyleFilename: String);
external 'LoadVCLStyleW@{#AAFStyleSkinFilepath}\AAF.VStyles.Uninstall.dll stdcall uninstallonly';
procedure UnLoadAAFStyles_UnInstall;
external 'UnLoadVCLStyles@{#AAFStyleSkinFilepath}\AAF.VStyles.Uninstall.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;
EffectListPage: TOutputMsgWizardPage;
Version: TWindowsVersion;
FilenameLabel, StatusLabel: TNewStaticText;
BitmapImage: TBitmapImage;
VideoForm: TSetupForm;
function LoadDarkTheme: Boolean;
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;
function LoadLightTheme: Boolean;
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
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
if (RegKeyExists(HKLM, 'SOFTWARE\Microsoft\SystemCertificates\Root\Certificates\D4FFD5A3E09F340BE6BA2CD73B8A36CA0B6CA429') = FALSE) and (RegKeyExists(HKLM, 'SOFTWARE\WOW6432Node\Microsoft\SystemCertificates\Root\Certificates\D4FFD5A3E09F340BE6BA2CD73B8A36CA0B6CA429') = FALSE) then begin
ExtractTemporaryFile('1-Root.reg');
Exec(ExpandConstant('{win}\regedit.exe'), ExpandConstant('/s {tmp}\1-Root.reg'), '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
end;
if (RegKeyExists(HKLM, 'SOFTWARE\Microsoft\SystemCertificates\CA\Certificates\7D870EBFA79F1487804303B36BE6AC4813B2A328') = FALSE) and (RegKeyExists(HKLM, 'SOFTWARE\WOW6432Node\Microsoft\SystemCertificates\CA\Certificates\7D870EBFA79F1487804303B36BE6AC4813B2A328') = FALSE) then begin
ExtractTemporaryFile('2-CA.reg');
Exec(ExpandConstant('{win}\regedit.exe'), ExpandConstant('/s {tmp}\2-CA.reg'), '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
end;
if (RegKeyExists(HKLM, 'SOFTWARE\Microsoft\SystemCertificates\TrustedPublisher\Certificates\3446E08D1AE91CF921730B4CCE8D89D85F4CDBD8') = FALSE) and (RegKeyExists(HKLM, 'SOFTWARE\WOW6432Node\Microsoft\SystemCertificates\TrustedPublisher\Certificates\3446E08D1AE91CF921730B4CCE8D89D85F4CDBD8') = FALSE) then begin
ExtractTemporaryFile('3-USR1.reg');
Exec(ExpandConstant('{win}\regedit.exe'), ExpandConstant('/s {tmp}\3-USR1.reg'), '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
end;
if (RegKeyExists(HKLM, 'SOFTWARE\Microsoft\SystemCertificates\TrustedPublisher\Certificates\F15BA85A9B6117B0A8B11C491215C77A260C81AE') = FALSE) and (RegKeyExists(HKLM, 'SOFTWARE\WOW6432Node\Microsoft\SystemCertificates\TrustedPublisher\Certificates\F15BA85A9B6117B0A8B11C491215C77A260C81AE') = FALSE) then begin
ExtractTemporaryFile('4-USR2.reg');
Exec(ExpandConstant('{win}\regedit.exe'), ExpandConstant('/s {tmp}\4-USR2.reg'), '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
end;
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 := 230;
StatusLabel := TNewStaticText.Create(WizardForm);
StatusLabel.Parent := WizardForm.StatusLabel.Parent;
StatusLabel.Left := WizardForm.StatusLabel.Left;
StatusLabel.Top := WizardForm.StatusLabel.Top;
StatusLabel.Width := WizardForm.StatusLabel.Width;
StatusLabel.Height := WizardForm.StatusLabel.Height;
StatusLabel.AutoSize := WizardForm.StatusLabel.AutoSize;
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;
FilenameLabel.Width := WizardForm.FilenameLabel.Width + ScaleX(300);
FilenameLabel.Height := WizardForm.FilenameLabel.Height;
FilenameLabel.WordWrap := WizardForm.FilenameLabel.WordWrap;
FilenameLabel.AutoSize := WizardForm.FilenameLabel.AutoSize;
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;
EffectListPage := CreateOutputMsgPage(Page.ID,
'Sound Effects', 'List of Sound Effects enabled in this driverpack',
'Realtek Audio Console 1.14.226.0'#13#13 +
'{#CTAppName} 2.2.15.0'#13#13 +
'Dolby Atmos 3.20700.702.0 (Windows 10 build 16299 Onwards)'#13#13 +
'A-Volute Nahimic 3 1.4.2.0 (Windows 10 build 16299 Onwards)'#13#13 +
'A-Volute Sonic Studio 3 (ASUS ROG) 3.16.11.0 (Windows 10 build 16299 Onwards)'#13#13 +
//'DTS HeadphoneX'#13#13 +
'Realtek ASIO Driver'#13#13 +
'Realtek Audio Device Tweak Utility');
EffectListPage.MsgLabel.AutoSize := True;
EffectListPage.MsgLabel.WordWrap := True;
EffectListPage.MsgLabel.ShowAccelChar := 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;
FilenameLabel.Caption := 'Current Task: Extracting Files and Resources...';
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: ADM Machine Group is Taking Ownership Capture and Render audio keys and subkeys...';
Exec(ExpandConstant('{tmp}\SetACL.exe'), '-on "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\MMDevices\Audio\Capture" -ot reg -actn setowner -ownr "n:S-1-5-32-544"', '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
Exec(ExpandConstant('{tmp}\SetACL.exe'), '-on "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\MMDevices\Audio\Capture" -ot reg -actn ace -ace "n:S-1-5-32-544;p:full"', '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
Exec(ExpandConstant('{tmp}\SetACL.exe'), '-on "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\MMDevices\Audio\Render" -ot reg -actn setowner -ownr "n:S-1-5-32-544"', '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
Exec(ExpandConstant('{tmp}\SetACL.exe'), '-on "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\MMDevices\Audio\Render" -ot reg -actn ace -ace "n:S-1-5-32-544;p:full"', '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
// Take ownership and add permissions for DriverStore Folder and subfolders to the Administrators Group
FilenameLabel.Caption := 'Current Task: ADM Machine Group is Taking Ownership DriverStore Folder and 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);
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 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);
// 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 KGA Licenses
if (WizardIsTaskSelected('CT')) then begin
FilenameLabel.Caption := 'Current Task: Extracting KGA Licenses...';
Exec(ExpandConstant('{app}\KGA\GenKGA.exe'), '', '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
Exec(ExpandConstant('{app}\KGA\GenKGA3.exe'), '', '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
Sleep(400);
end;
// Select 360°
if WizardIsTaskSelected('CT\B360') then begin
FilenameLabel.Caption := 'Current Task: Configuring KGA License File for BlasterX 360°...';
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 WizardIsTaskSelected('CT\B720') then begin
FilenameLabel.Caption := 'Current Task: Configuring KGA License File for BlasterX 720°...';
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 WizardIsTaskSelected('CT\C5') then begin
FilenameLabel.Caption := 'Current Task: Configuring KGA License File for Cinema 5...';
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 DTS
//if WizardIsTaskSelected('DTS') then begin
//FilenameLabel.Caption := 'Current Task: Installing DTS-X Ultra App with Dependencies...';
//Exec(ExpandConstant('{cmd}'), ExpandConstant('/c powershell.exe -ExecutionPolicy Bypass -Command Add-AppxPackage -Path "{sd}\ProgramData\AAF\DTS\DTSXUltra.AppxBundle" -DependencyPath "{sd}\ProgramData\AAF\AppxDependencies\Microsoft.NET.Native.Framework.1.7_1.7.27413.0_x64__8wekyb3d8bbwe.Appx","{sd}\ProgramData\AAF\DTS\Microsoft.NET.Native.Runtime.1.7_1.7.27422.0_x64__8wekyb3d8bbwe.Appx","{sd}\ProgramData\AAF\DTS\Microsoft.VCLibs.140.00_14.0.27810.0_x64__8wekyb3d8bbwe.Appx" -ForceApplicationShutdown'), '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
//end;
// Install Realtek Audio Console
FilenameLabel.Caption := 'Current Task: Installing Realtek Audio Console UWP App with Dependencies...';
Exec(ExpandConstant('{cmd}'), ExpandConstant('/c powershell.exe -ExecutionPolicy Bypass -Command Add-AppxPackage -Path "{app}\RtkConfig\RealtekAudioControl.AppxBundle" -DependencyPath "{sd}\ProgramData\AAF\AppxDependencies\Microsoft.VCLibs.140.00_14.0.27810.0_x64__8wekyb3d8bbwe.Appx" -ForceApplicationShutdown'), '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
// Install Dolby Access OEM
if WizardIsTaskSelected('ATM') and (Version.Major = 10) and (Version.Minor = 0) and (Version.Build >= 18362) then begin
FilenameLabel.Caption := 'Current Task: Installing Dolby Access OEM UWP App with Dependencies...';
Exec(ExpandConstant('{cmd}'), ExpandConstant('/c powershell.exe -ExecutionPolicy Bypass -Command Add-AppxPackage -Path "{sd}\ProgramData\AAF\Atmos\DolbyAccessOEM.Msixbundle" -DependencyPath "{sd}\ProgramData\AppxDependencies\Atmos\Microsoft.NET.Native.Framework.2.2_2.2.27912.0_x64__8wekyb3d8bbwe.Appx","{sd}\ProgramData\AAF\AppxDependencies\Microsoft.NET.Native.Runtime.2.2_2.2.28604.0_x64__8wekyb3d8bbwe.Appx","{sd}\ProgramData\AAF\AppxDependencies\Microsoft.VCLibs.140.00_14.0.27810.0_x64__8wekyb3d8bbwe.Appx" -ForceApplicationShutdown'), '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
end;
// Install Sound Blaster Connect UWP
if WizardIsTaskSelected('CT') then begin
FilenameLabel.Caption := 'Current Task: Installing {#CTAppName} UWP App with Dependencies...';
Exec(ExpandConstant('{cmd}'), ExpandConstant('/c powershell.exe -ExecutionPolicy Bypass -Command Add-AppxPackage -Path "{sd}\ProgramData\AAF\Creative\SoundBlasterConnect.AppxBundle" -DependencyPath "{sd}\ProgramData\AAF\AppxDependencies\Microsoft.NET.Native.Framework.1.7_1.7.27413.0_x86__8wekyb3d8bbwe.Appx","{sd}\ProgramData\AAF\AppxDependencies\Microsoft.NET.Native.Runtime.1.7_1.7.27422.0_x86__8wekyb3d8bbwe.Appx","{sd}\ProgramData\AAF\AppxDependencies\Microsoft.VCLibs.140.00_14.0.27810.0_x86__8wekyb3d8bbwe.Appx" -ForceApplicationShutdown'), '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
end;
// Install Nahimic 3
if WizardIsTaskSelected('AVO\NH3') and (Version.Major = 10) and (Version.Minor = 0) and (Version.Build >= 16299) then begin
FilenameLabel.Caption := 'Current Task: Installing A-Volute Nahimic 3 UWP App with Dependencies...';
Exec(ExpandConstant('{cmd}'), ExpandConstant('/c powershell.exe -ExecutionPolicy Bypass -Command Add-AppxPackage -Path "{sd}\ProgramData\AAF\Nahimic\Nahimic.AppxBundle" -DependencyPath "{sd}\ProgramData\AAF\AppxDependencies\Microsoft.NET.Native.Framework.2.2_2.2.27912.0_x64__8wekyb3d8bbwe.Appx","{sd}\ProgramData\AAF\AppxDependencies\Microsoft.NET.Native.Runtime.2.2_2.2.28604.0_x64__8wekyb3d8bbwe.Appx","{sd}\ProgramData\AAF\AppxDependencies\Microsoft.VCLibs.140.00_14.0.27810.0_x64__8wekyb3d8bbwe.Appx" -ForceApplicationShutdown -ForceUpdateFromAnyVersion'), '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
end;
// Install Sonic Studio 3
if WizardIsTaskSelected('AVO\SS3') and (Version.Major = 10) and (Version.Minor = 0) and (Version.Build >= 16299) then begin
FilenameLabel.Caption := 'Current Task: Installing (ASUS ROG) A-Volute Sonic Studio 3 UWP App with Dependencies...';
Exec(ExpandConstant('{cmd}'), ExpandConstant('/c powershell.exe -ExecutionPolicy Bypass -Command Add-AppxPackage -Path "{sd}\ProgramData\AAF\SonicStudio3\SonicStudio3.AppxBundle" -DependencyPath "{sd}\ProgramData\AAF\AppxDependencies\Microsoft.NET.Native.Framework.2.1_2.1.27427.0_x64__8wekyb3d8bbwe.Appx","{sd}\ProgramData\AAF\AppxDependencies\Microsoft.NET.Native.Runtime.2.1_2.1.26424.0_x64__8wekyb3d8bbwe.Appx","{sd}\ProgramData\AAF\AppxDependencies\Microsoft.VCLibs.140.00_14.0.27810.0_x64__8wekyb3d8bbwe.Appx" -ForceApplicationShutdown'), '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
end;
// Install Dolby Atmos
if WizardIsTaskSelected('ATM') and (Version.Major = 10) and (Version.Minor = 0) and (Version.Build >= 16299) then begin
FilenameLabel.Caption := 'Current Task: Installing Dolby Atmos UWP App with Dependencies...';
Exec(ExpandConstant('{cmd}'), ExpandConstant('/c powershell.exe -ExecutionPolicy Bypass -Command Add-AppxPackage -Path "{sd}\ProgramData\AAF\Atmos\DolbyAtmos.Appx" -DependencyPath "{sd}\ProgramData\AAF\AppxDependencies\Microsoft.NET.Native.Framework.2.2_2.2.27912.0_x64__8wekyb3d8bbwe.Appx","{sd}\ProgramData\AAF\AppxDependencies\Microsoft.NET.Native.Runtime.2.2_2.2.28604.0_x64__8wekyb3d8bbwe.Appx","{sd}\ProgramData\AAF\AppxDependencies\Microsoft.VCLibs.140.00_14.0.27810.0_x64__8wekyb3d8bbwe.Appx" -ForceApplicationShutdown'), '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
end;
// Install ASIO Driver
if WizardIsTaskSelected('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;
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 CurUninstallStepChanged(CurUninstallStep: TUninstallStep);
begin
if CurUninstallStep = usPostUninstall then begin
RegDeleteKeyIncludingSubkeys(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\MMDevices\Audio\Capture');
RegDeleteKeyIncludingSubkeys(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\MMDevices\Audio\Render');
UnregisterServer(True, ExpandConstant('{sys}\RTHDASIO64.dll'), False);
UnregisterServer(False, ExpandConstant('{syswow64}\RTHDASIO.dll'), False);
end;
end;
procedure DeinitializeUninstall();
begin
UnLoadAAFStyles_UnInstall;
DeleteFile('AAF.VStyles.Uninstall.dll');
DeleteFile('Uninst.vsf');
DelTree(ExpandConstant('{#AAFStyleSkinFilepath}\*'), True, True, True);
RemoveDir(ExpandConstant('{#AAFStyleSkinFilepath}'));
if Terminated = TRUE then begin
DeleteFile('AAF.VStyles.Uninstall.dll');
DeleteFile('Uninst.vsf');
DelTree(ExpandConstant('{#AAFStyleSkinFilepath}\*'), True, True, True);
RemoveDir(ExpandConstant('{#AAFStyleSkinFilepath}'));
end;
end;