-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.bat
1608 lines (1075 loc) · 49.8 KB
/
setup.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
@echo off
setlocal EnableDelayedExpansion
rem debug
rem set PROCESSOR_ARCHITECTURE=x64
REM C_DRV=FAT32
REM I_DRV=FAT32
net session > nul 2>&1
if %errorLevel% == 0 (
goto START_POINT
)
%SYSTEMROOT%\system32\net session > nul 2>&1
if %errorLevel% == 0 (
goto START_POINT
) else (
call :exit false false
)
:START_POINT
reg add "hklm\SOFTWARE\Native Instruments\Kontakt HD Edition" /v k4u /t REG_SZ /d "[email protected]" /f
reg add "hkcu\Software\Sysinternals\Junction" /v EulaAccepted /t REG_DWORD /d 1 /f
set skip=skip=2
FOR /F "skip=4 tokens=1*" %%i IN ('@reg query "hklm\SOFTWARE\Native Instruments\Kontakt HD Edition" /v k4u') DO (
set skip=skip=4
)
cd /d %~dp0
set iroot=%cd%
call :nok4u
cd Packages
set proot=%cd%
rd junctest
set uz=7z x -y
set xz=7z a -t7z -mx=9
if not exist "tools" goto end_inttools
rd ".\temp"
rd /q /s ".\temp"
%uz% tools.7z -o"temp"
xcopy /s /h /r /y /i "temp\crack" "temp"
xcopy /s /h /r /y /i "temp\txt" "temp"
rd "temp\crack"
rd /q /s "temp\crack"
rd "temp\txt"
rd /q /s "temp\txt"
xcopy /s /h /r /y /i "tools" "temp"
del /q /f temp.7z
%xz% ".\temp.7z" ".\temp\*"
echo f|xcopy /h /r /y .\temp.7z .\tools.7z
rd ".\temp"
rd /q /s ".\temp"
rd ".\tools"
rd /q /s ".\tools"
del /q /f temp.7z
:end_inttools
set tools=%temp%\nilv
%uz% tools.7z -o"%tools%"
%uz% ..\SymphonicChoirs\sctools.7z -o"%tools%"
if "x86"=="%PROCESSOR_ARCHITECTURE%" goto cfgx86
set sys32=%windir%\SysWOW64
set lms=hklm\SOFTWARE\Wow6432Node
set commonx86=%CommonProgramFiles(x86)%
set progx86=%ProgramFiles(x86)%
goto linkuserdata
:cfgx86
set sys32=%windir%\system32
set lms=hklm\SOFTWARE
set commonx86=%CommonProgramFiles%
set progx86=%ProgramFiles%
:linkuserdata
FOR /F "%skip% tokens=2*" %%i IN ('@reg query "hklm\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v CurrentVersion') DO (
set windows_version=%%j%
)
set k5vst32xpflag=
if "%windows_version%"=="5.1" set k5vst32xpflag=XP
set jd="%tools%\junction"
call :testjunc "." "junctest"
if %jret%==fail goto movekore
%jd% -d "%USERPROFILE%\Documents\Native Instruments"
md "%iroot%\User"
xcopy /s /h /r /y /i "%USERPROFILE%\Documents\Native Instruments" "%iroot%\User"
rd /q /s "%USERPROFILE%\Documents\Native Instruments"
%jd% "%USERPROFILE%\Documents\Native Instruments" "%iroot%\User"
%jd% -d "%iroot%\User\Kontakt 4"
%jd% -d "%iroot%\User\Kontakt"
xcopy /s /h /r /y /i "%iroot%\User\Kontakt 4" "%iroot%\User\Kontakt 5"
xcopy /s /h /r /y /i "%iroot%\User\Kontakt" "%iroot%\User\Kontakt 5"
rd /q /s "%iroot%\User\Kontakt 4"
rd /q /s "%iroot%\User\Kontakt"
md "%iroot%\User\Kontakt 5"
%jd% "%iroot%\User\Kontakt 4" "%iroot%\User\Kontakt 5"
%jd% "%iroot%\User\Kontakt" "%iroot%\User\Kontakt 5"
rd /q /s "%iroot%\User\Kontakt\Crashlogs"
rd /q /s "%iroot%\User\Kontakt 5\Crashlogs"
rd /q /s "%iroot%\User\Kontakt 4\Crashlogs"
rd /q /s "%iroot%\User\Kontakt 3\Crashlogs"
:movekore
if not exist "%iroot%\Kontakt4\kore2" goto movekore_file
xcopy /s /h /r /y /i "%iroot%\Kontakt4\kore2" "%iroot%\Kontakt5\kore2"
rd /q /s "%iroot%\Kontakt4\kore2"
:movekore_file
if not exist "%iroot%\Kontakt4\kore2.7z" goto movekore_end
echo f|xcopy /h /r /y "%iroot%\Kontakt4\kore2.7z" "%iroot%\Kontakt5\kore2.7z"
del /q /f "%iroot%\Kontakt4\kore2.7z"
:movekore_end
:lansel
rem debug
rem set commonx86=E:\Temp\commonx86
rem set CommonProgramFiles=E:\Temp\common3264
cls
echo 1. English: Key In 1 and hit the enter key will use English during the installation.
echo 2. 简体中文: 输入2并按回车将在安装过程中使用简体中文
echo.
set /p choi=[1~2]:
if %choi% == 1 goto English
set str_nontfs=Native Instrument Kontakt 家族 2019/6/9 准速装程序(真速装要求Common文件夹所在分区为NTFS)
set str_install_title=Native Instrument Kontakt 家族 HD 2019/6/9 版速装程序
set str_install=把Kontakt家族安装到计算机
set str_uninstall=卸载Kontakt家族
set str_readme=阅读帮助文件和浏览工具目录,当遇到不清楚时请使用本入口
set str_reglib=运行Kontakt音色库注册工具,当你遇到任何未注册引起的问题时使用本功能
set str_choose=请输入1~
set str_enter=并按回车继续
set str_keepdfd=是否保留DFD等支持以便Kontakt2 Player等程序可以正常运行(如果您不再使用其他Kontakt2相关产品如Kompakt或Intakt之类的则建议选否)?
set str_selvstpath=选择32位VST路径,Kontakt的32位版本和SymphonicChoirs将安装于此
set str_selvst64path=请选择64位VST路径,Kontakt的64位版本将安装于此
set str_manualpath=手动输入,当自动搜寻的结果中不满意,可选择该项
set str_sysvstpath=结果来自系统默认
set str_autosearch=结果来自自动搜索
set str_by_cakewalk=该路径由Cakewalk提供
set str_vstpath_notfound=无法找到32位VST路径
set str_vstpath_notfound64=无法找到64位VST路径
set str_please_input=请输入或从剪切板黏贴期望的VST路径,建议直接拖拽目标文件夹到本窗口,然后按回车。当路径包含空格时,路径两端应该有双引号才是正确的输入:
set str_update_syspath=是否更新到系统VST目录(更新后,其他VST插件安装程序可以自动定位到该路径。当然你担心引起问题可以选择否)?
set str_yes=是
set str_no=否
set str_enter12=请输入1或2并按回车键:
set str_clean=是否在安装前清除旧版(如果你选择了是而卡死的话,建议关闭本窗口后下次到这一步选否)?
set str_installdxi=要安装DXi版吗(如果你选择了是而卡死的话,建议关闭本窗口后下次到这一步选否)?
set str_intro_old_names=如果你之前用过Kontakt,也许还需要像kontakt 2.11这种形式的文件名。你确实想复制一份这种文件名的版本吗(今后可以手动去VST目录下删除不喜欢的名字)?
set str_recommended=,推荐选用
set str_share_convolution=原版Kontakt 3.5不自带混响卷积,但Kontakt 2的可以提供给他用,如果你想在Kontakt 3.5中使用混响卷积,可以选择安装。但会占用约131M磁盘空间。你确定安装吗?
set str_install64=您正在运行的系统是64位的,请根据需要选择64位Kontakt的安装细节
set str_ovw32=使用32位的目录,但不安装Kontakt 3/4/5的32位版本(以64位宿主或桥接到64位Kontakt用法为主的用户,如果担心混乱,建议选择4)
set str_64spec=指定64位的目录,和32位共存,注意不要设置到32位目录中!该选项适合偶像很想使用32位版本的64位用户使用
set str_no64=不安装64位的版本,本选项仅适合完全不使用64位版本的人使用
set str_no32=指定64位的目录,不安装32位的Kontakt(SymphonicChoirs依然安装于之前指定的目录,推荐大多数人选择该项)
set str_pack=Kontakt已经安装完成。因部分组件没被安装(或因部分分区不是NTFS),目前正在对其进行打包以节省磁盘空间,该过程无需等待结束即可使用Kontakt,但因为压缩会占用系统资源,低性能电脑也许会卡顿。可等待本窗口自动关闭后才使用。请不要删除本文件夹,因为部分文件是采用链接的方式创建到相关路径,本质上是指向本文件内的文件的。
set str_ask_rtas=是否安装RTAS和AAX插件(不需要用的就不用装了)?
set str_ask_k12=是否安装Kontakt 1和2的插件版本(不需要用的就不用装了,可执行版本在相应路径中,可随时运行)?
set str_convolution4=如果您不使用Kontakt 4/5库或者基本不制作音色库,可以免去安装混响卷积,这将给你的系统盘节省500M空间。确定要装Kontakt 4用的混响卷积吗?
set str_kore2=如果您不打算支持Kore2,可以省去为系统盘节省55M空间。确定要安装Kore2支持吗?
set str_great_uninstall=打包删除,在执行反安装后,安装包内所有文件打包存放以节省磁盘空间
set str_uhelper=Kontakt 6.x升级助手,适用于你自行下载了新版的Kontakt 5,又希望新版的能集成到这个安装包中,下回重装时通过本程序直接装到最新的版本
set str_run_updater=请运行Kontakt 6升级程序,并在其完成后按任意键继续,千万不要在安装程序上选择'Uninstall'(如果有的选话)!
set str_update_fail=更新失败,是否重试?
set str_update_ok=更新成功,正在把更新的文件更新到安装包中,请稍候……
set str_must_reinstall=回收成功,请按任意键进入安装界面,以速装的方式安装一次……
set str_greatpack=正在打包部分组件以节省空间……
set str_isxp=说明:XP系统下,Kontakt 5.3.1是最后一个可执行的版本
set str_generalvst64=64位VST常规路径
set str_generalvst32=32位VST常规路径
goto install
:English
set str_nontfs=Welcome to Native Instrument Kontakt 2019/6/9 SEMI-HD Edition Setup (The Real HD Edition requires the volume containing the common folder to be NTFS)
set str_install_title=Welcome to Native Instrument Kontakt HD Edition 2019/6/9 Setup
set str_install=Install
set str_uninstall=Uninstall
set str_readme=Browse all tools and documents(in Chinese)
set str_reglib=Run the Kontakt Library Register Tool
set str_choose=Please choose from 1~
set str_enter= and press enter key to continue
set str_keepdfd=Keep the DFD files for Kontakt2 player?
set str_selvstpath=Select the 32-bit VST Path
set str_selvst64path=Select the 64-bit VST Path
set str_vstpath_notfound=VST Path Not Found
set str_vstpath_notfound64=64-bit VST Path Not Found
set str_manualpath=Input Manually
set str_sysvstpath=System Default
set str_autosearch=Auto Search
set str_by_cakewalk=By Cakewalk
set str_please_input=Please input the vst path manually or paste from the clipboard, drap and drop the folder is recommended:
set str_update_syspath=Do you want to update the result to the system vst path?
set str_yes=Yes
set str_no=No
set str_enter12=Please choose 1 or 2 and hit the Enter key:
set str_clean=Do some cleaning before install?
set str_installdxi=Install the DXi Versions?
set str_intro_old_names=If you have used kontakt before, you may need the files like kontakt 2.11. Would you still like to use the old names(You can go to the VST Directory and delete the ones you don't like in future)?
set str_recommended=, Recommended
set str_share_convolution=The Original Kontakt 3.5 doesn't contain convolution, but if you like, setup can copy the one from Kontakt 2 for it. This will take up about 131M disk space. Do you want to install?
set str_install64=You can determine how the Kontakt x64 is installed
set str_ovw32=Install to the same location as the x86 does, which will overwrite the x86 version (Only 64-bit is available).
set str_64spec=Install to other location, both x86 and x64 can be used for various hosts. Please don't make it inside the path to the 32-bit's!
set str_no64=Don't want to instal the x64 version
set str_no32=Install to other location, without installing 32-bit kontakts. The previous location will install SymphonicChoirs (Recommended)
set str_pack=Kontakt is installed successfully. Because some components are not installed, or their junction cannot be created, setup is compressing them now.
set str_ask_rtas=Install RTAS and AAX?
set str_ask_k12=Install Kontakt 1 and 2?
set str_convolution4=You don't need to install the convolution that is for the Kontakt 4 Library. You will save about 500M disk space if you decide not installing the convolution. Do you want to install it?
set str_kore2=You don't need to install the files that is for the Kore 2. You will save about 50M disk space if you decide not installing it. Do you want to install it?
set str_great_uninstall=Great Uninstall (Pack all files after the uninstallation to save disk space)
set str_uhelper=Kontakt 6.x Update helper
set str_run_updater=Press any key after the Kontakt 6 Updater is finished. DO NOT select the 'Uninstall' Option at the Updater if it shows!
set str_update_fail=Update failed, retry?
set str_update_ok=Update succeeded, integrating the new files back into the setup package. Please wait.
set str_must_reinstall=Integration succeeded, press any key to install it again as the HD Edtion.
set str_greatpack=Packing some components to save the disk space ....
set str_isxp=Note:The last executable Konakt 5 is v5.3.1 under Windows XP
set str_generalvst64=Genral Path for 64-bit VST
set str_generalvst32=Genral Path for 32-bit VST
:install
reg add "hkcu\Software\Sysinternals\Junction" /v EulaAccepted /t REG_DWORD /d 1 /f
reg add "hkcu\Software\Sysinternals\Movefile" /v EulaAccepted /t REG_DWORD /d 1 /f
call :testjunc "." "junctest"
set localjunc=%jret%
call :testjunc "%CommonProgramFiles%" "junctest"
set commonjunc=%jret%
call :testjunc "%commonx86%" "junctest"
set commonjuncx86=%jret%
if %commonjunc%==fail set str_install_title=%str_nontfs%
if %commonjuncx86%==fail set str_install_title=%str_nontfs%
set qupdate=no
set xpremark=
if "%k5vst32xpflag%"=="XP" set xpremark= (%str_isxp%)
call :qsel "%str_install_title%" "%str_install%%xpremark%" "%str_uninstall%" "%str_readme%" "%str_reglib%" "%str_great_uninstall%" "%str_uhelper%"
if %choi%==2 call :uninstall quit
if %choi%==3 goto readme
if %choi%==4 goto regtool
if %choi%==5 call :uninstall pack
if %choi%==6 call :update
goto dosetup
:getpaths
if not "%vstpath%"=="" goto :eof
set /a idx=0
call :fillvstpaths "?" "!str_manualpath!" add
FOR /F "%skip% tokens=2*" %%i IN ('@reg query "%lms%\VST" /v VSTPluginsPath') DO (
set sysvstpath=%%j%
)
FOR /F "%skip% tokens=2*" %%i IN ('@reg query "hklm\SOFTWARE\Wow6432Node\VST" /v VSTPluginsPath') DO (
call :fillvstpaths "%%j%" "!str_sysvstpath!" md
)
FOR /F "%skip% tokens=2*" %%i IN ('@reg query "hklm\SOFTWARE\VST" /v VSTPluginsPath') DO (
call :fillvstpaths "%%j%" "!str_sysvstpath!" md
)
FOR /F "%skip% tokens=2*" %%i IN ('@reg query "hklm\SOFTWARE\Native Instruments\Kontakt HD Edition" /v InstallVSTDir') DO (
call :fillvstpaths "%%j%" "Kontakt HD Edition" md
)
FOR /F "%skip% tokens=2*" %%i IN ('@reg query "hkcu\SOFTWARE\Native Instruments\Kontakt" /v InstallVSTDir') DO (
call :fillvstpaths "%%j%" "Kontakt" kontakt
)
FOR /F "%skip% tokens=2*" %%i IN ('@reg query "%lms%\Native Instruments\Kontakt2" /v InstallVSTDir') DO (
call :fillvstpaths "%%j%" "Kontakt 2" kontakt
)
FOR /F "%skip% tokens=2*" %%i IN ('@reg query "%lms%\Native Instruments\Kontakt3" /v InstallVSTDir') DO (
call :fillvstpaths "%%j%" "Kontakt 3" kontakt
)
FOR /F "%skip% tokens=2*" %%i IN ('@reg query "hklm\SOFTWARE\Native Instruments\Kontakt 4" /v InstallVSTDir') DO (
call :fillvstpaths "%%j%" "Kontakt 4" kontakt
)
FOR /F "%skip% tokens=2*" %%i IN ('@reg query "hklm\SOFTWARE\Native Instruments\Kontakt 5" /v InstallVSTDir') DO (
call :fillvstpaths "%%j%" "Kontakt 5" kontakt
)
FOR /F "%skip% tokens=2*" %%i IN ('@reg query "hklm\SOFTWARE\Native Instruments\Kontakt Application" /v InstallVSTDir') DO (
call :fillvstpaths "%%j%" "Kontakt Application/6" kontakt
)
FOR %%i in (Z,Y,X,W,V,U,T,S,R,Q,P,O,N,M,L,K,J,I,H,G,F,E,D,C) do (
call :fillvstpaths "%%i:\Program Files\Steinberg\VstPlugins" "%str_autosearch%" vst
)
FOR %%i in (Z,Y,X,W,V,U,T,S,R,Q,P,O,N,M,L,K,J,I,H,G,F,E,D,C) do (
call :fillvstpaths "%%i:\Program Files (x86)\Steinberg\VstPlugins" "%str_autosearch%" vst
)
FOR %%i in (Z,Y,X,W,V,U,T,S,R,Q,P,O,N,M,L,K,J,I,H,G,F,E,D,C) do (
call :fillvstpaths "%%i:\Program Files (x86)\Common Files\Steinberg\VST2" "%str_autosearch%" vst
)
FOR %%i in (Z,Y,X,W,V,U,T,S,R,Q,P,O,N,M,L,K,J,I,H,G,F,E,D,C) do (
call :fillvstpaths "%%i:\Program Files\Common Files\Steinberg\VST2" "%str_autosearch%" vst
)
FOR /F "%skip% tokens=2*" %%i IN ('@reg query "%lms%\Cakewalk Music Software\VSTPlugins" /v InstallDirectory') DO (
call :fillvstpaths "%%j%" "!str_by_cakewalk!" vst
)
call :fillvstpaths "%commonx86%\Steinberg\VST2" "%str_generalvst32%" md
cls
if not %idx%==1 goto promptpaths
echo %str_vstpath_notfound%
goto input_vstpath
:promptpaths
echo %str_selvstpath%
echo.
set /a i=1
set /a choi=%idx%+1
:showvstpaths
echo.
echo %i%. !vstpaths%i%! [!vstpathtypes%i%!]
set /a i+=1
if not %i%==%choi% goto showvstpaths
echo.
echo.
set /p choi=%str_choose%%idx%%str_enter%:
if not %choi% == 1 goto vstpath_selected
:input_vstpath
echo.
set /p vstpath=%str_please_input%
call :setvar vstpath %vstpath%
md "%vstpath%"
goto chk_vstpath
:vstpath_selected
set vstpath=!vstpaths%choi%!
:chk_vstpath
if not exist "%vstpath%" goto readme
if /i "%sysvstpath%" == "%vstpath%" goto setup
call :ask_yesno "%str_update_syspath%"
if %choi%==2 goto setup
reg add "%lms%\VST" /v VSTPluginsPath /t reg_sz /d "%vstpath%" /f
:setup
set choi64=3
set nok32=0
if "x86"=="%PROCESSOR_ARCHITECTURE%" goto :eof
call :qsel "%str_install64%" "%str_ovw32%" "%str_64spec%" "%str_no64%" "%str_no32%"
set choi64=%choi%
if %choi%==1 goto ovw32
if %choi%==3 goto :eof
if %choi%==4 set nok32=1
set choi64=2
set /a idx=0
call :fillvstpaths "?" "!str_manualpath!" add
FOR /F "%skip% tokens=2*" %%i IN ('@reg query "hklm\SOFTWARE\VST" /v VSTPluginsPath') DO (
call :fillvstpaths "%%j%" "!str_sysvstpath!" md
)
FOR /F "%skip% tokens=2*" %%i IN ('@reg query "hklm\SOFTWARE\Native Instruments\Kontakt HD Edition" /v InstallVST64Dir') DO (
call :fillvstpaths "%%j%" "Kontakt HD Edition" md
)
FOR /F "%skip% tokens=2*" %%i IN ('@reg query "%lms%\Native Instruments\Kontakt3" /v InstallVST64Dir') DO (
call :fillvstpaths "%%j%" "Kontakt 3" kontakt
)
FOR /F "%skip% tokens=2*" %%i IN ('@reg query "hklm\Software\Native Instruments\Kontakt 4" /v InstallVST64Dir') DO (
call :fillvstpaths "%%j%" "Kontakt 4" kontakt
)
FOR /F "%skip% tokens=2*" %%i IN ('@reg query "hklm\Software\Native Instruments\Kontakt 5" /v InstallVST64Dir') DO (
call :fillvstpaths "%%j%" "Kontakt 5" kontakt
)
FOR /F "%skip% tokens=2*" %%i IN ('@reg query "hklm\Software\Native Instruments\Kontakt Application" /v InstallVST64Dir') DO (
call :fillvstpaths "%%j%" "Kontakt Application/6" kontakt
)
FOR %%i in (Z,Y,X,W,V,U,T,S,R,Q,P,O,N,M,L,K,J,I,H,G,F,E,D,C) do (
call :fillvstpaths "%%i:\Program Files\VstPlugins" "%str_autosearch%" vst
)
call :fillvstpaths "%ProgramFiles%\VstPlugins" "%str_generalvst64%" md
cls
if not %idx%==1 goto promptpaths64
echo %str_vstpath_notfound64%
goto input_vstpath64
:promptpaths64
echo %str_selvst64path%
echo.
set /a i=1
set /a choi=%idx%+1
:showvstpaths64
echo.
echo %i%. !vstpaths%i%! [!vstpathtypes%i%!]
set /a i+=1
if not %i%==%choi% goto showvstpaths64
echo.
echo.
set /p choi=%str_choose%%idx%%str_enter%:
if not %choi% == 1 goto vstpath_selected64
:input_vstpath64
echo.
set /p vst64path=%str_please_input%
call :setvar vst64path %vst64path%
md "%vst64path%"
goto chk_vstpath64
:vstpath_selected64
set vst64path=!vstpaths%choi%!
:chk_vstpath64
if not exist "%vst64path%" goto setup
set vstpathlead=%vstpath%\
call :strlen "%vstpathlead%"
set path64lead=%vst64path%\
set path64lead=!path64lead:~0,%result%!
if /i "%path64lead%"=="%vstpathlead%" goto setup
goto :eof
:ovw32
set vst64path=%vstpath%
goto :eof
:update
if %qupdate%==yes goto retry_update
set kregroot="hklm\SOFTWARE\Native Instruments\Kontakt Application"
set uroot=%ProgramFiles%\Native Instruments\Kontakt Application
md "%uroot%"
md "%uroot%\VST32"
md "%uroot%\VST64"
echo X>"%uroot%\VST32\Kontakt.dll"
echo X>"%uroot%\VST64\Kontakt.dll"
xcopy /s /h /r /y /i "Documentation" "%uroot%\Documentation"
rd ..\Kontakt5\common\presets\effects\convolution
rd "%CommonProgramFiles%\Native Instruments\Kontakt 5\presets\effects\convolution"
rd /q /s "%CommonProgramFiles%\Native Instruments\Kontakt 5\presets\effects\convolution"
rd ..\Kontakt5\common\presets\Scripts\HD-Edition
xcopy /s /h /r /y /i ..\Kontakt5\common\presets\Scripts\HD-Edition\*.* ..\Packages\Scripts\*.*
rd /q /s ..\Kontakt5\common\presets\Scripts\HD-Edition
rd ..\Kontakt5\common\presets\Multiscripts\HD-Edition
xcopy /s /h /r /y /i ..\Kontakt5\common\presets\Multiscripts\HD-Edition\*.* ..\Packages\Multiscripts\*.*
rd /q /s ..\Kontakt5\common\presets\Multiscripts\HD-Edition
call :jc_keepack "..\Kontakt5" "common" "%CommonProgramFiles%\Native Instruments" "Kontakt 5"
call :jc_keepack "..\Kontakt5" "convolution" "%CommonProgramFiles%\Native Instruments\Kontakt 5\presets\effects" "convolution"
call :jc_keepack "..\Kontakt5" "kore2" "%CommonProgramFiles%\Native Instruments\Shared Content\Sounds" "Kontakt 5"
goto skipaax
rd "%commonx86%\Avid\Audio\Plug-Ins\Kontakt 5.aaxplugin"
rd /q /s "%commonx86%\Avid\Audio\Plug-Ins\Kontakt 5.aaxplugin"
call :jc_keepack "..\Kontakt5" "aax32" "%commonx86%\Avid\Audio\Plug-Ins" "Kontakt 5.aaxplugin"
rd "%CommonProgramFiles%\Avid\Audio\Plug-Ins\Kontakt 5.aaxplugin"
rd /q /s "%CommonProgramFiles%\Avid\Audio\Plug-Ins\Kontakt 5.aaxplugin"
call :jc_keepack "..\Kontakt5" "aax64" "%CommonProgramFiles%\Avid\Audio\Plug-Ins" "Kontakt 5.aaxplugin"
%uz% ..\Kontakt5\rtas.7z -o"%commonx86%\Digidesign\DAE\Plug-Ins\."
:skipaax
reg add %kregroot% /v InstallRTASDir /t REG_SZ /d "%uroot%" /f
reg add %kregroot% /v InstallDir /t REG_SZ /d "%uroot%" /f
reg add %kregroot% /v InstallVSTDir /t REG_SZ /d "%uroot%\VST32" /f
reg add %kregroot% /v InstallVST64Dir /t REG_SZ /d "%uroot%\VST64" /f
echo f|xcopy /h /r /y "%tools%\k4u.reg" "%uroot%\Kontakt.exe"
:retry_update
reg add "hklm\SOFTWARE\Native Instruments\Kontakt HD Edition" /v k4u /t REG_SZ /d "bat" /f
cls
echo %str_run_updater%
pause>nul
set qupdate=no
if not exist "%uroot%\Kontakt\Kontakt.exe" goto old_update
xcopy /s /h /r /y /i "%uroot%\Kontakt" "%uroot%"
:old_update
if not exist "%uroot%\Kontakt.exe" goto update_fail
set qupdate=yes
regedit /s "%uroot%\Kontakt.exe"
FOR /F "%skip% tokens=2*" %%i IN ('@reg query "hklm\SOFTWARE\Native Instruments\Kontakt HD Edition" /v k4u') DO (
set ka_result=%%j%
)
if "%ka_result%"=="reg" goto update_fail
cls
echo %str_update_ok%
if "x86"=="%PROCESSOR_ARCHITECTURE%" (set exe_dest=x86) else set exe_dest=x64
echo f|xcopy /h /r /y "%uroot%\Kontakt.exe" "..\Kontakt6\Kontakt 6 - %exe_dest%.exe"
goto skipdpm_aax32
del /q /f "..\Kontakt6\temp.7z"
%xz% "..\Kontakt6\temp.7z" "%commonx86%\Digidesign\DAE\Plug-Ins\Kontakt 5.dpm"
del /q /f "..\Kontakt5\rtas.7z"
ren "..\Kontakt5\temp.7z" "rtas.7z"
del /q /f "..\Kontakt6\temp.7z"
%xz% "..\Kontakt6\temp.7z" "%commonx86%\Avid\Audio\Plug-Ins\Kontakt.aaxplugin\*"
del /q /f "..\Kontakt6\aax32.7z"
ren "..\Kontakt6\temp.7z" "aax32.7z"
rd /q /s "..\Kontakt6\aax32"
:skipdpm_aax32
del /q /f "..\Kontakt6\temp.7z"
%xz% "..\Kontakt6\temp.7z" "%CommonProgramFiles%\Avid\Audio\Plug-Ins\Kontakt.aaxplugin\*"
del /q /f "..\Kontakt6\aax.7z"
ren "..\Kontakt6\temp.7z" "aax.7z"
rd /q /s "..\Kontakt5\aax"
del /q /f "..\Kontakt5\temp.7z"
FOR /F "%skip% tokens=2*" %%i IN ('@reg query "hklm\SOFTWARE\Native Instruments\Kontakt Application" /v InstallVSTDir') DO (
set sysvstpathbyk6=%%j%
)
%xz% "..\Kontakt6\temp.7z" "%sysvstpathbyk6%\Kontakt*.*"
del /q /f "..\Kontakt6\VST32.7z"
ren "..\Kontakt6\temp.7z" "VST32.7z"
rd /q /s "..\Kontakt6\VST32"
del /q /f "%sysvstpathbyk6%\Kontakt*.*"
set sysvstpathbyk6=x
FOR /F "%skip% tokens=2*" %%i IN ('@reg query "hklm\SOFTWARE\Native Instruments\Kontakt Application" /v InstallVST64Dir') DO (
set sysvstpathbyk6=%%j%
)
if "x"=="%sysvstpathbyk6%" goto update_x64_end
%xz% "..\Kontakt6\temp.7z" "%sysvstpathbyk6%\Kontakt*.*"
del /q /f "..\Kontakt6\VST64.7z"
ren "..\Kontakt6\temp.7z" "VST64.7z"
rd /q /s "..\Kontakt6\VST64"
del /q /f "%sysvstpathbyk6%\Kontakt*.*"
:update_x64_end
call :recycle4 "%CommonProgramFiles%\Native Instruments\Shared Content\Sounds" "Kontakt 5" "..\Kontakt5" "Kore2"
call :recycle4 "%CommonProgramFiles%\Native Instruments\Kontakt 5\presets\effects" "convolution" "..\Kontakt5" "convolution"
call :recycle4 "%CommonProgramFiles%\Native Instruments" "Kontakt 5" "..\Kontakt5" "common"
del /q /f ".\temp.7z"
rd /q /s "%uroot%\Documentation\License Agreement"
del /q /f "%uroot%\Documentation\Readme.txt"
xcopy /s /h /r /y /i "%uroot%\Documentation" "Documentation"
rd /q /s "%uroot%"
cls
echo %str_must_reinstall%
pause>nul
goto :eof
:update_fail
cls
call :ask_yesno "%str_update_fail%"
if %choi%==1 goto update
rd /q /s "%uroot%"
call :exit false true
goto :eof
:dosetup
call :getpaths
cd /d "%proot%"
call :ask_yesno "%str_clean%"
if %choi% == 1 call :uninstall return
call :ask_yesno "%str_ask_rtas%"
if %choi% == 2 goto end_rtas
%uz% ..\Kontakt3\rtas.7z -o"%commonx86%\Digidesign\DAE\Plug-Ins\."
%uz% ..\Kontakt4\rtas.7z -o"%commonx86%\Digidesign\DAE\Plug-Ins\."
%uz% ..\Kontakt5\rtas.7z -o"%commonx86%\Digidesign\DAE\Plug-Ins\."
call :juncopy jc_aax32 "..\Kontakt5" "aax32" "%commonx86%\Avid\Audio\Plug-Ins" "Kontakt 5.aaxplugin"
call :juncopy jc_aax64 "..\Kontakt5" "aax64" "%CommonProgramFiles%\Avid\Audio\Plug-Ins" "Kontakt 5.aaxplugin"
call :juncopy jc_aax_k6 "..\Kontakt6" "aax" "%CommonProgramFiles%\Avid\Audio\Plug-Ins" "Kontakt.aaxplugin"
:end_rtas
call :ask_yesno "%str_ask_k12%"
set k12_needed=false
if %choi% == 2 goto end_k12
set k12_needed=true
call :juncopy jc_k12 "." "Kontakt 1-2" "%vstpath%" "Kontakt 1-2"
:end_k12
call :juncopy jc_sc "..\SymphonicChoirs" "SymphonicChoirs" "%vstpath%" "SymphonicChoirs"
%uz% system32.7z -o"%sys32%"
%uz% ..\Kontakt3\default.7z -o"%USERPROFILE%\Local Settings\Application Data\Native Instruments\Kontakt 3\default"
rd ..\Kontakt3\common\presets\effects\convolution
if not exist "%USERPROFILE%\Local Settings\Application Data\Native Instruments\Kontakt 4\Db" %uz% ..\Kontakt5\Db.7z -o"%USERPROFILE%\Local Settings\Application Data\Native Instruments\Kontakt 4\Db"
if not exist "%USERPROFILE%\Local Settings\Application Data\Native Instruments\Kontakt 5\Db" %uz% ..\Kontakt5\Db.7z -o"%USERPROFILE%\Local Settings\Application Data\Native Instruments\Kontakt 5\Db"
%uz% ..\Kontakt4\default.7z -o"%USERPROFILE%\Local Settings\Application Data\Native Instruments\Kontakt 4\default"
%uz% ..\Kontakt5\default.7z -o"%USERPROFILE%\Local Settings\Application Data\Native Instruments\Kontakt 5\default"
%uz% ..\Kontakt6\default.7z -o"%USERPROFILE%\Local Settings\Application Data\Native Instruments\Kontakt\default"
:native_access
md "%ProgramFiles%\Native Instruments"
md "%ProgramFiles%\Native Instruments\Native Access"
copy /y "%tools%\AddLibrary.exe" "%ProgramFiles%\Native Instruments\Native Access\AddLibrary.exe"
copy /y "%tools%\NativeAccess.xml" "%ProgramFiles%\Native Instruments\Native Access\NativeAccess.xml"
reg add "hkcu\SOFTWARE\Native Instruments\Native Access" /v AddLibraryPath /t REG_SZ /d "%ProgramFiles%\Native Instruments\Native Access\AddLibrary.exe" /f
Reg Add "HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /v "%COMMONPROGRAMFILES%\Native Instruments\Kontakt 5\Add Library.exe" /d "RUNASADMIN" /F >Nul
Reg Add "HKEY_CURRENT_USER\Software\Native Instruments\ALSupport" /v "ExecutablePath" /d "%COMMONPROGRAMFILES%\Native Instruments\Kontakt 5\Add Library.exe" /F >Nul
Reg Add "HKEY_CURRENT_USER\Software\Native Instruments\AddLibSupport" /v "ExecutablePath" /d "%COMMONPROGRAMFILES%\Native Instruments\Kontakt 5\Add Library.exe" /F >Nul
rd ..\Kontakt4\common\presets\effects\convolution
rd ..\Kontakt5\common\presets\effects\convolution
rd ..\Kontakt\common\presets\effects\convolution
if %localjunc%==ok goto safe_conv
call :jc_unpack jc_k3common "..\Kontakt3" "common" "%commonx86%\Native Instruments" "Kontakt 3"
call :jc_unpack jc_k45common "..\Kontakt5" "common" "%CommonProgramFiles%\Native Instruments" "Kontakt 5"
call :jc_unpack jc_k45common "..\Kontakt5" "common" "%CommonProgramFiles%\Native Instruments" "Kontakt 4"
call :jc_unpack jc_k45common "..\Kontakt5" "common" "%CommonProgramFiles%\Native Instruments" "Kontakt"
md "%iroot%\Kontakt5\common\presets\Scripts\HD-Edition"
xcopy /s /h /r /y /i "%iroot%\Packages\Scripts\*.*" "%iroot%\Kontakt5\common\presets\Scripts\HD-Edition\*.*"
md "%iroot%\Kontakt5\common\presets\Multiscripts\HD-Edition"
xcopy /s /h /r /y /i "%iroot%\Packages\Multiscripts\*.*" "%iroot%\Kontakt5\common\presets\Multiscripts\HD-Edition\*.*"
goto common_end
:safe_conv
call :juncopy jc_k3common "..\Kontakt3" "common" "%commonx86%\Native Instruments" "Kontakt 3"
call :juncopy jc_k45common "..\Kontakt5" "common" "%CommonProgramFiles%\Native Instruments" "Kontakt 5"
call :juncopy jc_k45common "..\Kontakt5" "common" "%CommonProgramFiles%\Native Instruments" "Kontakt 4"
call :juncopy jc_k45common "..\Kontakt5" "common" "%CommonProgramFiles%\Native Instruments" "Kontakt"
%jd% "%iroot%\Kontakt5\common\presets\Scripts\HD-Edition" "%iroot%\Packages\Scripts"
%jd% "%iroot%\Kontakt5\common\presets\Multiscripts\HD-Edition" "%iroot%\Packages\Multiscripts"
:common_end
if %choi64%==2 goto vst3264
if %choi64%==1 goto vst64
:vst32
call :juncopy jc_k3vst "..\Kontakt3" "VST32" "%vstpath%" "Kontakt 3.5"
call :pacopy jc_k3vst64 "..\Kontakt3" "VST64"
call :juncopy jc_k4vst "..\Kontakt4" "VST32" "%vstpath%" "Kontakt 4"
call :pacopy jc_k4vst64 "..\Kontakt4" "VST64"
call :juncopy jc_k5vst%k5vst32xpflag% "..\Kontakt5" "VST32%k5vst32xpflag%" "%vstpath%" "Kontakt 5"
call :pacopy jc_k5vst64 "..\Kontakt5" "VST64"
call :juncopy jc_k6vst "..\Kontakt6" "VST32" "%vstpath%" "Kontakt 6"
call :pacopy jc_k6vst64 "..\Kontakt6" "VST64"
goto vst3264_end
:vst64
call :pacopy jc_k3vst "..\Kontakt3" "VST32"
call :juncopy jc_k3vst64 "..\Kontakt3" "VST64" "%vst64path%" "Kontakt 3.5"
call :pacopy jc_k4vst "..\Kontakt4" "VST32"
call :juncopy jc_k4vst64 "..\Kontakt4" "VST64" "%vst64path%" "Kontakt 4"
call :pacopy jc_k5vst "..\Kontakt5" "VST32"
call :juncopy jc_k5vst64 "..\Kontakt5" "VST64" "%vst64path%" "Kontakt 5"
call :pacopy jc_k6vst "..\Kontakt6" "VST32"
call :juncopy jc_k6vst64 "..\Kontakt6" "VST64" "%vst64path%" "Kontakt 6"
goto vst3264_end
:vst3264
if %nok32%==1 goto vst64n32
call :juncopy jc_k3vst "..\Kontakt3" "VST32" "%vstpath%" "Kontakt 3.5"
call :juncopy jc_k4vst "..\Kontakt4" "VST32" "%vstpath%" "Kontakt 4"
call :juncopy jc_k5vst%k5vst32xpflag% "..\Kontakt5" "VST32%k5vst32xpflag%" "%vstpath%" "Kontakt 5"
call :juncopy jc_k6vst "..\Kontakt6" "VST32" "%vstpath%" "Kontakt 6"
:vst64n32
call :juncopy jc_k3vst64 "..\Kontakt3" "VST64" "%vst64path%" "Kontakt 3.5"
call :juncopy jc_k4vst64 "..\Kontakt4" "VST64" "%vst64path%" "Kontakt 4"
call :juncopy jc_k5vst64 "..\Kontakt5" "VST64" "%vst64path%" "Kontakt 5"
call :juncopy jc_k6vst64 "..\Kontakt6" "VST64" "%vst64path%" "Kontakt 6"
:vst3264_end
REM call :ask_yesno "%str_intro_old_names%"
set choi=2
if %choi% == 2 goto share_convolution
md "%vstpath%\Kontakt ON"
copy /y "%vstpath%\Kontakt 1-2\Kontakt 153.dll" "%vstpath%\Kontakt ON\Kontakt.dll"
copy /y "%vstpath%\Kontakt 1-2\Kontakt 201.dll" "%vstpath%\Kontakt ON\Kontakt 2.01.dll"
copy /y "%vstpath%\Kontakt 1-2\Kontakt 211.dll" "%vstpath%\Kontakt ON\Kontakt 2.11.dll"
copy /y "%vstpath%\Kontakt 1-2\Kontakt 223.dll" "%vstpath%\Kontakt ON\Kontakt 2.23.dll"
:share_convolution
if %commonjunc%==ok goto shareconv
call :ask_yesno "%str_share_convolution%"
if %choi% == 2 goto end_conv3
:shareconv
rd ..\Kontakt3\common\presets\effects\convolution
rd "%commonx86%\Native Instruments\Kontakt 3\presets\effects\convolution"
rd /q /s "%commonx86%\Native Instruments\Kontakt 3\presets\effects\convolution"
%jd% "%commonx86%\Native Instruments\Kontakt 3\presets\effects\convolution" "..\Kontakt2\presets\effects\convolution"
if exist "%commonx86%\Native Instruments\Kontakt 3\presets\effects\convolution" goto end_conv3
xcopy /s /h /r /y /i "..\Kontakt2\presets\effects\convolution" "%commonx86%\Native Instruments\Kontakt 3\presets\effects\convolution"
:end_conv3
if %commonjunc%==ok goto shareconv4
call :ask_yesno "%str_convolution4%"
if %choi% == 2 goto end_conv4
:shareconv4
call :juncopy jc_k45conv "..\Kontakt5" "convolution" "%CommonProgramFiles%\Native Instruments\Kontakt 5\presets\effects" "convolution"
call :juncopy jc_k45conv "..\Kontakt5" "convolution" "%CommonProgramFiles%\Native Instruments\Kontakt 4\presets\effects" "convolution"
call :juncopy jc_k45conv "..\Kontakt5" "convolution" "%CommonProgramFiles%\Native Instruments\Kontakt\presets\effects" "convolution"
cd /d "%CommonProgramFiles%\Native Instruments\Kontakt 5\presets\effects\convolution"
call :cnvtchall
cd /d "%CommonProgramFiles%\Native Instruments\Kontakt 4\presets\effects\convolution"
call :cnvtchall
cd /d "%CommonProgramFiles%\Native Instruments\Kontakt\presets\effects\convolution"
call :cnvtchall
goto end_conv4
:cnvtchall
call :cnvtch "01 Real Rooms"
call :cnvtch "02 Digital Reverbs"
call :cnvtch "03 Real Plate Reverbs"
call :cnvtch "04 Vocal Reverbs"
call :cnvtch "05 Drum Reverbs"
call :cnvtch "06 Drum Filters"
call :cnvtch "07 Piano Reverbs"
call :cnvtch "08 Tiny Rooms"
call :cnvtch "09 Medium Rooms"
call :cnvtch "10 Big Rooms"
call :cnvtch "11 Unsusual Reverbs"
call :cnvtch "12 Reverse Reverbs"
call :cnvtch "13 Plate Reverbs"
call :cnvtch "14 Surround Reverbs"
call :cnvtch "15 Special Effects"
call :cnvtch "16 Household"
call :cnvtch "17 Cabinets"
call :cnvtch "18 Instruments"
goto :eof
:end_conv4
cd /d "%proot%"
if %commonjunc%==ok goto kore2
call :ask_yesno "%str_kore2%"
if %choi% == 2 goto end_kore2
:kore2
call :juncopy jc_kore "..\Kontakt5" "kore5" "%CommonProgramFiles%\Native Instruments\Shared Content\Sounds" "Kontakt 5"
:end_kore2
md "%CommonProgramFiles%\Native Instruments\Service Center"
echo f|xcopy /h /r /y "%tools%\Kontakt 5.xml" "%CommonProgramFiles%\Native Instruments\Service Center\Kontakt 5.xml"
echo f|xcopy /h /r /y "%tools%\ProductHints.xml" "%CommonProgramFiles%\Native Instruments\Service Center\ProductHints.xml"
regedit /s "%tools%\Kontakt.reg"
regedit /s "%tools%\sc.reg"
reg add "hklm\SOFTWARE\Native Instruments\Kontakt HD Edition" /v InstallVSTDIR /t reg_sz /d "%vstpath%" /f
reg add "hkcu\SOFTWARE\Native Instruments\Kontakt" /v InstallDIR /t reg_sz /d "%iroot%\Kontakt153" /f
reg add "hkcu\SOFTWARE\Native Instruments\Kontakt" /v InstallVSTDIR /t reg_sz /d "%vstpath%\Kontakt 1-2" /f
reg add "%lms%\Native Instruments\Kontakt2" /v InstallDir /t reg_sz /d "%iroot%\Kontakt2" /f
reg add "%lms%\Native Instruments\Kontakt2" /v InstallVSTDIR /t reg_sz /d "%vstpath%\Kontakt 1-2" /f
reg add "%lms%\Native Instruments\Kontakt2" /v SNO /t reg_sz /d "28997-70793-13884-88904-77409" /f
reg add "%lms%\Native Instruments\Kontakt3" /v InstallDir /t reg_sz /d "%iroot%\kontakt3" /f
reg add "%lms%\Native Instruments\Kontakt3" /v InstallVSTDIR /t reg_sz /d "%vstpath%\Kontakt 3.5" /f
reg add "%lms%\Native Instruments\Kontakt3" /v InstallRTASDir /t reg_sz /d "%commonx86%\Digidesign\DAE\Plug-Ins" /f
reg add "hklm\Software\Native Instruments\Kontakt 4" /v InstallRTASDir /t REG_SZ /d "%commonx86%\Digidesign\DAE\Plug-Ins" /f
reg add "hklm\Software\Native Instruments\Kontakt 4" /v InstallDir /t REG_SZ /d "%iroot%\kontakt4" /f
reg add "hklm\Software\Native Instruments\Kontakt 4" /v InstallVSTDir /t REG_SZ /d "%vstpath%\Kontakt 4" /f
reg add "hklm\Software\Native Instruments\Kontakt 5" /v InstallAAXDir /t REG_SZ /d "%commonx86%\Avid\Audio\Plug-Ins" /f
reg add "hklm\Software\Native Instruments\Kontakt 5" /v InstallRTASDir /t REG_SZ /d "%commonx86%\Digidesign\DAE\Plug-Ins" /f
reg add "hklm\Software\Native Instruments\Kontakt 5" /v InstallDir /t REG_SZ /d "%iroot%\kontakt5" /f
reg add "hklm\Software\Native Instruments\Kontakt 5" /v InstallVSTDir /t REG_SZ /d "%vstpath%\Kontakt 5" /f
reg add "hklm\Software\Native Instruments\Kontakt Application" /v InstallAAX64Dir /t REG_SZ /d "%CommonProgramFiles%\Avid\Audio\Plug-Ins" /f
reg add "hklm\Software\Native Instruments\Kontakt Application" /v InstallDir /t REG_SZ /d "%iroot%\kontakt6" /f
reg add "hklm\Software\Native Instruments\Kontakt Application" /v InstallVSTDir /t REG_SZ /d "%vstpath%\Kontakt 6" /f
reg add "%lms%\East West\WordBuilder" /v Serial /t reg_sz /d "WBAMA-EF162-MFXD8-B553P-33UIF" /f
reg add "%lms%\East West\WordBuilder" /v Location /t reg_sz /d "%iroot%\SymphonicChoirs\WordBuilder\\" /f
reg add "%lms%\Cakewalk Music Software\MIDI Filters\{CBFF562F-0D67-4B5D-B0E0-9E92A71049FE}" /f
reg add "hklm\Software\East West\WordBuilder" /v Serial /t reg_sz /d "WBAMA-EF162-MFXD8-B553P-33UIF" /f
reg add "hklm\Software\East West\WordBuilder" /v Location /t reg_sz /d "%iroot%\SymphonicChoirs\WordBuilder\\" /f
reg add "hklm\Software\Cakewalk Music Software\MIDI Filters\{CBFF562F-0D67-4B5D-B0E0-9E92A71049FE}" /f