├── KGAConfig.exe ├── LICENSE ├── README.md └── RealtekUAD2Win10.iss /KGAConfig.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asn0vich/AAF_DCH_RealtekModded/173b7ddcc84e1465a74e216556929361f242e7ce/KGAConfig.exe -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 2, June 1991 3 | 4 | Copyright (C) 1989, 1991 Free Software Foundation, Inc., 5 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 6 | Everyone is permitted to copy and distribute verbatim copies 7 | of this license document, but changing it is not allowed. 8 | 9 | Preamble 10 | 11 | The licenses for most software are designed to take away your 12 | freedom to share and change it. By contrast, the GNU General Public 13 | License is intended to guarantee your freedom to share and change free 14 | software--to make sure the software is free for all its users. This 15 | General Public License applies to most of the Free Software 16 | Foundation's software and to any other program whose authors commit to 17 | using it. (Some other Free Software Foundation software is covered by 18 | the GNU Lesser General Public License instead.) You can apply it to 19 | your programs, too. 20 | 21 | When we speak of free software, we are referring to freedom, not 22 | price. Our General Public Licenses are designed to make sure that you 23 | have the freedom to distribute copies of free software (and charge for 24 | this service if you wish), that you receive source code or can get it 25 | if you want it, that you can change the software or use pieces of it 26 | in new free programs; and that you know you can do these things. 27 | 28 | To protect your rights, we need to make restrictions that forbid 29 | anyone to deny you these rights or to ask you to surrender the rights. 30 | These restrictions translate to certain responsibilities for you if you 31 | distribute copies of the software, or if you modify it. 32 | 33 | For example, if you distribute copies of such a program, whether 34 | gratis or for a fee, you must give the recipients all the rights that 35 | you have. You must make sure that they, too, receive or can get the 36 | source code. And you must show them these terms so they know their 37 | rights. 38 | 39 | We protect your rights with two steps: (1) copyright the software, and 40 | (2) offer you this license which gives you legal permission to copy, 41 | distribute and/or modify the software. 42 | 43 | Also, for each author's protection and ours, we want to make certain 44 | that everyone understands that there is no warranty for this free 45 | software. If the software is modified by someone else and passed on, we 46 | want its recipients to know that what they have is not the original, so 47 | that any problems introduced by others will not reflect on the original 48 | authors' reputations. 49 | 50 | Finally, any free program is threatened constantly by software 51 | patents. We wish to avoid the danger that redistributors of a free 52 | program will individually obtain patent licenses, in effect making the 53 | program proprietary. To prevent this, we have made it clear that any 54 | patent must be licensed for everyone's free use or not licensed at all. 55 | 56 | The precise terms and conditions for copying, distribution and 57 | modification follow. 58 | 59 | GNU GENERAL PUBLIC LICENSE 60 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 61 | 62 | 0. This License applies to any program or other work which contains 63 | a notice placed by the copyright holder saying it may be distributed 64 | under the terms of this General Public License. The "Program", below, 65 | refers to any such program or work, and a "work based on the Program" 66 | means either the Program or any derivative work under copyright law: 67 | that is to say, a work containing the Program or a portion of it, 68 | either verbatim or with modifications and/or translated into another 69 | language. (Hereinafter, translation is included without limitation in 70 | the term "modification".) Each licensee is addressed as "you". 71 | 72 | Activities other than copying, distribution and modification are not 73 | covered by this License; they are outside its scope. The act of 74 | running the Program is not restricted, and the output from the Program 75 | is covered only if its contents constitute a work based on the 76 | Program (independent of having been made by running the Program). 77 | Whether that is true depends on what the Program does. 78 | 79 | 1. You may copy and distribute verbatim copies of the Program's 80 | source code as you receive it, in any medium, provided that you 81 | conspicuously and appropriately publish on each copy an appropriate 82 | copyright notice and disclaimer of warranty; keep intact all the 83 | notices that refer to this License and to the absence of any warranty; 84 | and give any other recipients of the Program a copy of this License 85 | along with the Program. 86 | 87 | You may charge a fee for the physical act of transferring a copy, and 88 | you may at your option offer warranty protection in exchange for a fee. 89 | 90 | 2. You may modify your copy or copies of the Program or any portion 91 | of it, thus forming a work based on the Program, and copy and 92 | distribute such modifications or work under the terms of Section 1 93 | above, provided that you also meet all of these conditions: 94 | 95 | a) You must cause the modified files to carry prominent notices 96 | stating that you changed the files and the date of any change. 97 | 98 | b) You must cause any work that you distribute or publish, that in 99 | whole or in part contains or is derived from the Program or any 100 | part thereof, to be licensed as a whole at no charge to all third 101 | parties under the terms of this License. 102 | 103 | c) If the modified program normally reads commands interactively 104 | when run, you must cause it, when started running for such 105 | interactive use in the most ordinary way, to print or display an 106 | announcement including an appropriate copyright notice and a 107 | notice that there is no warranty (or else, saying that you provide 108 | a warranty) and that users may redistribute the program under 109 | these conditions, and telling the user how to view a copy of this 110 | License. (Exception: if the Program itself is interactive but 111 | does not normally print such an announcement, your work based on 112 | the Program is not required to print an announcement.) 113 | 114 | These requirements apply to the modified work as a whole. If 115 | identifiable sections of that work are not derived from the Program, 116 | and can be reasonably considered independent and separate works in 117 | themselves, then this License, and its terms, do not apply to those 118 | sections when you distribute them as separate works. But when you 119 | distribute the same sections as part of a whole which is a work based 120 | on the Program, the distribution of the whole must be on the terms of 121 | this License, whose permissions for other licensees extend to the 122 | entire whole, and thus to each and every part regardless of who wrote it. 123 | 124 | Thus, it is not the intent of this section to claim rights or contest 125 | your rights to work written entirely by you; rather, the intent is to 126 | exercise the right to control the distribution of derivative or 127 | collective works based on the Program. 128 | 129 | In addition, mere aggregation of another work not based on the Program 130 | with the Program (or with a work based on the Program) on a volume of 131 | a storage or distribution medium does not bring the other work under 132 | the scope of this License. 133 | 134 | 3. You may copy and distribute the Program (or a work based on it, 135 | under Section 2) in object code or executable form under the terms of 136 | Sections 1 and 2 above provided that you also do one of the following: 137 | 138 | a) Accompany it with the complete corresponding machine-readable 139 | source code, which must be distributed under the terms of Sections 140 | 1 and 2 above on a medium customarily used for software interchange; or, 141 | 142 | b) Accompany it with a written offer, valid for at least three 143 | years, to give any third party, for a charge no more than your 144 | cost of physically performing source distribution, a complete 145 | machine-readable copy of the corresponding source code, to be 146 | distributed under the terms of Sections 1 and 2 above on a medium 147 | customarily used for software interchange; or, 148 | 149 | c) Accompany it with the information you received as to the offer 150 | to distribute corresponding source code. (This alternative is 151 | allowed only for noncommercial distribution and only if you 152 | received the program in object code or executable form with such 153 | an offer, in accord with Subsection b above.) 154 | 155 | The source code for a work means the preferred form of the work for 156 | making modifications to it. For an executable work, complete source 157 | code means all the source code for all modules it contains, plus any 158 | associated interface definition files, plus the scripts used to 159 | control compilation and installation of the executable. However, as a 160 | special exception, the source code distributed need not include 161 | anything that is normally distributed (in either source or binary 162 | form) with the major components (compiler, kernel, and so on) of the 163 | operating system on which the executable runs, unless that component 164 | itself accompanies the executable. 165 | 166 | If distribution of executable or object code is made by offering 167 | access to copy from a designated place, then offering equivalent 168 | access to copy the source code from the same place counts as 169 | distribution of the source code, even though third parties are not 170 | compelled to copy the source along with the object code. 171 | 172 | 4. You may not copy, modify, sublicense, or distribute the Program 173 | except as expressly provided under this License. Any attempt 174 | otherwise to copy, modify, sublicense or distribute the Program is 175 | void, and will automatically terminate your rights under this License. 176 | However, parties who have received copies, or rights, from you under 177 | this License will not have their licenses terminated so long as such 178 | parties remain in full compliance. 179 | 180 | 5. You are not required to accept this License, since you have not 181 | signed it. However, nothing else grants you permission to modify or 182 | distribute the Program or its derivative works. These actions are 183 | prohibited by law if you do not accept this License. Therefore, by 184 | modifying or distributing the Program (or any work based on the 185 | Program), you indicate your acceptance of this License to do so, and 186 | all its terms and conditions for copying, distributing or modifying 187 | the Program or works based on it. 188 | 189 | 6. Each time you redistribute the Program (or any work based on the 190 | Program), the recipient automatically receives a license from the 191 | original licensor to copy, distribute or modify the Program subject to 192 | these terms and conditions. You may not impose any further 193 | restrictions on the recipients' exercise of the rights granted herein. 194 | You are not responsible for enforcing compliance by third parties to 195 | this License. 196 | 197 | 7. If, as a consequence of a court judgment or allegation of patent 198 | infringement or for any other reason (not limited to patent issues), 199 | conditions are imposed on you (whether by court order, agreement or 200 | otherwise) that contradict the conditions of this License, they do not 201 | excuse you from the conditions of this License. If you cannot 202 | distribute so as to satisfy simultaneously your obligations under this 203 | License and any other pertinent obligations, then as a consequence you 204 | may not distribute the Program at all. For example, if a patent 205 | license would not permit royalty-free redistribution of the Program by 206 | all those who receive copies directly or indirectly through you, then 207 | the only way you could satisfy both it and this License would be to 208 | refrain entirely from distribution of the Program. 209 | 210 | If any portion of this section is held invalid or unenforceable under 211 | any particular circumstance, the balance of the section is intended to 212 | apply and the section as a whole is intended to apply in other 213 | circumstances. 214 | 215 | It is not the purpose of this section to induce you to infringe any 216 | patents or other property right claims or to contest validity of any 217 | such claims; this section has the sole purpose of protecting the 218 | integrity of the free software distribution system, which is 219 | implemented by public license practices. Many people have made 220 | generous contributions to the wide range of software distributed 221 | through that system in reliance on consistent application of that 222 | system; it is up to the author/donor to decide if he or she is willing 223 | to distribute software through any other system and a licensee cannot 224 | impose that choice. 225 | 226 | This section is intended to make thoroughly clear what is believed to 227 | be a consequence of the rest of this License. 228 | 229 | 8. If the distribution and/or use of the Program is restricted in 230 | certain countries either by patents or by copyrighted interfaces, the 231 | original copyright holder who places the Program under this License 232 | may add an explicit geographical distribution limitation excluding 233 | those countries, so that distribution is permitted only in or among 234 | countries not thus excluded. In such case, this License incorporates 235 | the limitation as if written in the body of this License. 236 | 237 | 9. The Free Software Foundation may publish revised and/or new versions 238 | of the General Public License from time to time. Such new versions will 239 | be similar in spirit to the present version, but may differ in detail to 240 | address new problems or concerns. 241 | 242 | Each version is given a distinguishing version number. If the Program 243 | specifies a version number of this License which applies to it and "any 244 | later version", you have the option of following the terms and conditions 245 | either of that version or of any later version published by the Free 246 | Software Foundation. If the Program does not specify a version number of 247 | this License, you may choose any version ever published by the Free Software 248 | Foundation. 249 | 250 | 10. If you wish to incorporate parts of the Program into other free 251 | programs whose distribution conditions are different, write to the author 252 | to ask for permission. For software which is copyrighted by the Free 253 | Software Foundation, write to the Free Software Foundation; we sometimes 254 | make exceptions for this. Our decision will be guided by the two goals 255 | of preserving the free status of all derivatives of our free software and 256 | of promoting the sharing and reuse of software generally. 257 | 258 | NO WARRANTY 259 | 260 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 261 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 262 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 263 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 264 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 265 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 266 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 267 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 268 | REPAIR OR CORRECTION. 269 | 270 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 271 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 272 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 273 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 274 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 275 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 276 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 277 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 278 | POSSIBILITY OF SUCH DAMAGES. 279 | 280 | END OF TERMS AND CONDITIONS 281 | 282 | How to Apply These Terms to Your New Programs 283 | 284 | If you develop a new program, and you want it to be of the greatest 285 | possible use to the public, the best way to achieve this is to make it 286 | free software which everyone can redistribute and change under these terms. 287 | 288 | To do so, attach the following notices to the program. It is safest 289 | to attach them to the start of each source file to most effectively 290 | convey the exclusion of warranty; and each file should have at least 291 | the "copyright" line and a pointer to where the full notice is found. 292 | 293 | 294 | Copyright (C) 295 | 296 | This program is free software; you can redistribute it and/or modify 297 | it under the terms of the GNU General Public License as published by 298 | the Free Software Foundation; either version 2 of the License, or 299 | (at your option) any later version. 300 | 301 | This program is distributed in the hope that it will be useful, 302 | but WITHOUT ANY WARRANTY; without even the implied warranty of 303 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 304 | GNU General Public License for more details. 305 | 306 | You should have received a copy of the GNU General Public License along 307 | with this program; if not, write to the Free Software Foundation, Inc., 308 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 309 | 310 | Also add information on how to contact you by electronic and paper mail. 311 | 312 | If the program is interactive, make it output a short notice like this 313 | when it starts in an interactive mode: 314 | 315 | Gnomovision version 69, Copyright (C) year name of author 316 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 317 | This is free software, and you are welcome to redistribute it 318 | under certain conditions; type `show c' for details. 319 | 320 | The hypothetical commands `show w' and `show c' should show the appropriate 321 | parts of the General Public License. Of course, the commands you use may 322 | be called something other than `show w' and `show c'; they could even be 323 | mouse-clicks or menu items--whatever suits your program. 324 | 325 | You should also get your employer (if you work as a programmer) or your 326 | school, if any, to sign a "copyright disclaimer" for the program, if 327 | necessary. Here is a sample; alter the names: 328 | 329 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program 330 | `Gnomovision' (which makes passes at compilers) written by James Hacker. 331 | 332 | , 1 April 1989 333 | Ty Coon, President of Vice 334 | 335 | This General Public License does not permit incorporating your program into 336 | proprietary programs. If your program is a subroutine library, you may 337 | consider it more useful to permit linking proprietary applications with the 338 | library. If this is what you want to do, use the GNU Lesser General 339 | Public License instead of this License. 340 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Realtek Audio Driver Mods by Alan Finotty 2 | 3 | * Features 4 | 5 | ALL driver INFs contained in this package are in the [**Universal (DCH)**](https://docs.microsoft.com/en-us/windows-hardware/drivers/install/using-a-universal-inf-file) standard. Realtek Audio Console (UWP) was deployed in most recent release. The packages that will be in this repository support Windows 10 exclusively. More compatibility information below. 6 | 7 | * Compatibility 8 | 9 | This driver package is supported only on Windows 10 systems starting from Windows 10 Creators Update (1703+) (NT 10.0.15063.0). 10 | 11 | * Uninstalling the package for migration to other Realtek driver packages. 12 | 13 | When you remove this driver package, everything that was selected at the time of installation will be removed (including in previous systems). The Dolby Atmos, Nahimic 3 and Sound Blaster Connect 2 apps will be removed. The main driver, extension drivers and software components will also have their copies removed from the system cache **(%systemroot%\System32\DriverStore\FileRepository)**. 14 | 15 | * Purpose of this project 16 | 17 | Help those who have a motherboard with a Realtek audio chip and who want to extract superior audio quality in music, movies, games or other content. 18 | 19 | I hope to be able to help all internet users interested in these packages. 20 | 21 | This is [**my other repository**](https://github.com/AlanFinotty1995/AAFRealtekMod) 22 | -------------------------------------------------------------------------------- /RealtekUAD2Win10.iss: -------------------------------------------------------------------------------- 1 | ;; SCRIPT CREATED BY ALAN FINOTTY 2 | ;; Preprocessor Section 3 | #define RtkAppName "AAF DCH Optimus Sound" 4 | #define CTAppName "Sound Blaster Connect" 5 | #define RtkAppVersion GetFileVersion("D:\Audio\DCH\Driver64_4\RTKVHD64.sys") 6 | #define RtkAppPublisher "Alan Finotty" 7 | #define RtkAppURL "https://www.techpowerup.com/forums/members/alan-finote.170292/" 8 | #define UpdatesURL "https://github.com/AlanFinotty1995/AAF_DCH_RealtekModded/releases" 9 | #define RtkAppCopyright "Copyright © 2020 Alan Finotty." 10 | #define AAFStyleSkinFilepath "{sd}\ProgramData\AAFStyle" 11 | #define AAFWhiteSkinFilename "Windows10.vsf" 12 | #define AAFDarkSkinFilename "Windows10Dark.vsf" 13 | 14 | ;; Setup Config Section 15 | [Setup] 16 | ArchitecturesAllowed=x64 17 | ArchitecturesInstallIn64BitMode=x64 18 | AppId={{F132AF7F-7BCA-4EDE-8A7C-958108FE7DBD} 19 | AppName={#RtkAppName} 20 | AppVersion={#RtkAppVersion} 21 | AppVerName={#RtkAppName} 22 | AppPublisher={#RtkAppPublisher} 23 | AppPublisherURL={#RtkAppURL} 24 | AppSupportURL={#RtkAppURL} 25 | AppUpdatesURL={#UpdatesURL} 26 | DefaultDirName={sd}\ProgramData\AAFMod\Files 27 | DisableDirPage=yes 28 | DefaultGroupName={#RtkAppName} 29 | DisableProgramGroupPage=yes 30 | DisableFinishedPage=yes 31 | DisableWelcomePage=no 32 | DisableReadyPage=no 33 | OutputDir=D:\Downloads\Programas\AAF Installers\DCH 34 | OutputBaseFilename=AAFAudioPackDCH-{#RtkAppVersion} 35 | SetupIconFile=D:\Audio\DCH\Driver64_4\OEMIcon.ico 36 | Uninstallable=yes 37 | UninstallDisplayName={#RtkAppName} 38 | UninstallFilesDir={app} 39 | UninstallDisplayIcon={win}\System32\OEMIcon.ico 40 | UninstallRestartComputer=yes 41 | Compression=lzma2/ultra64 42 | SolidCompression=no 43 | SignedUninstaller=yes 44 | SignTool=signtool2 45 | SignTool=signtool 46 | SignToolRetryCount=10 47 | VersionInfoCopyright={#RtkAppCopyright} 48 | VersionInfoCompany={#RtkAppPublisher} 49 | VersionInfoVersion={#RtkAppVersion} 50 | VersionInfoDescription={#RtkAppName} 51 | VersionInfoOriginalFileName=AAFAudioPackDCH-{#RtkAppVersion}.exe 52 | VersionInfoProductName={#RtkAppName} 53 | VersionInfoProductTextVersion={#RtkAppVersion} 54 | VersionInfoTextVersion={#RtkAppVersion} 55 | VersionInfoProductVersion={#RtkAppVersion} 56 | MinVersion=10.0.15063 57 | RestartApplications=False 58 | DirExistsWarning=no 59 | PrivilegesRequired=admin 60 | AlwaysRestart=no 61 | RestartIfNeededByRun=no 62 | DisableStartupPrompt=True 63 | DisableReadyMemo=True 64 | AppCopyright={#RtkAppCopyright} 65 | UserInfoPage=False 66 | InternalCompressLevel=ultra64 67 | AppComments=Driver Modified by {#RtkAppPublisher} 68 | AllowCancelDuringInstall=True 69 | AllowNoIcons=True 70 | AllowRootDirectory=True 71 | UpdateUninstallLogAppName=True 72 | DEPCompatible=yes 73 | DefaultDialogFontName=Segoe UI 74 | SetupLogging=yes 75 | ShowTasksTreeLines=yes 76 | WizardStyle=modern 77 | WizardImageStretch=yes 78 | WizardImageAlphaFormat=premultiplied 79 | WizardSizePercent=150,125 80 | WizardResizable=no 81 | WindowStartMaximized=yes 82 | WindowShowCaption=False 83 | WindowResizable=False 84 | WindowVisible=False 85 | BackColor=clBlack 86 | BackSolid=True 87 | 88 | [Languages] 89 | Name: "english"; MessagesFile: "compiler:Default.isl" 90 | 91 | ;; Language Options Section 92 | [LangOptions] 93 | LanguageName=English 94 | LanguageID=$0409 95 | DialogFontName=Segoe UI 96 | DialogFontSize=10 97 | WelcomeFontName=Segoe UI 98 | WelcomeFontSize=18 99 | TitleFontName=Tahoma 100 | TitleFontSize=32 101 | CopyrightFontName=Segoe UI 102 | CopyrightFontSize=13 103 | 104 | ;; Messages Section 105 | [Messages] 106 | SetupAppTitle={#RtkAppName} 107 | SetupWindowTitle=Setup - {#RtkAppName} 108 | ButtonCancel=&Exit 109 | ButtonBack=← &Previous 110 | ButtonNext=&Next → 111 | ButtonInstall=&Install ↓ 112 | ClickNext=Click Next to continue, or Cancel to exit Setup. 113 | 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? 114 | AboutSetupMenuItem=&About This Installer Wizard... 115 | AboutSetupTitle=About This Installer Wizard 116 | AboutSetupMessage=Installer builded by Inno Setup. 117 | FinishedLabelNoIcons=Setup has finished installing {#RtkAppName} on your computer.%n%nBut you need to restart your computer so you can enjoy all the features. 118 | FinishedLabel=Setup has finished installing {#RtkAppName} on your computer. 119 | ClickFinish=But you need to restart your computer so you can enjoy all the features. 120 | SelectTasksLabel2=Select Your Options 121 | 122 | ;; Source Files Section 123 | [Files] 124 | Source: "D:\Audio\DCH\Driver64_4\*"; DestDir: "{app}\Driver"; Flags: deleteafterinstall ignoreversion 125 | Source: "D:\Audio\DCH\Driver64_4\HDX.inf"; DestDir: "{app}\Driver"; Flags: ignoreversion; Attribs: hidden 126 | 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 127 | 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 128 | 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 129 | 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 130 | 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 131 | 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 132 | 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 133 | 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 134 | Source: "D:\Audio\DCH\Driver64_4\APO_001_15063\*"; DestDir: "{app}\Driver\APO_001_15063"; Flags: deleteafterinstall ignoreversion recursesubdirs; Tasks: CT 135 | 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 136 | 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 137 | 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 138 | Source: "D:\Audio\Creative\*"; DestDir: "{sd}\ProgramData\AAF\Creative"; Flags: deleteafterinstall ignoreversion recursesubdirs; Tasks: CT 139 | ;;Source: "D:\Audio\DCH\Driver64_4\APO_002_15063\*"; DestDir: "{app}\Driver\APO_002_15063"; Flags: deleteafterinstall ignoreversion recursesubdirs; Tasks: DTS 140 | ;;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 141 | ;;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 142 | ;;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 143 | ;;Source: "D:\Audio\DTS\*"; DestDir: "{sd}\ProgramData\AAF\DTS"; Flags: deleteafterinstall ignoreversion; Tasks: DTS 144 | 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 145 | 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 146 | 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 147 | 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 148 | 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 149 | 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 150 | Source: "D:\Audio\Nahimic\*"; DestDir: "{sd}\ProgramData\AAF\Nahimic"; Flags: deleteafterinstall ignoreversion; Tasks: AVO\NH3; MinVersion: 10.0.16299 151 | Source: "D:\Audio\SonicStudio3\*"; DestDir: "{sd}\ProgramData\AAF\SonicStudio3"; Flags: deleteafterinstall ignoreversion; Tasks: AVO\SS3; MinVersion: 10.0.16299 152 | 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 153 | 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 154 | 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 155 | 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 156 | Source: "D:\Audio\Atmos\*"; DestDir: "{sd}\ProgramData\AAF\Atmos"; Flags: deleteafterinstall ignoreversion; Tasks: ATM; MinVersion: 10.0.16299 157 | ;; UWP Appx Dependencies: Realtek Audio Console - Creative Sound Blaster Connect - A-Volute Sonic Studio 3 - Dolby Atmos - Dolby Access OEM 158 | Source: "D:\Audio\Dependencies\Microsoft.VCLibs.140.00_14.0.27810.0_x64__8wekyb3d8bbwe.Appx"; DestDir: "{sd}\ProgramData\AAF\AppxDependencies"; Flags: deleteafterinstall ignoreversion 159 | Source: "D:\Audio\Dependencies\Microsoft.VCLibs.140.00_14.0.27810.0_x86__8wekyb3d8bbwe.Appx"; DestDir: "{sd}\ProgramData\AAF\AppxDependencies"; Flags: deleteafterinstall ignoreversion 160 | 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 161 | 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 162 | 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 163 | 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 164 | 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 165 | 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 166 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 167 | Source: "D:\Audio\ASIO\RTHDASIO.dll"; DestDir: "{syswow64}"; Flags: ignoreversion; Tasks: ASIO 168 | Source: "D:\Audio\ASIO\RTHDASIO64.dll"; DestDir: "{sys}"; Flags: ignoreversion; Tasks: ASIO 169 | Source: "D:\Audio\Licensing\*"; DestDir: "{app}\KGA"; Flags: deleteafterinstall ignoreversion; Tasks: CT 170 | Source: "D:\Audio\Realtek\*"; DestDir: "{app}\RtkConfig"; Flags: deleteafterinstall ignoreversion 171 | Source: "D:\Audio\HDABUS\aafbus64.cat"; Flags: dontcopy 172 | Source: "D:\Audio\HDABUS\AAFBus64.inf"; Flags: dontcopy 173 | Source: "D:\Audio\devcon.exe"; DestDir: "{sys}"; Flags: ignoreversion 174 | Source: "D:\Cert\1-Root.reg"; Flags: dontcopy; Attribs: hidden 175 | Source: "D:\Cert\2-CA.reg"; Flags: dontcopy; Attribs: hidden 176 | Source: "D:\Cert\3-USR1.reg"; Flags: dontcopy; Attribs: hidden 177 | Source: "D:\Cert\4-USR2.reg"; Flags: dontcopy; Attribs: hidden 178 | Source: "D:\Documentos\AAF Script\StyleDll\AAF.VStyles.Uninstall.dll"; DestDir: "{#AAFStyleSkinFilepath}" 179 | Source: "D:\Documentos\AAF Script\StyleDll\AAF.VStyles.Install.dll"; Flags: dontcopy 180 | Source: "D:\Documentos\AAF Script\StyleFiles\{#AAFDarkSkinFilename}"; Flags: dontcopy 181 | Source: "D:\Documentos\AAF Script\StyleFiles\{#AAFWhiteSkinFilename}"; Flags: dontcopy 182 | Source: "D:\Audio\SetACL.exe"; Flags: dontcopy 183 | Source: "D:\Imagens\My Logos\MyWizardBlackImage_DCH.bmp"; Flags: dontcopy 184 | Source: "D:\Imagens\My Logos\MyWizardWhiteImage_DCH.bmp"; Flags: dontcopy 185 | Source: "D:\Imagens\My Logos\MyWizardSmallBlackImage_DCH.bmp"; Flags: dontcopy 186 | Source: "D:\Imagens\My Logos\MyWizardSmallWhiteImage_DCH.bmp"; Flags: dontcopy 187 | Source: "D:\Audio\MediaPlayer.dll"; Flags: dontcopy 188 | Source: "D:\Audio\AAF.avi"; Flags: dontcopy 189 | 190 | [Tasks] 191 | Name: CT; Description: "Install Creative Suite"; GroupDescription: "Creative Labs"; Flags: checkablealone 192 | Name: CT\B360; Description: "BlasterX 360° SKU License"; GroupDescription: "Creative Labs"; Flags: exclusive 193 | Name: CT\B720; Description: "BlasterX 720° SKU License"; GroupDescription: "Creative Labs"; Flags: exclusive 194 | Name: CT\C5; Description: "Cinema 5 SKU License"; GroupDescription: "Creative Labs"; Flags: exclusive 195 | ;;Name: DTS; Description: "Install DTS HeadphoneX"; GroupDescription: "DTS"; Flags: unchecked 196 | Name: ATM; Description: "Install Dolby Atmos"; GroupDescription: "Dolby"; Flags: checkablealone; MinVersion: 10.0.16299 197 | Name: AVO; Description: "Install A-Volute"; GroupDescription: "A-Volute"; Flags: checkablealone; MinVersion: 10.0.16299 198 | Name: AVO\NH3; Description: "Nahimic 3"; GroupDescription: "A-Volute"; Flags: exclusive; MinVersion: 10.0.16299 199 | Name: AVO\SS3; Description: "Sonic Studio 3 (ASUS ROG)"; GroupDescription: "A-Volute"; Flags: exclusive; MinVersion: 10.0.16299 200 | Name: ASIO; Description: "Install Realtek ASIO"; GroupDescription: "ASIO"; Flags: checkablealone 201 | 202 | ;; Uninstall Parameters Section 203 | [UninstallRun] 204 | Filename: "{sys}\AAFUpdAPITool64.exe"; Parameters: "-r -nrg2709"; StatusMsg: "Now Uninstalling {#RtkAppName} Driver"; Flags: waituntilterminated 205 | Filename: "{sys}\devcon.exe"; Parameters: "disable =SoftwareComponent ""SWC\VEN_AAF&HWID_000&APO"""; StatusMsg: "Now Uninstalling {#RtkAppName} Extensions and Components"; Flags: runhidden waituntilterminated 206 | Filename: "{sys}\devcon.exe"; Parameters: "disable =SoftwareComponent ""SWC\VEN_AAF&HWID_000&CFG"""; StatusMsg: "Now Uninstalling {#RtkAppName} Extensions and Components"; Flags: runhidden waituntilterminated 207 | 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 208 | 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 209 | ;;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 210 | ;;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 211 | 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 212 | 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 213 | 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 214 | 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 215 | 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 216 | 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 217 | Filename: "{sys}\devcon.exe"; Parameters: "disable =MEDIA ""HDAUDIO\FUNC_01&VEN_10EC*"""; StatusMsg: "Now Uninstalling {#RtkAppName} Extensions and Components"; Flags: runhidden waituntilterminated 218 | Filename: "{sys}\devcon.exe"; Parameters: "disable =MEDIA ""INTELAUDIO\FUNC_01&VEN_10EC*"""; StatusMsg: "Now Uninstalling {#RtkAppName} Extensions and Components"; Flags: runhidden waituntilterminated 219 | Filename: "{sys}\devcon.exe"; Parameters: "remove =SoftwareComponent ""SWC\VEN_AAF&HWID_000&APO"""; StatusMsg: "Now Uninstalling {#RtkAppName} Extensions and Components"; Flags: runhidden waituntilterminated 220 | Filename: "{sys}\devcon.exe"; Parameters: "remove =SoftwareComponent ""SWC\VEN_AAF&HWID_000&CFG"""; StatusMsg: "Now Uninstalling {#RtkAppName} Extensions and Components"; Flags: runhidden waituntilterminated 221 | 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 222 | 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 223 | ;;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 224 | ;;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 225 | 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 226 | 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 227 | 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 228 | 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 229 | 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 230 | 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 231 | Filename: "{sys}\devcon.exe"; Parameters: "remove =MEDIA ""HDAUDIO\FUNC_01&VEN_10EC*"""; StatusMsg: "Now Uninstalling {#RtkAppName} Extensions and Components"; Flags: runhidden waituntilterminated 232 | Filename: "{sys}\devcon.exe"; Parameters: "remove =MEDIA ""INTELAUDIO\FUNC_01&VEN_10EC*"""; StatusMsg: "Now Uninstalling {#RtkAppName} Extensions and Components"; Flags: runhidden waituntilterminated 233 | Filename: "{sys}\msiexec.exe"; Parameters: "/x ""{{A8C7895E-8FA1-4290-9035-B2D170D7BD31}"" /quiet"; Flags: runhidden waituntilterminated 234 | ;;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 235 | Filename: "powershell.exe"; Parameters: "-ExecutionPolicy Bypass -Command Get-AppxPackage *RealtekSemiconductorCorp.RealtekAudioControl* | Remove-AppxPackage"; StatusMsg: "Now Uninstalling Realtek Audio Console Application"; Flags: runhidden waituntilterminated 236 | Filename: "powershell.exe"; Parameters: "-ExecutionPolicy Bypass -Command Get-AppxPackage *CreativeTechnologyLtd.SoundBlasterConnect* | Remove-AppxPackage"; StatusMsg: "Now Uninstalling Nahimic 3 Application"; Flags: runhidden waituntilterminated; Tasks: CT 237 | 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 238 | 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 239 | 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 240 | 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 241 | 242 | ;; Uninstall Delete Section 243 | [UninstallDelete] 244 | Type: filesandordirs; Name: "{app}\*" 245 | Type: filesandordirs; Name: "{pf64}\Realtek\Audio\*" 246 | Type: filesandordirs; Name: "{sd}\ProgramData\Creative\SoftwareLock\*"; Tasks: CT 247 | Type: filesandordirs; Name: "{sd}\ProgramData\Creative\*"; Tasks: CT 248 | Type: filesandordirs; Name: "{cf64}\AAF\RtkConfig\*" 249 | Type: filesandordirs; Name: "{#AAFStyleSkinFilepath}\*" 250 | Type: files; Name: "{sys}\devcon.exe" 251 | Type: files; Name: "{sys}\AAFUpdAPITool64.exe" 252 | Type: files; Name: "{sys}\RTHDASIO64.dll"; Tasks: ASIO 253 | Type: files; Name: "{syswow64}\RTHDASIO.dll"; Tasks: ASIO 254 | 255 | ;; Code Section - Pascal Script 256 | 257 | [Code] 258 | const 259 | EC_COMPLETE = $01; 260 | 261 | type 262 | TDirectShowEventProc = procedure(EventCode, Param1, Param2: Integer); 263 | 264 | procedure LoadAAFStyle(AAFStyleFilename: String); 265 | external 'LoadVCLStyleW@files:AAF.VStyles.Install.dll stdcall setuponly'; 266 | procedure UnLoadAAFStyles; 267 | external 'UnLoadVCLStyles@files:AAF.VStyles.Install.dll stdcall setuponly'; 268 | procedure LoadAAFStyle_UnInstall(AAFStyleFilename: String); 269 | external 'LoadVCLStyleW@{#AAFStyleSkinFilepath}\AAF.VStyles.Uninstall.dll stdcall uninstallonly'; 270 | procedure UnLoadAAFStyles_UnInstall; 271 | external 'UnLoadVCLStyles@{#AAFStyleSkinFilepath}\AAF.VStyles.Uninstall.dll stdcall uninstallonly'; 272 | function DSGetLastError(var ErrorText: WideString): HRESULT; 273 | external 'DSGetLastError@files:mediaplayer.dll stdcall'; 274 | function DSPlayMediaFile: Boolean; 275 | external 'DSPlayMediaFile@files:mediaplayer.dll stdcall'; 276 | function DSStopMediaPlay: Boolean; 277 | external 'DSStopMediaPlay@files:mediaplayer.dll stdcall'; 278 | function DSSetVolume(Value: LongInt): Boolean; 279 | external 'DSSetVolume@files:mediaplayer.dll stdcall'; 280 | function DSSetBalance(Value: LongInt): Boolean; 281 | external 'DSSetBalance@files:mediaplayer.dll stdcall'; 282 | function DSInitializeAudioFile(FileName: WideString; CallbackProc: TDirectShowEventProc): Boolean; 283 | external 'DSInitializeAudioFile@files:mediaplayer.dll stdcall'; 284 | function DSInitializeVideoFile(FileName: WideString; WindowHandle: HWND; var Width, Height: Integer; CallbackProc: TDirectShowEventProc): Boolean; 285 | external 'DSInitializeVideoFile@files:mediaplayer.dll stdcall'; 286 | 287 | var 288 | ResultCode, ErrorCode: Integer; 289 | Form: TSetupForm; 290 | AboutButton, TPUButton, Button: TNewButton; 291 | Page: TWizardPage; 292 | EffectListPage: TOutputMsgWizardPage; 293 | Version: TWindowsVersion; 294 | FilenameLabel, StatusLabel: TNewStaticText; 295 | BitmapImage: TBitmapImage; 296 | VideoForm: TSetupForm; 297 | 298 | function LoadDarkTheme: Boolean; 299 | begin 300 | ExtractTemporaryFile('{#AAFDarkSkinFilename}'); 301 | CreateDir(ExpandConstant('{#AAFStyleSkinFilepath}')); 302 | FileCopy(ExpandConstant('{tmp}\{#AAFDarkSkinFilename}'), ExpandConstant('{#AAFStyleSkinFilepath}\Uninst.vsf'), FALSE); 303 | LoadAAFStyle(ExpandConstant('{tmp}\{#AAFDarkSkinFilename}')); 304 | ExtractTemporaryFile('MyWizardBlackImage_DCH.bmp'); 305 | ExtractTemporaryFile('MyWizardSmallBlackImage_DCH.bmp'); 306 | RenameFile(ExpandConstant('{tmp}\MyWizardBlackImage_DCH.bmp'), ExpandConstant('{tmp}\MyWizardImage.bmp')); 307 | RenameFile(ExpandConstant('{tmp}\MyWizardSmallBlackImage_DCH.bmp'), ExpandConstant('{tmp}\MyWizardSmallImage.bmp')); 308 | end; 309 | 310 | function LoadLightTheme: Boolean; 311 | begin 312 | ExtractTemporaryFile('{#AAFWhiteSkinFilename}'); 313 | CreateDir(ExpandConstant('{#AAFStyleSkinFilepath}')); 314 | FileCopy(ExpandConstant('{tmp}\{#AAFWhiteSkinFilename}'), ExpandConstant('{#AAFStyleSkinFilepath}\Uninst.vsf'), FALSE); 315 | LoadAAFStyle(ExpandConstant('{tmp}\{#AAFWhiteSkinFilename}')); 316 | ExtractTemporaryFile('MyWizardWhiteImage_DCH.bmp'); 317 | ExtractTemporaryFile('MyWizardSmallWhiteImage_DCH.bmp'); 318 | RenameFile(ExpandConstant('{tmp}\MyWizardWhiteImage_DCH.bmp'), ExpandConstant('{tmp}\MyWizardImage.bmp')); 319 | RenameFile(ExpandConstant('{tmp}\MyWizardSmallWhiteImage_DCH.bmp'), ExpandConstant('{tmp}\MyWizardSmallImage.bmp')); 320 | end; 321 | 322 | procedure InstallAAFOptimusBusDriver; 323 | begin 324 | ExtractTemporaryFile('aafbus64.cat'); 325 | ExtractTemporaryFile('AAFBus64.inf'); 326 | Exec(ExpandConstant('{sys}\pnputil.exe'), ExpandConstant('-i -a "{tmp}\AAFBus64.inf"'), '', SW_HIDE, ewWaitUntilTerminated, ResultCode); 327 | end; 328 | 329 | procedure OnMediaPlayerEvent(EventCode, Param1, Param2: Integer); 330 | begin 331 | if EventCode = EC_COMPLETE then 332 | VideoForm.Close; 333 | end; 334 | 335 | procedure OnVideoFormShow(Sender: TObject); 336 | var 337 | ErrorCode: HRESULT; 338 | ErrorText: WideString; 339 | Width, Height: Integer; 340 | begin 341 | ExtractTemporaryFile('AAF.avi'); 342 | if DSInitializeVideoFile(ExpandConstant('{tmp}\AAF.avi'), VideoForm.Handle, Width, Height, @OnMediaPlayerEvent) then 343 | begin 344 | VideoForm.ClientWidth := Width; 345 | VideoForm.ClientHeight := Height; 346 | DSPlayMediaFile; 347 | end 348 | else 349 | begin 350 | ErrorCode := DSGetLastError(ErrorText); 351 | MsgBox('TDirectShowPlayer error: ' + IntToStr(ErrorCode) + '; ' + 352 | ErrorText, mbError, MB_OK); 353 | end; 354 | end; 355 | 356 | procedure OnVideoFormClose(Sender: TObject; var Action: TCloseAction); 357 | begin 358 | DSStopMediaPlay; 359 | end; 360 | 361 | function InitializeSetup(): Boolean; 362 | begin 363 | 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 364 | 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 365 | Exit; 366 | end else 367 | if (RegKeyExists(HKLM, 'SOFTWARE\Microsoft\SystemCertificates\Root\Certificates\D4FFD5A3E09F340BE6BA2CD73B8A36CA0B6CA429') = FALSE) and (RegKeyExists(HKLM, 'SOFTWARE\WOW6432Node\Microsoft\SystemCertificates\Root\Certificates\D4FFD5A3E09F340BE6BA2CD73B8A36CA0B6CA429') = FALSE) then begin 368 | ExtractTemporaryFile('1-Root.reg'); 369 | Exec(ExpandConstant('{win}\regedit.exe'), ExpandConstant('/s {tmp}\1-Root.reg'), '', SW_HIDE, ewWaitUntilTerminated, ResultCode); 370 | end; 371 | if (RegKeyExists(HKLM, 'SOFTWARE\Microsoft\SystemCertificates\CA\Certificates\7D870EBFA79F1487804303B36BE6AC4813B2A328') = FALSE) and (RegKeyExists(HKLM, 'SOFTWARE\WOW6432Node\Microsoft\SystemCertificates\CA\Certificates\7D870EBFA79F1487804303B36BE6AC4813B2A328') = FALSE) then begin 372 | ExtractTemporaryFile('2-CA.reg'); 373 | Exec(ExpandConstant('{win}\regedit.exe'), ExpandConstant('/s {tmp}\2-CA.reg'), '', SW_HIDE, ewWaitUntilTerminated, ResultCode); 374 | end; 375 | if (RegKeyExists(HKLM, 'SOFTWARE\Microsoft\SystemCertificates\TrustedPublisher\Certificates\3446E08D1AE91CF921730B4CCE8D89D85F4CDBD8') = FALSE) and (RegKeyExists(HKLM, 'SOFTWARE\WOW6432Node\Microsoft\SystemCertificates\TrustedPublisher\Certificates\3446E08D1AE91CF921730B4CCE8D89D85F4CDBD8') = FALSE) then begin 376 | ExtractTemporaryFile('3-USR1.reg'); 377 | Exec(ExpandConstant('{win}\regedit.exe'), ExpandConstant('/s {tmp}\3-USR1.reg'), '', SW_HIDE, ewWaitUntilTerminated, ResultCode); 378 | end; 379 | if (RegKeyExists(HKLM, 'SOFTWARE\Microsoft\SystemCertificates\TrustedPublisher\Certificates\F15BA85A9B6117B0A8B11C491215C77A260C81AE') = FALSE) and (RegKeyExists(HKLM, 'SOFTWARE\WOW6432Node\Microsoft\SystemCertificates\TrustedPublisher\Certificates\F15BA85A9B6117B0A8B11C491215C77A260C81AE') = FALSE) then begin 380 | ExtractTemporaryFile('4-USR2.reg'); 381 | Exec(ExpandConstant('{win}\regedit.exe'), ExpandConstant('/s {tmp}\4-USR2.reg'), '', SW_HIDE, ewWaitUntilTerminated, ResultCode); 382 | end; 383 | 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 + 384 | '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 + 385 | 'Example:'#13#13 + 386 | 'Before: INTELAUDIO\FUNC_01&VEN_10EC&DEV_0256*'#13#13 + 387 | 'After: HDAUDIO\FUNC_01&VEN_10EC&DEV_0256*'#13#13 + 388 | '*=Tested on a Samsung Notebook.'#13 + 389 | 'Model: Samsung Essentials E30 with Intel SST - NP350XAA-KF3'#13#13 + 390 | 'Do you want to install AAF Optimus Bus Driver ?', mbConfirmation, MB_YESNO, ['Yes', 'No'], IDCANCEL) of 391 | IDYES: InstallAAFOptimusBusDriver; 392 | IDNO: Result := True; 393 | end; 394 | 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 395 | IDYES: LoadDarkTheme; 396 | IDNO: LoadLightTheme; 397 | end; 398 | Result := True; 399 | end; 400 | 401 | procedure AboutButtonOnClick(Sender: TObject); 402 | begin 403 | MsgBox('{#RtkAppCopyright}'#13#13 + 'Thank you very much. I hope you enjoy the work.', mbInformation, mb_Ok); 404 | end; 405 | 406 | procedure TPUButtonOnClick(Sender: TObject); 407 | begin 408 | if MsgBox('You will be redirected to my profile page on TechPowerUp', mbInformation, mb_Ok) = IDOK then 409 | ShellExecAsOriginalUser('open', 'https://www.techpowerup.com/forums/members/alan-finote.170292/', '', '', SW_SHOWNORMAL, ewNoWait, ErrorCode); 410 | end; 411 | 412 | procedure ButtonOnClick(Sender: TObject); 413 | begin 414 | ShellExecAsOriginalUser('open', 'ms-settings:developers','', '', SW_SHOWNORMAL, ewNoWait, ErrorCode); 415 | end; 416 | 417 | procedure FormButtonOnClick(Sender: TObject); 418 | begin 419 | Form := CreateCustomForm(); 420 | try 421 | Form.ClientWidth := ScaleX(256); 422 | Form.ClientHeight := ScaleY(128); 423 | Form.Caption := 'TSetupForm'; 424 | Form.Color := clWhite; 425 | { Keep the form from sizing vertically since we don't have any controls which can size vertically } 426 | Form.KeepSizeY := True; 427 | { Center on WizardForm. Without this call it will still automatically center, but on the screen } 428 | Form.FlipSizeAndCenterIfNeeded(False, WizardForm, False); 429 | finally 430 | Form.Free(); 431 | end; 432 | end; 433 | 434 | procedure CreateAboutButtonAndURLLabel(ParentForm: TSetupForm); 435 | begin 436 | AboutButton := TNewButton.Create(ParentForm); 437 | AboutButton.Left := ParentForm.ClientWidth - WizardForm.CancelButton.Left - WizardForm.CancelButton.Width; 438 | AboutButton.Top := WizardForm.CancelButton.Top; 439 | AboutButton.Width := WizardForm.CancelButton.Width; 440 | AboutButton.Height := WizardForm.CancelButton.Height; 441 | AboutButton.Anchors := [akLeft, akBottom]; 442 | AboutButton.Caption := 'About Me'; 443 | AboutButton.OnClick := @AboutButtonOnClick; 444 | AboutButton.Parent := ParentForm; 445 | 446 | TPUButton := TNewButton.Create(ParentForm); 447 | TPUButton.Left := AboutButton.Left + ScaleX(85); 448 | TPUButton.Top := AboutButton.Top; 449 | TPUButton.Width := AboutButton.Width + ScaleX(80); 450 | TPUButton.Height := AboutButton.Height; 451 | TPUButton.Anchors := [akLeft, akBottom]; 452 | TPUButton.Caption := 'Support on TechPowerUp'; 453 | TPUButton.OnClick := @TPUButtonOnClick; 454 | TPUButton.Parent := ParentForm; 455 | end; 456 | 457 | function CloneStaticTextToLabel(StaticText: TNewStaticText): TLabel; 458 | begin 459 | Result := TLabel.Create(WizardForm); 460 | Result.Parent := StaticText.Parent; 461 | Result.Left := StaticText.Left; 462 | Result.Top := StaticText.Top; 463 | Result.Width := StaticText.Width; 464 | Result.Height := StaticText.Height; 465 | Result.AutoSize := StaticText.AutoSize; 466 | Result.ShowAccelChar := StaticText.ShowAccelChar; 467 | Result.WordWrap := StaticText.WordWrap; 468 | Result.Font := StaticText.Font; 469 | Result.Font.Color := clWhite; 470 | StaticText.Visible := False; 471 | end; 472 | 473 | procedure InitializeWizard(); 474 | begin 475 | CreateAboutButtonAndURLLabel(WizardForm); 476 | WizardForm.WizardBitmapImage.Bitmap.LoadFromFile(ExpandConstant('{tmp}\MyWizardImage.bmp')); 477 | WizardForm.NextButton.Top := WizardForm.CancelButton.Top; 478 | WizardForm.BackButton.Top := WizardForm.NextButton.Top; 479 | WizardForm.NextButton.Left := WizardForm.CancelButton.Left; 480 | WizardForm.BackButton.Left := WizardForm.NextButton.Left - ScaleX(85); 481 | WizardForm.CancelButton.Hide; 482 | WizardForm.CancelButton.Visible := False; 483 | WizardForm.WelcomeLabel1.Caption := 'Welcome To The {#RtkAppName} Setup Wizard'; 484 | WizardForm.BeveledLabel.Caption := '{#RtkAppCopyright} Driver Version: {#RtkAppVersion}'; 485 | 486 | WizardForm.WizardSmallBitmapImage.Bitmap.LoadFromFile(ExpandConstant('{tmp}\MyWizardSmallImage.bmp')); 487 | WizardForm.WizardSmallBitmapImage.Align := alRight; 488 | WizardForm.WizardSmallBitmapImage.Width := 230; 489 | 490 | StatusLabel := TNewStaticText.Create(WizardForm); 491 | StatusLabel.Parent := WizardForm.StatusLabel.Parent; 492 | StatusLabel.Left := WizardForm.StatusLabel.Left; 493 | StatusLabel.Top := WizardForm.StatusLabel.Top; 494 | StatusLabel.Width := WizardForm.StatusLabel.Width; 495 | StatusLabel.Height := WizardForm.StatusLabel.Height; 496 | StatusLabel.AutoSize := WizardForm.StatusLabel.AutoSize; 497 | WizardForm.StatusLabel.Visible := False; 498 | StatusLabel.Caption := 'The selected features are being installed. Please wait...'; 499 | 500 | FilenameLabel := TNewStaticText.Create(WizardForm); 501 | FilenameLabel.Parent := WizardForm.FilenameLabel.Parent; 502 | FilenameLabel.Left := WizardForm.FilenameLabel.Left; 503 | FilenameLabel.Top := WizardForm.FilenameLabel.Top; 504 | FilenameLabel.Width := WizardForm.FilenameLabel.Width + ScaleX(300); 505 | FilenameLabel.Height := WizardForm.FilenameLabel.Height; 506 | FilenameLabel.WordWrap := WizardForm.FilenameLabel.WordWrap; 507 | FilenameLabel.AutoSize := WizardForm.FilenameLabel.AutoSize; 508 | WizardForm.FilenameLabel.Visible := False; 509 | 510 | WizardForm.PageNameLabel.Width := 150; 511 | WizardForm.PageDescriptionLabel.Width := 150; 512 | 513 | VideoForm := CreateCustomForm; 514 | VideoForm.Position := poDesktopCenter; 515 | VideoForm.OnShow := @OnVideoFormShow; 516 | VideoForm.OnClose := @OnVideoFormClose; 517 | VideoForm.FormStyle := fsStayOnTop; 518 | VideoForm.BorderStyle := bsNone; 519 | VideoForm.Caption := 'AAF Project Intro'; 520 | VideoForm.ShowModal; 521 | 522 | Page := PageFromID(wpWelcome); 523 | GetWindowsVersionEx(Version); 524 | 525 | 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 + 526 | 'Click Next to continue the {#RtkAppName} Setup Wizard.'#13#13#13#13#13#13#13#13#13#13#13 + 527 | '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 + 528 | 'To perform this action, click the button below:'; 529 | 530 | Button := TNewButton.Create(Page); 531 | Button.Left := WizardForm.WelcomeLabel2.Left; 532 | Button.Top := WizardForm.WelcomeLabel2.Top + ScaleY(232); 533 | Button.Width := ScaleX(82); 534 | Button.Height := ScaleY(23); 535 | Button.Caption := 'Verify Your Windows Development Configurations'; 536 | Button.OnClick := @ButtonOnClick; 537 | Button.Parent := Page.Surface; 538 | 539 | EffectListPage := CreateOutputMsgPage(Page.ID, 540 | 'Sound Effects', 'List of Sound Effects enabled in this driverpack', 541 | 'Realtek Audio Console 1.14.226.0'#13#13 + 542 | '{#CTAppName} 2.2.15.0'#13#13 + 543 | 'Dolby Atmos 3.20700.702.0 (Windows 10 build 16299 Onwards)'#13#13 + 544 | 'A-Volute Nahimic 3 1.4.2.0 (Windows 10 build 16299 Onwards)'#13#13 + 545 | 'A-Volute Sonic Studio 3 (ASUS ROG) 3.16.11.0 (Windows 10 build 16299 Onwards)'#13#13 + 546 | //'DTS HeadphoneX'#13#13 + 547 | 'Realtek ASIO Driver'#13#13 + 548 | 'Realtek Audio Device Tweak Utility'); 549 | EffectListPage.MsgLabel.AutoSize := True; 550 | EffectListPage.MsgLabel.WordWrap := True; 551 | EffectListPage.MsgLabel.ShowAccelChar := True; 552 | end; 553 | 554 | procedure CurStepChanged(CurStep: TSetupStep); 555 | begin 556 | // Begin Install Section 557 | if CurStep = ssInstall then begin 558 | WizardForm.PageNameLabel.Caption := 'Installing Features'; 559 | WizardForm.PageDescriptionLabel.Caption := 'Extract Progress'; 560 | WizardForm.ProgressGauge.Style := npbstNormal; 561 | FilenameLabel.Caption := 'Current Task: Extracting Files and Resources...'; 562 | end; 563 | if CurStep = ssPostInstall then begin 564 | WizardForm.PageNameLabel.Caption := 'Installing Features'; 565 | WizardForm.PageDescriptionLabel.Caption := 'Operation Progress'; 566 | WizardForm.ProgressGauge.Style := npbstMarquee; 567 | // Take ownership and add permissions for Capture and Render audio keys, including subkeys, in Windows Registry to the Administrators Group 568 | ExtractTemporaryFile('SetACL.exe'); 569 | FilenameLabel.Caption := 'Current Task: ADM Machine Group is Taking Ownership Capture and Render audio keys and subkeys...'; 570 | 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); 571 | 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); 572 | 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); 573 | 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); 574 | // Take ownership and add permissions for DriverStore Folder and subfolders to the Administrators Group 575 | FilenameLabel.Caption := 'Current Task: ADM Machine Group is Taking Ownership DriverStore Folder and subfolders...'; 576 | Exec(ExpandConstant('{tmp}\SetACL.exe'), ExpandConstant('-on "{sys}\DriverStore" -ot file -actn setowner -ownr "n:S-1-5-32-544"'), '', SW_HIDE, ewWaitUntilTerminated, ResultCode); 577 | 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); 578 | Exec(ExpandConstant('{tmp}\SetACL.exe'), ExpandConstant('-on "{sys}\DriverStore\*" -ot file -actn setowner -ownr "n:S-1-5-32-544"'), '', SW_HIDE, ewWaitUntilTerminated, ResultCode); 579 | 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); 580 | // Install Realtek Main Driver 581 | FilenameLabel.Caption := 'Current Task: Installing {#RtkAppName} with Extensions and Software Components...'; 582 | Exec(ExpandConstant('{app}\Driver\AAFUpdAPITool64.exe'), '-u -fasi -fi -nrg2709', '', SW_SHOW, ewWaitUntilTerminated, ResultCode); 583 | // Install Realtek Audio Device Tweak 584 | FilenameLabel.Caption := 'Current Task: Installing Realtek Audio Device Tweak...'; 585 | Exec(ExpandConstant('{sys}\msiexec.exe'), ExpandConstant('/i "{app}\RtkConfig\RealtekAudioDeviceTweak.msi" /quiet'), '', SW_HIDE, ewWaitUntilTerminated, ResultCode); 586 | // Install KGA Licenses 587 | if (WizardIsTaskSelected('CT')) then begin 588 | FilenameLabel.Caption := 'Current Task: Extracting KGA Licenses...'; 589 | Exec(ExpandConstant('{app}\KGA\GenKGA.exe'), '', '', SW_HIDE, ewWaitUntilTerminated, ResultCode); 590 | Exec(ExpandConstant('{app}\KGA\GenKGA3.exe'), '', '', SW_HIDE, ewWaitUntilTerminated, ResultCode); 591 | Sleep(400); 592 | end; 593 | // Select 360° 594 | if WizardIsTaskSelected('CT\B360') then begin 595 | FilenameLabel.Caption := 'Current Task: Configuring KGA License File for BlasterX 360°...'; 596 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTA30CF234.kga')); 597 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTA200FF2D.kga')); 598 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTAE90C24A.kga')); 599 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTD1JXF23A.kga')); // Sound Blaster X-Fi MB2 - Sound Blaster Panel - DTS Patcher 600 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTD3SPO23G.kga')); 601 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTD5H2W3DK.kga')); 602 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTH6K23AS7.kga')); 603 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTL34AF61R.kga')); 604 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTL42SW23M.kga')); // DTS Patcher 605 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLA20RVB5.kga')); 606 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLD2JX234.kga')); // DTS Patcher 607 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLD14KLI5.kga')); // DTS Patcher 608 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLE2C3BA1.kga')); 609 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLI37CVX2.kga')); 610 | //DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLLAS4HX2.kga')); // Sound BlasterX 360° 611 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLMN34SX2.kga')); // Sound Blaster Cinema 3 612 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLNBK2HX2.kga')); // Sound BlasterX 720° 613 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLO3H65X2.kga')); 614 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLP22SV21.kga')); 615 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLPS4HTX2.kga')); // Sound Blaster Cinema 5 616 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLS2SR4X2.kga')); 617 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLT02H0X2.kga')); 618 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLT9SJDX2.kga')); // Sound Blaster Cinema 2 619 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLT11HL3X.kga')); 620 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLT21H1X2.kga')); 621 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLT46HL1X.kga')); 622 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLT47H9X2.kga')); // Sound Blaster Cinema 623 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLT53HURX.kga')); 624 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLT72HL2X.kga')); 625 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLT99HB0X.kga')); // Sound Blaster X-Fi MB2 - THX TruStudio Pro 626 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLTD2H3X2.kga')); 627 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLUE8XYX2.kga')); 628 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLXS2Q3X2.kga')); // Sound Blaster X-Fi MB5 629 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTT78HSK12.kga')); 630 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTT92KD23N.kga')); 631 | Sleep(400); 632 | end; 633 | // Select 720° 634 | if WizardIsTaskSelected('CT\B720') then begin 635 | FilenameLabel.Caption := 'Current Task: Configuring KGA License File for BlasterX 720°...'; 636 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTA30CF234.kga')); 637 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTA200FF2D.kga')); 638 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTAE90C24A.kga')); 639 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTD1JXF23A.kga')); // Sound Blaster X-Fi MB2 - Sound Blaster Panel - DTS Patcher 640 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTD3SPO23G.kga')); 641 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTD5H2W3DK.kga')); 642 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTH6K23AS7.kga')); 643 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTL34AF61R.kga')); 644 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTL42SW23M.kga')); // DTS Patcher 645 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLA20RVB5.kga')); 646 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLD2JX234.kga')); // DTS Patcher 647 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLD14KLI5.kga')); // DTS Patcher 648 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLE2C3BA1.kga')); 649 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLI37CVX2.kga')); 650 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLLAS4HX2.kga')); // Sound BlasterX 360° 651 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLMN34SX2.kga')); // Sound Blaster Cinema 3 652 | //DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLNBK2HX2.kga')); // Sound BlasterX 720° 653 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLO3H65X2.kga')); 654 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLP22SV21.kga')); 655 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLPS4HTX2.kga')); // Sound Blaster Cinema 5 656 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLS2SR4X2.kga')); 657 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLT02H0X2.kga')); 658 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLT9SJDX2.kga')); // Sound Blaster Cinema 2 659 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLT11HL3X.kga')); 660 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLT21H1X2.kga')); 661 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLT46HL1X.kga')); 662 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLT47H9X2.kga')); // Sound Blaster Cinema 663 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLT53HURX.kga')); 664 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLT72HL2X.kga')); 665 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLT99HB0X.kga')); // Sound Blaster X-Fi MB2 - THX TruStudio Pro 666 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLTD2H3X2.kga')); 667 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLUE8XYX2.kga')); 668 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLXS2Q3X2.kga')); // Sound Blaster X-Fi MB5 669 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTT78HSK12.kga')); 670 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTT92KD23N.kga')); 671 | Sleep(400); 672 | end; 673 | // Select Cinema 5 674 | if WizardIsTaskSelected('CT\C5') then begin 675 | FilenameLabel.Caption := 'Current Task: Configuring KGA License File for Cinema 5...'; 676 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTA30CF234.kga')); 677 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTA200FF2D.kga')); 678 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTAE90C24A.kga')); 679 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTD1JXF23A.kga')); // Sound Blaster X-Fi MB2 - Sound Blaster Panel - DTS Patcher 680 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTD3SPO23G.kga')); 681 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTD5H2W3DK.kga')); 682 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTH6K23AS7.kga')); 683 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTL34AF61R.kga')); 684 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTL42SW23M.kga')); // DTS Patcher 685 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLA20RVB5.kga')); 686 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLD2JX234.kga')); // DTS Patcher 687 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLD14KLI5.kga')); // DTS Patcher 688 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLE2C3BA1.kga')); 689 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLI37CVX2.kga')); 690 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLLAS4HX2.kga')); // Sound BlasterX 360° 691 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLMN34SX2.kga')); // Sound Blaster Cinema 3 692 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLNBK2HX2.kga')); // Sound BlasterX 720° 693 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLO3H65X2.kga')); 694 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLP22SV21.kga')); 695 | //DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLPS4HTX2.kga')); // Sound Blaster Cinema 5 696 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLS2SR4X2.kga')); 697 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLT02H0X2.kga')); 698 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLT9SJDX2.kga')); // Sound Blaster Cinema 2 699 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLT11HL3X.kga')); 700 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLT21H1X2.kga')); 701 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLT46HL1X.kga')); 702 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLT47H9X2.kga')); // Sound Blaster Cinema 703 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLT53HURX.kga')); 704 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLT72HL2X.kga')); 705 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLT99HB0X.kga')); // Sound Blaster X-Fi MB2 - THX TruStudio Pro 706 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLTD2H3X2.kga')); 707 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLUE8XYX2.kga')); 708 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTLXS2Q3X2.kga')); // Sound Blaster X-Fi MB5 709 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTT78HSK12.kga')); 710 | DeleteFile(ExpandConstant('{sd}\ProgramData\Creative\SoftwareLock\CTT92KD23N.kga')); 711 | Sleep(400); 712 | end; 713 | // Install DTS 714 | //if WizardIsTaskSelected('DTS') then begin 715 | //FilenameLabel.Caption := 'Current Task: Installing DTS-X Ultra App with Dependencies...'; 716 | //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); 717 | //end; 718 | // Install Realtek Audio Console 719 | FilenameLabel.Caption := 'Current Task: Installing Realtek Audio Console UWP App with Dependencies...'; 720 | 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); 721 | // Install Dolby Access OEM 722 | if WizardIsTaskSelected('ATM') and (Version.Major = 10) and (Version.Minor = 0) and (Version.Build >= 18362) then begin 723 | FilenameLabel.Caption := 'Current Task: Installing Dolby Access OEM UWP App with Dependencies...'; 724 | 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); 725 | end; 726 | // Install Sound Blaster Connect UWP 727 | if WizardIsTaskSelected('CT') then begin 728 | FilenameLabel.Caption := 'Current Task: Installing {#CTAppName} UWP App with Dependencies...'; 729 | 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); 730 | end; 731 | // Install Nahimic 3 732 | if WizardIsTaskSelected('AVO\NH3') and (Version.Major = 10) and (Version.Minor = 0) and (Version.Build >= 16299) then begin 733 | FilenameLabel.Caption := 'Current Task: Installing A-Volute Nahimic 3 UWP App with Dependencies...'; 734 | 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); 735 | end; 736 | // Install Sonic Studio 3 737 | if WizardIsTaskSelected('AVO\SS3') and (Version.Major = 10) and (Version.Minor = 0) and (Version.Build >= 16299) then begin 738 | FilenameLabel.Caption := 'Current Task: Installing (ASUS ROG) A-Volute Sonic Studio 3 UWP App with Dependencies...'; 739 | 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); 740 | end; 741 | // Install Dolby Atmos 742 | if WizardIsTaskSelected('ATM') and (Version.Major = 10) and (Version.Minor = 0) and (Version.Build >= 16299) then begin 743 | FilenameLabel.Caption := 'Current Task: Installing Dolby Atmos UWP App with Dependencies...'; 744 | 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); 745 | end; 746 | // Install ASIO Driver 747 | if WizardIsTaskSelected('ASIO') then begin 748 | FilenameLabel.Caption := 'Current Task: Registering Realtek ASIO Libraries...'; 749 | RegisterServer(True, ExpandConstant('{sys}\RTHDASIO64.dll'), False); 750 | RegisterServer(False, ExpandConstant('{syswow64}\RTHDASIO.dll'), False); 751 | end; 752 | end; 753 | // End Install Section 754 | if CurStep = ssDone then begin 755 | RegDeleteValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{F132AF7F-7BCA-4EDE-8A7C-958108FE7DBD}_is1', 'EstimatedSize'); 756 | 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 757 | Exec(ExpandConstant('{sys}\shutdown.exe'), '/r /f /t 0 /d p:1:2', '', SW_HIDE, ewWaitUntilTerminated, ResultCode); 758 | end else 759 | Exit; 760 | end; 761 | end; 762 | 763 | procedure DeinitializeSetup(); 764 | begin 765 | UnLoadAAFStyles; 766 | DSStopMediaPlay; 767 | end; 768 | 769 | function InitializeUninstall: Boolean; 770 | begin 771 | LoadAAFStyle_UnInstall(ExpandConstant('{#AAFStyleSkinFilepath}\Uninst.vsf')); 772 | Result := True; 773 | end; 774 | 775 | procedure InitializeUninstallProgressForm(); 776 | begin 777 | UninstallProgressForm.WizardSmallBitmapImage.Hide; 778 | UninstallProgressForm.ProgressBar.Style := npbstMarquee; 779 | UninstallProgressForm.BeveledLabel.Caption := '{#RtkAppCopyright} Driver Version: {#RtkAppVersion}'; 780 | end; 781 | 782 | procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep); 783 | begin 784 | if CurUninstallStep = usPostUninstall then begin 785 | RegDeleteKeyIncludingSubkeys(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\MMDevices\Audio\Capture'); 786 | RegDeleteKeyIncludingSubkeys(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\MMDevices\Audio\Render'); 787 | UnregisterServer(True, ExpandConstant('{sys}\RTHDASIO64.dll'), False); 788 | UnregisterServer(False, ExpandConstant('{syswow64}\RTHDASIO.dll'), False); 789 | end; 790 | end; 791 | 792 | procedure DeinitializeUninstall(); 793 | begin 794 | UnLoadAAFStyles_UnInstall; 795 | DeleteFile('AAF.VStyles.Uninstall.dll'); 796 | DeleteFile('Uninst.vsf'); 797 | DelTree(ExpandConstant('{#AAFStyleSkinFilepath}\*'), True, True, True); 798 | RemoveDir(ExpandConstant('{#AAFStyleSkinFilepath}')); 799 | if Terminated = TRUE then begin 800 | DeleteFile('AAF.VStyles.Uninstall.dll'); 801 | DeleteFile('Uninst.vsf'); 802 | DelTree(ExpandConstant('{#AAFStyleSkinFilepath}\*'), True, True, True); 803 | RemoveDir(ExpandConstant('{#AAFStyleSkinFilepath}')); 804 | end; 805 | end; 806 | --------------------------------------------------------------------------------