-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathInstaller Script by Nifer.cmd
3450 lines (3303 loc) · 182 KB
/
Installer Script by Nifer.cmd
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
color 0C
@C:\Windows\System32\chcp 28591 > nul
@C:\Windows\System32\mode con cols=105 lines=35
@Title Start as Admin
:: function for colored lines using ascii
@Echo Off & Setlocal DisableDelayedExpansion
::: { Creates variable /AE = Ascii-27 escape code.
::: - %/AE% can be used with and without DelayedExpansion.
For /F %%a in ('echo prompt $E ^| cmd')do set "/AE=%%a"
::: }
(Set \n=^^^
%=Newline DNR=%
)
::: / Color Print Macro -
::: Usage: %Print%{RRR;GGG;BBB}text to output
::: \n at the end of the string echo's a new line
::: valid range for RGB values: 0 - 255
Set Print=For %%n in (1 2)Do If %%n==2 (%\n%
For /F "Delims=" %%G in ("!Args!")Do (%\n%
For /F "Tokens=1 Delims={}" %%i in ("%%G")Do Set "Output=%/AE%[0m%/AE%[38;2;%%im!Args:{%%~i}=!"%\n%
^< Nul set /P "=!Output:\n=!%/AE%[0m"%\n%
If "!Output:~-2!"=="\n" (Echo/^&Endlocal)Else (Endlocal)%\n%
)%\n%
)Else Setlocal EnableDelayedExpansion ^& Set Args=
::: / Erase Macro -
::: Usage: %Erase%{string of the length to be erased}
Set Erase=For %%n in (1 2)Do If %%n==2 (%\n%
For /F "Tokens=1 Delims={}" %%G in ("!Args!")Do (%\n%
Set "Nul=!Args:{%%G}=%%G!"%\n%
For /L %%# in (0 1 100) Do (If Not "!Nul:~%%#,1!"=="" ^< Nul set /P "=%/AE%[D%/AE%[K")%\n%
)%\n%
Endlocal%\n%
)Else Setlocal EnableDelayedExpansion ^& Set Args=
:: Checking for admin rights
::------------------------------------------
REM --> Checking Permissions
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
REM --> Error: No admistrative privlages
if '%errorlevel%' NEQ '0' (
REM --> Checking administrative privileges
goto UACPrompt
) else ( goto gotAdmin )
:UACPrompt
@echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
set params = %*:"="
echo UAC.ShellExecute "%~s0", "%params%", "", "runas", 1 >> "%temp%\getadmin.vbs"
"%temp%\getadmin.vbs"
exit /B
:gotAdmin
if exist "%temp%\getadmin.vbs" ( del "%temp%\getadmin.vbs" )
pushd "%CD%"
CD /D "%~dp0"
set wget="%~dp0Installer-files\Installer-Scripts\wget.exe"
@cls
GOTO initial-extract-check
:initial-extract-check
if not exist ".\Installer-files\" GOTO initial-extract-check-error
GOTO curl-check
:initial-extract-check-error
cls
color 0C
echo/
%Print%{231;72;86} Error: Script contents not found. \n
%Print%{0;185;255} Please ensure script contents are properly \n
%Print%{0;185;255} extracted from it's zipped file. \n
%Print%{231;72;86}\n
%Print%{231;72;86}To extract files: Right click on "Nifer Installer Script.rar" and press "Extract files" \n
%Print%{231;72;86} Choose a destination to extract the files to, or extract to the current directory. \n
%Print%{231;72;86}\n
%Print%{231;72;86}If you have WinRAR or 7zip installed, simply extract the zipped contents. \n
pause
:curl-check
:: checks system for curl. This is not needed for the latest windows versions... however if a user doesn't have curl for some reason, it will copy curl into system32 to work in env paths.
:: the curl.exe given apart of this download is from and signed by microsoft.
if not exist "C:\Windows\System32\curl.exe" xcopy "%~dp0Installer-files\Installer-Scripts\curl.exe" "C:\Windows\System32\curl.exe*" /I /Q /Y /F
GOTO set-variables
:set-variables
:: Sets variables used throughout the script.
set jrepl="%~dp0Installer-files\Installer-Scripts\jrepl.bat"
set mediafire="%~dp0Installer-files\Installer-Scripts\MediaFireDownloader.exe"
set wget="%~dp0Installer-files\Installer-Scripts\wget.exe"
set UnRAR="%~dp0Installer-files\Installer-Scripts\UnRAR.exe"
:: Get's current date and time to use later for any logging files (for any potential errors)
set _my_datetime=%date%_%time%
set _my_datetime=%_my_datetime: =_%
set _my_datetime=%_my_datetime::=%
set _my_datetime=%_my_datetime:/=_%
set _my_datetime=%_my_datetime:.=_%
:: Get's latest release tag from github repo, and compares with current version.
for /f "tokens=1,* delims=:" %%A in ('curl -kLs https://api.github.com/repos/itsnifer/Nifer-Installer-Script/releases/latest ^| find "tag_name"') do (set ScriptVersionGit=%%B)
set ScriptVersionGit=%ScriptVersionGit:",=%
set ScriptVersionGit=%ScriptVersionGit:"=%
set ScriptVersionGit=%ScriptVersionGit:v=%
set ScriptVersionGit=%ScriptVersionGit: =%
set ScriptVersion=v7.1.0
set ScriptVersion2=%ScriptVersion:v=%
set ScriptVersionDisplay=Version - %ScriptVersion2%
GOTO check-auto-up
:: 1=yes, 0=default, 2=no
:check-auto-up
if not exist ".\Installer-files\Installer-Scripts\Settings\auto-update*.txt" break>".\Installer-files\Installer-Scripts\Settings\auto-update-0.txt"
if exist ".\Installer-files\Installer-Scripts\Settings\auto-update-1.txt" GOTO check-auto-1
if exist ".\Installer-files\Installer-Scripts\Settings\auto-update-0.txt" GOTO check-auto-0
if exist ".\Installer-files\Installer-Scripts\Settings\auto-update-2.txt" GOTO check-auto-1
:check-auto-0
cls
color 0C
echo/
%Print%{231;72;86} Auto Updating is Not Enabled. \n
%Print%{0;185;255} Note: Auto Updating will only check for updates \n
%Print%{0;185;255} when the script is running. \n
%Print%{231;72;86}\n
%Print%{231;72;86} 1) Enable Auto Updating \n
%Print%{231;72;86}\n
%Print%{231;72;86} 2) Disable Auto Updating \n
echo/
C:\Windows\System32\CHOICE /C 12 /M "Type the number (1-2) of what option you want." /N
IF ERRORLEVEL 2 REN ".\Installer-files\Installer-Scripts\Settings\auto-update-0.txt" "auto-update-2.txt" 2>nul & GOTO Main
IF ERRORLEVEL 1 REN ".\Installer-files\Installer-Scripts\Settings\auto-update-0.txt" "auto-update-1.txt" 2>nul & GOTO check-auto-1
:check-auto-1
if %ScriptVersion2% LSS %ScriptVersionGit% GOTO check-auto-2
if %ScriptVersion2% EQU %ScriptVersionGit% echo Script is up to date. & timeout /T 3 /nobreak >nul & GOTO Main
if %ScriptVersion2% GTR %ScriptVersionGit% GOTO Main
GOTO Main
:check-auto-2
if exist ".\Installer-files\Installer-Scripts\Settings\auto-update-1.txt" GOTO check-auto-3
cls
color 0C
echo/
%Print%{231;72;86} Current Script Version is:
%Print%{244;255;0}%ScriptVersion2% \n
%Print%{231;72;86} Latest Script Version is:
%Print%{244;255;0}%ScriptVersionGit% \n
%Print%{231;72;86}\n
%Print%{231;72;86} 1) Update to the Latest Version \n
%Print%{231;72;86}\n
%Print%{231;72;86} 2) Skip this update \n
echo/
C:\Windows\System32\CHOICE /C 12 /M "Type the number (1-2) of what option you want." /N
IF ERRORLEVEL 2 GOTO Main
IF ERRORLEVEL 1 GOTO check-auto-3
:check-auto-3
if not exist "%~dp0Installer-files\Nifer Installer Script\" mkdir "%~dp0Installer-files\Nifer Installer Script"
cd /d "%~dp0Installer-files\Nifer Installer Script"
cls
color 0C
%Print%{231;72;86} Getting Latest Version \n
echo/
for /f "tokens=1,* delims=:" %%A in ('curl -kLs https://api.github.com/repos/itsnifer/Nifer-Installer-Script/releases/latest ^| find "browser_download_url"') do (curl -kOL %%B)
echo/
%Print%{231;72;86} Applying Update \n
FOR %%A in ("*.rar") do (set "updateextract=%%A")
if defined updateextract %UnRAR% x -u -y -inul "%updateextract%"
if defined updateextract del "%updateextract%" 2>nul
Start "" "%~dp0Installer-files\Nifer Installer Script\Installer-files\Installer-Scripts\Update.cmd"
@exit
::------------------------------------------
:Main
cd /d "%~dp0"
if defined MainPluginSelection set MainPluginSelection=
if defined MainMagixSelection set MainMagixSelection=
@Title Installer Script by Nifer
cls
color 0C
echo/
%Print%{231;72;86} Installer Script by Nifer \n
%Print%{231;72;86} Patch and Script by Nifer \n
%Print%{244;255;0} %ScriptVersionDisplay% \n
%Print%{231;72;86} Twitter - @NiferEdits \n
%Print%{231;72;86}\n
%Print%{231;72;86} 1) Magix Vegas Software \n
%Print%{231;72;86}\n
%Print%{231;72;86} 2) 3rd Party Plugins \n
%Print%{231;72;86}\n
%Print%{231;72;86} 3) Settings \n
%Print%{231;72;86}\n
%Print%{231;72;86}\n
%Print%{0;185;255} 4) Donate to support (Paypal) \n
%Print%{231;72;86}\n
%Print%{255;112;0} 5) Quit \n
echo/
C:\Windows\System32\CHOICE /C 12345 /M "Type the number (1-5) of what option you want." /N
cls
echo/
IF ERRORLEVEL 5 GOTO Quit
IF ERRORLEVEL 4 GOTO Donate
IF ERRORLEVEL 3 GOTO 3
IF ERRORLEVEL 2 set MainPluginSelection=1 & GOTO 2
IF ERRORLEVEL 1 set MainMagixSelection=1 & GOTO 2
echo/
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:2
color 0c
if not defined MainPluginSelection set MainPluginSelection=0
if not defined MainMagixSelection set MainMagixSelection=0
if %MainMagixSelection% EQU 1 Echo ******************************************************************
if %MainMagixSelection% EQU 1 Echo *** (Option #1) MAGIX Vegas Software ***
if %MainMagixSelection% EQU 1 Echo ******************************************************************
if %MainMagixSelection% EQU 1 echo/
if %MainPluginSelection% EQU 1 Echo *****************************************************************
if %MainPluginSelection% EQU 1 Echo *** (Option #2) 3rd Party Plugins for OFX ***
if %MainPluginSelection% EQU 1 Echo *****************************************************************
if %MainPluginSelection% EQU 1 echo/
GOTO SelectPlugins
:SelectPlugins
cd /d "%~dp0"
color 0C
if not exist ".\Installer-files\Installer-Scripts\Settings\System-Check*.txt" break> ".\Installer-files\Installer-Scripts\Settings\System-Check-1.txt"
if exist ".\Installer-files\Installer-Scripts\Settings\System-Check-0.txt" set getOptionPlugSkip=1
if exist ".\Installer-files\Installer-Scripts\Settings\System-Check-1.txt" set getOptionPlugSkip=0
if not defined getOptionPlugSkip set getOptionPlugSkip=0
GOTO Plugin-Select-Start
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:LogPlugList
:: Reg Query for all supported plugins, output to logfile3.
for /f "tokens=1,2*" %%J in ('^
reg query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall /s /d /f "Boris FX"^
') do (
if "%%J"=="DisplayName" (
::echo %%L
set plugbfxlist=%%L
echo !plugbfxlist! 2>nul | findstr /v /C:"After Effects" /C:"Adobe" /C:"Photoshop" /C:"Optics" 2>nul
) else (
set str=%%J
if "!str:~0,4!"=="HKEY" set key=%%J
)
)
for /f "tokens=1,2*" %%J in ('^
reg query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall /s /d /f "BorisFX"^
') do (
if "%%J"=="DisplayName" (
::echo %%L
set plugbfx2list=%%L
echo !plugbfx2list! 2>nul | findstr /v /C:"After Effects" /C:"Adobe" /C:"Photoshop" /C:"Optics" 2>nul
) else (
set str=%%J
if "!str:~0,4!"=="HKEY" set key=%%J
)
)
for /f "tokens=1,2*" %%J in ('^
reg query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall /s /d /f "Silhouette"^
') do (
if "%%J"=="DisplayName" (
::echo %%L
set plugbfsilolist=%%L
echo !plugbfsilolist! 2>nul
set str=%%J
if "!str:~0,4!"=="HKEY" set key=%%J
)
)
for /f "tokens=1,2*" %%J in ('^
reg query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall /s /d /f "VEGAS Pro 21.0 (Mocha VEGAS)"^
') do (
if "%%J"=="DisplayName" (
::echo %%L
set plugvpmochalist=%%L
echo !plugvpmochalist! 2>nul
) else (
set str=%%J
if "!str:~0,4!"=="HKEY" set key=%%J
)
)
for /f "tokens=1,2*" %%J in ('^
reg query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall /s /d /f "Ignite"^
') do (
if "%%J"=="DisplayName" (
::echo %%L
set plugfxhlist=%%L
echo !plugfxhlist! 2>nul
) else (
set str=%%J
if "!str:~0,4!"=="HKEY" set key=%%J
)
)
for /f "tokens=1,2*" %%J in ('^
reg query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall /s /d /f "Magic Bullet Suite"^
') do (
if "%%J"=="DisplayName" (
::echo %%L
set plugmbllist=%%L
echo !plugmbllist! 2>nul
) else (
set str=%%J
if "!str:~0,4!"=="HKEY" set key=%%J
)
)
for /f "tokens=1,2*" %%J in ('^
reg query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall /s /d /f "Universe"^
') do (
if "%%J"=="DisplayName" (
::echo %%L
set plugunilist=%%L
echo !plugunilist! 2>nul
) else (
set str=%%J
if "!str:~0,4!"=="HKEY" set key=%%J
)
)
for /f "tokens=1,2*" %%J in ('^
reg query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall /s /d /f "NewBlue Titler Pro 7 Ultimate"^
') do (
if "%%J"=="DisplayName" (
::echo %%L
set plugnbxtitlerlist=%%L
echo !plugnbxtitlerlist! 2>nul
) else (
set str=%%J
if "!str:~0,4!"=="HKEY" set key=%%J
)
)
for /f "tokens=1,2*" %%J in ('^
reg query HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall /s /d /f "NewBlue TotalFX 7"^
') do (
if "%%J"=="DisplayName" (
::echo %%L
set plugnbxtfxlist=%%L
echo !plugnbxtfxlist! 2>nul
) else (
set str=%%J
if "!str:~0,4!"=="HKEY" set key=%%J
)
)
for /f "tokens=1,2*" %%J in ('^
reg query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall /s /d /f "RE:Vision Effections Fusion"^
') do (
if "%%J"=="DisplayName" (
::echo %%L
set plugnbxtitlerlist=%%L
echo !plugnbxtitlerlist! 2>nul
) else (
set str=%%J
if "!str:~0,4!"=="HKEY" set key=%%J
)
)
exit /b
:LogMagixList
:: Reg Query for all supported programs, output to logfilemagix.
for /f "tokens=1,2*" %%J in ('^
reg query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall /s /d /f "VEGAS Pro"^
') do (
if "%%J"=="DisplayName" (
set vpver=%%L
echo !vpver! 2>nul | findstr /v /C:"Voukoder" /C:"Mocha" 2>nul
) else (
set str=%%J
if "!str:~0,4!"=="HKEY" set key=%%J
)
)
for /f "tokens=1,2*" %%J in ('^
reg query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall /s /d /f "VEGAS Effects"^
') do (
if "%%J"=="DisplayName" (
::echo %%L
set vpeff=%%L
echo !vpeff! 2>nul
) else (
set str=%%J
if "!str:~0,4!"=="HKEY" set key=%%J
)
)
for /f "tokens=1,2*" %%J in ('^
reg query HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall /s /d /f "VEGAS Image"^
') do (
if "%%J"=="DisplayName" (
::echo %%L
set vpimg=%%L
echo !vpimg! 2>nul
) else (
set str=%%J
if "!str:~0,4!"=="HKEY" set key=%%J
)
)
exit /b
:Plugin-Select-Start
setlocal ENABLEDELAYEDEXPANSION
color 0C
if %getOptionPlugSkip% EQU 1 GOTO Plug-Select-Continue-0
echo/
echo/
echo Loading...
cd /d "%~dp0"
::Go to a call, otherwise script will crash
if %MainPluginSelection% EQU 1 GOTO PlugScan-Pre
if %MainMagixSelection% EQU 1 GOTO MagixScan-Pre
:MagixScan-Pre
SET LOGFILEMagix=".\Installer-files\Installer-Scripts\Settings\Magix-Installations-found.txt"
call :LogMagixList > %LOGFILEMagix%
GOTO Scan-Continue
:PlugScan-Pre
SET LOGFILE3=".\Installer-files\Installer-Scripts\Settings\Plug-Installations-found.txt"
call :LogPlugList > %LOGFILE3%
GOTO Scan-Continue
:Scan-Continue
cd /d "%~dp0Installer-files\Installer-Scripts\Settings"
:: Trims duplicate entries found in Magix-Installations-found.txt
if %MainMagixSelection% EQU 1 type nul>Magix-Installations-found-output.txt
if %MainMagixSelection% EQU 1 for /f "tokens=* delims=" %%g in (Magix-Installations-found.txt) do (
if %MainMagixSelection% EQU 1 findstr /ixc:"%%g" Magix-Installations-found-output.txt || >>Magix-Installations-found-output.txt echo.%%g
)
if %MainMagixSelection% EQU 1 cls
if %MainMagixSelection% EQU 1 echo/
if %MainMagixSelection% EQU 1 echo/
if %MainMagixSelection% EQU 1 echo Loading...
if %MainMagixSelection% EQU 1 setlocal enabledelayedexpansion
if %MainMagixSelection% EQU 1 set Counter=1
if %MainMagixSelection% EQU 1 for /f "tokens=* delims=" %%x in (Magix-Installations-found-output.txt) do (
if %MainMagixSelection% EQU 1 set "Line_Plug_Select_!Counter!=%%x"
if %MainMagixSelection% EQU 1 set /a Counter+=1
)
:: Trims duplicate entries found in Plug-Installations-found.txt
if %MainPluginSelection% EQU 1 type nul>Plug-Installations-found-output.txt
if %MainPluginSelection% EQU 1 for /f "tokens=* delims=" %%g in (Plug-Installations-found.txt) do (
if %MainPluginSelection% EQU 1 findstr /ixc:"%%g" Plug-Installations-found-output.txt || >>Plug-Installations-found-output.txt echo.%%g
)
if %MainPluginSelection% EQU 1 cls
if %MainPluginSelection% EQU 1 echo/
if %MainPluginSelection% EQU 1 echo/
if %MainPluginSelection% EQU 1 echo Loading...
if %MainPluginSelection% EQU 1 setlocal enabledelayedexpansion
if %MainPluginSelection% EQU 1 set Counter=1
if %MainPluginSelection% EQU 1 for /f "tokens=* delims=" %%x in (Plug-Installations-found-output.txt) do (
if %MainPluginSelection% EQU 1 set "Line_Plug_Select_!Counter!=%%x"
if %MainPluginSelection% EQU 1 set /a Counter+=1
)
:: Parses each line in Plug-Installations-found.txt to a number counter
:: sets variables for each plugin to 0, counts later when checked.
if %MainPluginSelection% EQU 1 set "cmd3=findstr /R /N "^^" Plug-Installations-found-output.txt | find /C ":""
if %MainPluginSelection% EQU 1 for /f %%U in ('!cmd3!') do set PlugNumber=%%U
if %MainMagixSelection% EQU 1 set "cmd3=findstr /R /N "^^" Magix-Installations-found-output.txt | find /C ":""
if %MainMagixSelection% EQU 1 for /f %%U in ('!cmd3!') do set PlugNumber=%%U
set PlugNumberFinal=%PlugNumber%
set getOptionsPlugCountCheck=0
set plugcountbfxsaph=0
set plugcountbfxmocha=0
set plugcountvpbfxmocha=0
set plugcountbfxcontin=0
set plugcountbfxsilho=0
set plugcountignite=0
set plugcountignitenifer=0
set plugcountmbl=0
set plugcountuni=0
set plugcountnfxtitler=0
set plugcountnfxtotal=0
set plugcountrfxeff=0
set magixcountvp=0
set magixcountvpdlm=0
set magixcountve=0
set magixcountvi=0
GOTO Plug-Select-Counter
:Plug-Select-Counter
IF %PlugNumber% EQU 0 GOTO Plug-Select-Continue-0
IF %PlugNumber% GEQ 1 GOTO Plug-Select-Loop-1
:Plug-Select-Loop-1
if %MainPluginSelection% EQU 1 if /I "!Line_Plug_Select_%PlugNumber%:~0,26!" == "Boris FX Sapphire Plug-ins" set /a plugcountbfxsaph+=1
if %MainPluginSelection% EQU 1 if /I "!Line_Plug_Select_%PlugNumber%:~0,23!" == "Boris FX Mocha Plug-ins" set /a plugcountbfxmocha+=1
if %MainPluginSelection% EQU 1 if /I "!Line_Plug_Select_%PlugNumber%:~0,28!" == "VEGAS Pro 21.0 (Mocha VEGAS)" set plugcountvpbfxmocha=1
if %MainPluginSelection% EQU 1 if /I "!Line_Plug_Select_%PlugNumber%:~0,18!" == "Boris FX Continuum" set /a plugcountbfxcontin+=1
if %MainPluginSelection% EQU 1 if /I "!Line_Plug_Select_%PlugNumber%:~0,17!" == "BorisFX Continuum" set /a plugcountbfxcontin+=1
if %MainPluginSelection% EQU 1 if /I "!Line_Plug_Select_%PlugNumber%:~0,19!" == "Boris FX Silhouette" set /a plugcountbfxsilho+=1
if %MainPluginSelection% EQU 1 if /I "!Line_Plug_Select_%PlugNumber%:~0,10!" == "Silhouette" set /a plugcountbfxsilho+=1
if %MainPluginSelection% EQU 1 if /I "!Line_Plug_Select_%PlugNumber%:~0,10!" == "Ignite Pro" set /a plugcountignite+=1
if %MainPluginSelection% EQU 1 if /I "!Line_Plug_Select_%PlugNumber%:~0,19!" == "Ignite Pro by Nifer" set /a plugcountignitenifer+=1
if %MainPluginSelection% EQU 1 if /I "!Line_Plug_Select_%PlugNumber%:~0,18!" == "Magic Bullet Suite" set /a plugcountmbl+=1
if %MainPluginSelection% EQU 1 if /I "!Line_Plug_Select_%PlugNumber%:~0,8!" == "Universe" set /a plugcountuni+=1
if %MainPluginSelection% EQU 1 if /I "!Line_Plug_Select_%PlugNumber%:~0,29!" == "NewBlue Titler Pro 7 Ultimate" set /a plugcountnfxtitler+=1
if %MainPluginSelection% EQU 1 if /I "!Line_Plug_Select_%PlugNumber%:~0,17!" == "NewBlue TotalFX 7" set /a plugcountnfxtotal+=1
if %MainPluginSelection% EQU 1 if /I "!Line_Plug_Select_%PlugNumber%:~0,20!" == "RE:Vision Effections" set /a plugcountrfxeff+=1
if %MainMagixSelection% EQU 1 if /I "!Line_Plug_Select_%PlugNumber%!" == "VEGAS Pro 22.0 " set /a magixcountvp+=1
if %MainMagixSelection% EQU 1 if /I "!Line_Plug_Select_%PlugNumber%!" == "VEGAS Pro 21.0 " set /a magixcountvp+=1
if %MainMagixSelection% EQU 1 if /I "!Line_Plug_Select_%PlugNumber%!" == "VEGAS Pro 20.0 " set /a magixcountvp+=1
if %MainMagixSelection% EQU 1 if /I "!Line_Plug_Select_%PlugNumber%!" == "VEGAS Pro 19.0 " set /a magixcountvp+=1
if %MainMagixSelection% EQU 1 if /I "!Line_Plug_Select_%PlugNumber%!" == "VEGAS Pro 18.0 " set /a magixcountvp+=1
if %MainMagixSelection% EQU 1 if /I "!Line_Plug_Select_%PlugNumber%!" == "VEGAS Pro 17.0 " set /a magixcountvp+=1
if %MainMagixSelection% EQU 1 if /I "!Line_Plug_Select_%PlugNumber%!" == "VEGAS Pro 16.0 " set /a magixcountvp+=1
if %MainMagixSelection% EQU 1 if /I "!Line_Plug_Select_%PlugNumber%!" == "VEGAS Pro 15.0 " set /a magixcountvp+=1
if %MainMagixSelection% EQU 1 if /I "!Line_Plug_Select_%PlugNumber%!" == "VEGAS Pro 14.0 " set /a magixcountvp+=1
if %MainMagixSelection% EQU 1 if /I "!Line_Plug_Select_%PlugNumber%!" == "VEGAS Pro 22.0 (Deep Learning Models) " set /a magixcountvpdlm+=1
if %MainMagixSelection% EQU 1 if /I "!Line_Plug_Select_%PlugNumber%!" == "VEGAS Pro 21.0 (Deep Learning Models) " set /a magixcountvpdlm+=1
if %MainMagixSelection% EQU 1 if /I "!Line_Plug_Select_%PlugNumber%!" == "VEGAS Pro 20.0 (Deep Learning Models) " set /a magixcountvpdlm+=1
if %MainMagixSelection% EQU 1 if /I "!Line_Plug_Select_%PlugNumber%!" == "VEGAS Pro 19.0 (Deep Learning Models) " set /a magixcountvpdlm+=1
if %MainMagixSelection% EQU 1 if /I "!Line_Plug_Select_%PlugNumber%!" == "VEGAS Pro 18.0 (Deep Learning Models) " set /a magixcountvpdlm+=1
if %MainMagixSelection% EQU 1 if /I "!Line_Plug_Select_%PlugNumber%:~0,13!" == "VEGAS Effects" set magixcountve=1
if %MainMagixSelection% EQU 1 if /I "!Line_Plug_Select_%PlugNumber%:~0,11!" == "VEGAS Image" set /a magixcountvi+=1
set /a PlugNumber-=1
GOTO Plug-Select-Counter
:Plug-Select-Continue-0
if not defined getOptionPlugSkip set getOptionPlugSkip=0
if not defined getOptionsPlugCountCheck set getOptionsPlugCountCheck=0
if not defined getOptionsMagixCountCheck set getOptionsMagixCountCheck=0
if not defined plugcountbfxsaph set plugcountbfxsaph=0
if not defined plugcountbfxmocha set plugcountbfxmocha=0
if not defined plugcountvpbfxmocha set plugcountvpbfxmocha=0
if not defined plugcountbfxcontin set plugcountbfxcontin=0
if not defined plugcountbfxsilho set plugcountbfxsilho=0
if not defined plugcountignite set plugcountignite=0
if not defined plugcountignitenifer set plugcountignitenifer=0
if not defined plugcountmbl set plugcountmbl=0
if not defined plugcountuni set plugcountuni=0
if not defined plugcountnfxtitler set plugcountnfxtitler=0
if not defined plugcountnfxtotal set plugcountnfxtotal=0
if not defined plugcountrfxeff set plugcountrfxeff=0
if not defined magixcountvp set magixcountvp=0
if not defined magixcountvpdlm set magixcountvpdlm=0
if not defined magixcountve set magixcountve=0
if not defined magixcountvi set magixcountvi=0
GOTO Plug-Select-Continue-1
:Plug-Select-Continue-1
::0=none 1=ofx 2=vegas 3=both
if %plugcountbfxmocha% EQU 0 if %plugcountvpbfxmocha% EQU 0 set mochadisplay=0
if %plugcountbfxmocha% EQU 1 if %plugcountvpbfxmocha% EQU 0 set mochadisplay=1
if %plugcountbfxmocha% EQU 0 if %plugcountvpbfxmocha% EQU 1 set mochadisplay=2
if %plugcountbfxmocha% EQU 1 if %plugcountvpbfxmocha% EQU 1 set mochadisplay=3
if defined plugcountbfxsapfinal set plugcountbfxsapfinal=0
if defined plugcountbfxmochafinal set plugcountbfxmochafinal=0
if defined plugcountbfxcontinfinal set plugcountbfxcontinfinal=0
if defined plugcountbfxsilhofinal set plugcountbfxsilhofinal=0
if defined plugcountignitefinal set plugcountignitefinal=0
if defined plugcountmblfinal set plugcountmblfinal=0
if defined plugcountunifinal set plugcountunifinal=0
if defined plugcountnfxtitlerfinal set plugcountnfxtitlerfinal=0
if defined plugcountnfxtotalfinal set plugcountnfxtotalfinal=0
if defined plugcountrfxefffinal set plugcountrfxefffinal=0
if defined magixcountvpfinal set magixcountvpfinal=0
if defined magixcountvpdlmfinal set magixcountvpdlmfinal=0
if defined magixcountvefinal set magixcountvefinal=0
if defined magixcountvifinal set magixcountvifinal=0
cls
echo/
color 0C
if %MainMagixSelection% EQU 1 Echo ******************************************************************
if %MainMagixSelection% EQU 1 Echo *** (Option #1) MAGIX Vegas Software ***
if %MainMagixSelection% EQU 1 Echo ******************************************************************
if %MainMagixSelection% EQU 1 echo/
if %MainMagixSelection% EQU 1 %Print%{255;255;255} Available software to Download: \n
if %MainPluginSelection% EQU 1 Echo *****************************************************************
if %MainPluginSelection% EQU 1 Echo *** (Option #2) 3rd Party Plugins for OFX ***
if %MainPluginSelection% EQU 1 Echo *****************************************************************
if %MainPluginSelection% EQU 1 echo/
if %MainPluginSelection% EQU 1 %Print%{255;255;255} Available plugins to Download: \n
echo --------------------------------
echo/
if %MainPluginSelection% EQU 1 if %plugcountbfxsaph% EQU 0 If %getOptionsPlugCountCheck% EQU 0 %Print%{231;72;86} BORIS FX - Sapphire
if %MainPluginSelection% EQU 1 if %plugcountbfxsaph% EQU 1 If %getOptionsPlugCountCheck% EQU 0 %Print%{0;255;50} BORIS FX - Sapphire
if %MainPluginSelection% EQU 1 if %plugcountbfxsaph% GEQ 2 If %getOptionsPlugCountCheck% EQU 0 %Print%{244;255;0} BORIS FX - Sapphire
if %MainPluginSelection% EQU 1 if %plugcountbfxsaph% EQU 0 If %getOptionsPlugCountCheck% GEQ 1 %Print%{231;72;86} 1) BORIS FX - Sapphire
if %MainPluginSelection% EQU 1 if %plugcountbfxsaph% EQU 1 If %getOptionsPlugCountCheck% GEQ 1 %Print%{0;255;50} 1) BORIS FX - Sapphire
if %MainPluginSelection% EQU 1 if %plugcountbfxsaph% GEQ 2 If %getOptionsPlugCountCheck% GEQ 1 %Print%{244;255;0} 1) BORIS FX - Sapphire
if %MainPluginSelection% EQU 1 if %plugcountbfxsaph% GEQ 0 %Print%{0;185;255}(595 MB) \n
if %MainPluginSelection% EQU 1 if %plugcountbfxmocha% EQU 0 If %getOptionsPlugCountCheck% EQU 0 if %mochadisplay% LEQ 1 %Print%{231;72;86} BORIS FX - Mocha Pro
if %MainPluginSelection% EQU 1 if %plugcountbfxmocha% EQU 1 If %getOptionsPlugCountCheck% EQU 0 if %mochadisplay% LEQ 1 %Print%{0;255;50} BORIS FX - Mocha Pro
if %MainPluginSelection% EQU 1 if %plugcountbfxmocha% GEQ 2 If %getOptionsPlugCountCheck% EQU 0 if %mochadisplay% LEQ 1 %Print%{244;255;0} BORIS FX - Mocha Pro
if %MainPluginSelection% EQU 1 if %plugcountbfxmocha% EQU 0 If %getOptionsPlugCountCheck% GEQ 1 if %mochadisplay% LEQ 1 %Print%{231;72;86} 2) BORIS FX - Mocha Pro
if %MainPluginSelection% EQU 1 if %plugcountbfxmocha% EQU 1 If %getOptionsPlugCountCheck% GEQ 1 if %mochadisplay% LEQ 1 %Print%{0;255;50} 2) BORIS FX - Mocha Pro
if %MainPluginSelection% EQU 1 if %plugcountbfxmocha% GEQ 2 If %getOptionsPlugCountCheck% GEQ 1 if %mochadisplay% LEQ 1 %Print%{244;255;0} 2) BORIS FX - Mocha Pro
if %MainPluginSelection% EQU 1 if %plugcountbfxmocha% GEQ 0 if %mochadisplay% LEQ 1 %Print%{0;185;255}(165 MB) \n
if %MainPluginSelection% EQU 1 if %plugcountbfxmocha% EQU 0 If %getOptionsPlugCountCheck% EQU 0 if %mochadisplay% EQU 3 %Print%{231;72;86} BORIS FX - Mocha Pro
if %MainPluginSelection% EQU 1 if %plugcountbfxmocha% EQU 1 If %getOptionsPlugCountCheck% EQU 0 if %mochadisplay% EQU 3 %Print%{0;255;50} BORIS FX - Mocha Pro
if %MainPluginSelection% EQU 1 if %plugcountbfxmocha% GEQ 2 If %getOptionsPlugCountCheck% EQU 0 if %mochadisplay% EQU 3 %Print%{244;255;0} BORIS FX - Mocha Pro
if %MainPluginSelection% EQU 1 if %plugcountbfxmocha% EQU 0 If %getOptionsPlugCountCheck% GEQ 1 if %mochadisplay% EQU 3 %Print%{231;72;86} 2) BORIS FX - Mocha Pro
if %MainPluginSelection% EQU 1 if %plugcountbfxmocha% EQU 1 If %getOptionsPlugCountCheck% GEQ 1 if %mochadisplay% EQU 3 %Print%{0;255;50} 2) BORIS FX - Mocha Pro
if %MainPluginSelection% EQU 1 if %plugcountbfxmocha% GEQ 2 If %getOptionsPlugCountCheck% GEQ 1 if %mochadisplay% EQU 3 %Print%{244;255;0} 2) BORIS FX - Mocha Pro
if %MainPluginSelection% EQU 1 if %plugcountbfxmocha% GEQ 0 if %mochadisplay% EQU 3 %Print%{0;185;255}(165 MB) \n
if %MainPluginSelection% EQU 1 if %plugcountvpbfxmocha% EQU 0 If %getOptionsPlugCountCheck% EQU 0 if %mochadisplay% EQU 2 %Print%{231;72;86} BORIS FX - Mocha VEGAS
if %MainPluginSelection% EQU 1 if %plugcountvpbfxmocha% EQU 1 If %getOptionsPlugCountCheck% EQU 0 if %mochadisplay% EQU 2 %Print%{0;255;50} BORIS FX - Mocha VEGAS
if %MainPluginSelection% EQU 1 if %plugcountvpbfxmocha% GEQ 2 If %getOptionsPlugCountCheck% EQU 0 if %mochadisplay% EQU 2 %Print%{244;255;0} BORIS FX - Mocha VEGAS
if %MainPluginSelection% EQU 1 if %plugcountvpbfxmocha% EQU 0 If %getOptionsPlugCountCheck% GEQ 1 if %mochadisplay% EQU 2 %Print%{231;72;86} 2) BORIS FX - Mocha VEGAS
if %MainPluginSelection% EQU 1 if %plugcountvpbfxmocha% EQU 1 If %getOptionsPlugCountCheck% GEQ 1 if %mochadisplay% EQU 2 %Print%{0;255;50} 2) BORIS FX - Mocha VEGAS
if %MainPluginSelection% EQU 1 if %plugcountvpbfxmocha% GEQ 2 If %getOptionsPlugCountCheck% GEQ 1 if %mochadisplay% EQU 2 %Print%{244;255;0} 2) BORIS FX - Mocha VEGAS
if %MainPluginSelection% EQU 1 if %plugcountvpbfxmocha% GEQ 0 if %mochadisplay% EQU 2 %Print%{0;185;255}(70 MB) \n
if %MainPluginSelection% EQU 1 if %plugcountvpbfxmocha% EQU 0 If %getOptionsPlugCountCheck% EQU 0 if %mochadisplay% EQU 3 %Print%{231;72;86} BORIS FX - Mocha VEGAS
if %MainPluginSelection% EQU 1 if %plugcountvpbfxmocha% EQU 1 If %getOptionsPlugCountCheck% EQU 0 if %mochadisplay% EQU 3 %Print%{0;255;50} BORIS FX - Mocha VEGAS
if %MainPluginSelection% EQU 1 if %plugcountvpbfxmocha% GEQ 2 If %getOptionsPlugCountCheck% EQU 0 if %mochadisplay% EQU 3 %Print%{244;255;0} BORIS FX - Mocha VEGAS
if %MainPluginSelection% EQU 1 if %plugcountvpbfxmocha% EQU 0 If %getOptionsPlugCountCheck% GEQ 1 if %mochadisplay% EQU 3 %Print%{231;72;86} 2) BORIS FX - Mocha VEGAS
if %MainPluginSelection% EQU 1 if %plugcountvpbfxmocha% EQU 1 If %getOptionsPlugCountCheck% GEQ 1 if %mochadisplay% EQU 3 %Print%{0;255;50} 2) BORIS FX - Mocha VEGAS
if %MainPluginSelection% EQU 1 if %plugcountvpbfxmocha% GEQ 2 If %getOptionsPlugCountCheck% GEQ 1 if %mochadisplay% EQU 3 %Print%{244;255;0} 2) BORIS FX - Mocha VEGAS
if %MainPluginSelection% EQU 1 if %plugcountvpbfxmocha% GEQ 0 if %mochadisplay% EQU 3 %Print%{0;185;255}(70 MB) \n
if %MainPluginSelection% EQU 1 if %plugcountbfxcontin% EQU 0 If %getOptionsPlugCountCheck% EQU 0 %Print%{231;72;86} BORIS FX - Continuum Complete
if %MainPluginSelection% EQU 1 if %plugcountbfxcontin% EQU 1 If %getOptionsPlugCountCheck% EQU 0 %Print%{0;255;50} BORIS FX - Continuum Complete
if %MainPluginSelection% EQU 1 if %plugcountbfxcontin% GEQ 2 If %getOptionsPlugCountCheck% EQU 0 %Print%{244;255;0} BORIS FX - Continuum Complete
if %MainPluginSelection% EQU 1 if %plugcountbfxcontin% EQU 0 If %getOptionsPlugCountCheck% GEQ 1 %Print%{231;72;86} 3) BORIS FX - Continuum Complete
if %MainPluginSelection% EQU 1 if %plugcountbfxcontin% EQU 1 If %getOptionsPlugCountCheck% GEQ 1 %Print%{0;255;50} 3) BORIS FX - Continuum Complete
if %MainPluginSelection% EQU 1 if %plugcountbfxcontin% GEQ 2 If %getOptionsPlugCountCheck% GEQ 1 %Print%{244;255;0} 3) BORIS FX - Continuum Complete
if %MainPluginSelection% EQU 1 if %plugcountbfxcontin% GEQ 0 %Print%{0;185;255}(790 MB) \n
if %MainPluginSelection% EQU 1 if %plugcountbfxsilho% EQU 0 If %getOptionsPlugCountCheck% EQU 0 %Print%{231;72;86} BORIS FX - Silhouette
if %MainPluginSelection% EQU 1 if %plugcountbfxsilho% EQU 1 If %getOptionsPlugCountCheck% EQU 0 %Print%{0;255;50} BORIS FX - Silhouette
if %MainPluginSelection% EQU 1 if %plugcountbfxsilho% GEQ 2 If %getOptionsPlugCountCheck% EQU 0 %Print%{244;255;0} BORIS FX - Silhouette
if %MainPluginSelection% EQU 1 if %plugcountbfxsilho% EQU 0 If %getOptionsPlugCountCheck% GEQ 1 %Print%{231;72;86} 4) BORIS FX - Silhouette
if %MainPluginSelection% EQU 1 if %plugcountbfxsilho% EQU 1 If %getOptionsPlugCountCheck% GEQ 1 %Print%{0;255;50} 4) BORIS FX - Silhouette
if %MainPluginSelection% EQU 1 if %plugcountbfxsilho% GEQ 2 If %getOptionsPlugCountCheck% GEQ 1 %Print%{244;255;0} 4) BORIS FX - Silhouette
if %MainPluginSelection% EQU 1 if %plugcountbfxsilho% GEQ 0 %Print%{0;185;255}(1.45 GB) \n
if %MainPluginSelection% EQU 1 if %plugcountignite% EQU 0 If %getOptionsPlugCountCheck% EQU 0 %Print%{231;72;86} FXHOME - Ignite Pro
if %MainPluginSelection% EQU 1 if %plugcountignite% EQU 1 If %getOptionsPlugCountCheck% EQU 0 %Print%{0;255;50} FXHOME - Ignite Pro
if %MainPluginSelection% EQU 1 if %plugcountignite% GEQ 2 If %getOptionsPlugCountCheck% EQU 0 %Print%{244;255;0} FXHOME - Ignite Pro
if %MainPluginSelection% EQU 1 if %plugcountignite% EQU 0 If %getOptionsPlugCountCheck% GEQ 1 %Print%{231;72;86} 5) FXHOME - Ignite Pro
if %MainPluginSelection% EQU 1 if %plugcountignite% EQU 1 If %getOptionsPlugCountCheck% GEQ 1 %Print%{0;255;50} 5) FXHOME - Ignite Pro
if %MainPluginSelection% EQU 1 if %plugcountignite% GEQ 2 If %getOptionsPlugCountCheck% GEQ 1 %Print%{244;255;0} 5) FXHOME - Ignite Pro
if %MainPluginSelection% EQU 1 if %plugcountignite% GEQ 0 %Print%{0;185;255}(430 MB) \n
if %MainPluginSelection% EQU 1 if %plugcountmbl% EQU 0 If %getOptionsPlugCountCheck% EQU 0 %Print%{231;72;86} MAXON - Red Giant Magic Bullet Suite
if %MainPluginSelection% EQU 1 if %plugcountmbl% EQU 1 If %getOptionsPlugCountCheck% EQU 0 %Print%{0;255;50} MAXON - Red Giant Magic Bullet Suite
if %MainPluginSelection% EQU 1 if %plugcountmbl% GEQ 2 If %getOptionsPlugCountCheck% EQU 0 %Print%{244;255;0} MAXON - Red Giant Magic Bullet Suite
if %MainPluginSelection% EQU 1 if %plugcountmbl% EQU 0 If %getOptionsPlugCountCheck% GEQ 1 %Print%{231;72;86} 6) MAXON - Red Giant Magic Bullet Suite
if %MainPluginSelection% EQU 1 if %plugcountmbl% EQU 1 If %getOptionsPlugCountCheck% GEQ 1 %Print%{0;255;50} 6) MAXON - Red Giant Magic Bullet Suite
if %MainPluginSelection% EQU 1 if %plugcountmbl% GEQ 2 If %getOptionsPlugCountCheck% GEQ 1 %Print%{244;255;0} 6) MAXON - Red Giant Magic Bullet Suite
if %MainPluginSelection% EQU 1 if %plugcountmbl% GEQ 0 %Print%{0;185;255}(385 MB) \n
if %MainPluginSelection% EQU 1 if %plugcountuni% EQU 0 If %getOptionsPlugCountCheck% EQU 0 %Print%{231;72;86} MAXON - Red Giant Universe
if %MainPluginSelection% EQU 1 if %plugcountuni% EQU 1 If %getOptionsPlugCountCheck% EQU 0 %Print%{0;255;50} MAXON - Red Giant Universe
if %MainPluginSelection% EQU 1 if %plugcountuni% GEQ 2 If %getOptionsPlugCountCheck% EQU 0 %Print%{244;255;0} MAXON - Red Giant Universe
if %MainPluginSelection% EQU 1 if %plugcountuni% EQU 0 If %getOptionsPlugCountCheck% GEQ 1 %Print%{231;72;86} 7) MAXON - Red Giant Universe
if %MainPluginSelection% EQU 1 if %plugcountuni% EQU 1 If %getOptionsPlugCountCheck% GEQ 1 %Print%{0;255;50} 7) MAXON - Red Giant Universe
if %MainPluginSelection% EQU 1 if %plugcountuni% GEQ 2 If %getOptionsPlugCountCheck% GEQ 1 %Print%{244;255;0} 7) MAXON - Red Giant Universe
if %MainPluginSelection% EQU 1 if %plugcountuni% GEQ 0 %Print%{0;185;255}(1.91 GB) \n
if %MainPluginSelection% EQU 1 if %plugcountnfxtitler% EQU 0 If %getOptionsPlugCountCheck% EQU 0 %Print%{231;72;86} NEWBLUEFX - Titler Pro 7
if %MainPluginSelection% EQU 1 if %plugcountnfxtitler% EQU 1 If %getOptionsPlugCountCheck% EQU 0 %Print%{0;255;50} NEWBLUEFX - Titler Pro 7
if %MainPluginSelection% EQU 1 if %plugcountnfxtitler% GEQ 2 If %getOptionsPlugCountCheck% EQU 0 %Print%{244;255;0} NEWBLUEFX - Titler Pro 7
if %MainPluginSelection% EQU 1 if %plugcountnfxtitler% EQU 0 If %getOptionsPlugCountCheck% GEQ 1 %Print%{231;72;86} 8) NEWBLUEFX - Titler Pro 7
if %MainPluginSelection% EQU 1 if %plugcountnfxtitler% EQU 1 If %getOptionsPlugCountCheck% GEQ 1 %Print%{0;255;50} 8) NEWBLUEFX - Titler Pro 7
if %MainPluginSelection% EQU 1 if %plugcountnfxtitler% GEQ 2 If %getOptionsPlugCountCheck% GEQ 1 %Print%{244;255;0} 8) NEWBLUEFX - Titler Pro 7
if %MainPluginSelection% EQU 1 if %plugcountnfxtitler% GEQ 0 %Print%{0;185;255}(630 MB) \n
if %MainPluginSelection% EQU 1 if %plugcountnfxtotal% EQU 0 If %getOptionsPlugCountCheck% EQU 0 %Print%{231;72;86} NEWBLUEFX - TotalFX 7
if %MainPluginSelection% EQU 1 if %plugcountnfxtotal% EQU 1 If %getOptionsPlugCountCheck% EQU 0 %Print%{0;255;50} NEWBLUEFX - TotalFX 7
if %MainPluginSelection% EQU 1 if %plugcountnfxtotal% GEQ 2 If %getOptionsPlugCountCheck% EQU 0 %Print%{244;255;0} NEWBLUEFX - TotalFX 7
if %MainPluginSelection% EQU 1 if %plugcountnfxtotal% EQU 0 If %getOptionsPlugCountCheck% GEQ 1 %Print%{231;72;86} 9) NEWBLUEFX - TotalFX 7
if %MainPluginSelection% EQU 1 if %plugcountnfxtotal% EQU 1 If %getOptionsPlugCountCheck% GEQ 1 %Print%{0;255;50} 9) NEWBLUEFX - TotalFX 7
if %MainPluginSelection% EQU 1 if %plugcountnfxtotal% GEQ 2 If %getOptionsPlugCountCheck% GEQ 1 %Print%{244;255;0} 9) NEWBLUEFX - TotalFX 7
if %MainPluginSelection% EQU 1 if %plugcountnfxtotal% GEQ 0 %Print%{0;185;255}(790 MB) \n
if %MainPluginSelection% EQU 1 if %plugcountrfxeff% EQU 0 If %getOptionsPlugCountCheck% EQU 0 %Print%{231;72;86} REVISIONFX - Effections
if %MainPluginSelection% EQU 1 if %plugcountrfxeff% EQU 1 If %getOptionsPlugCountCheck% EQU 0 %Print%{0;255;50} REVISIONFX - Effections
if %MainPluginSelection% EQU 1 if %plugcountrfxeff% GEQ 2 If %getOptionsPlugCountCheck% EQU 0 %Print%{244;255;0} REVISIONFX - Effections
if %MainPluginSelection% EQU 1 if %plugcountrfxeff% EQU 0 If %getOptionsPlugCountCheck% GEQ 1 %Print%{231;72;86} 10) REVISIONFX - Effections
if %MainPluginSelection% EQU 1 if %plugcountrfxeff% EQU 1 If %getOptionsPlugCountCheck% GEQ 1 %Print%{0;255;50} 10) REVISIONFX - Effections
if %MainPluginSelection% EQU 1 if %plugcountrfxeff% GEQ 2 If %getOptionsPlugCountCheck% GEQ 1 %Print%{244;255;0} 10) REVISIONFX - Effections
if %MainPluginSelection% EQU 1 if %plugcountrfxeff% GEQ 0 %Print%{0;185;255}(50 MB) \n
if %MainPluginSelection% EQU 1 echo/
if %MainPluginSelection% EQU 1 If %getOptionsPlugCountCheck% GEQ 1 %Print%{0;185;255} 11) ALL PLUGINS
if %MainPluginSelection% EQU 1 If %getOptionsPlugCountCheck% GEQ 1 %Print%{0;185;255}(7 GB) \n
if %MainPluginSelection% EQU 1 echo/
if %MainPluginSelection% EQU 1 If %getOptionPlugSkip% EQU 0 echo --------------------------------
if %MainMagixSelection% EQU 1 if %magixcountvp% EQU 0 If %getOptionsMagixCountCheck% EQU 0 %Print%{231;72;86} VEGAS Pro
if %MainMagixSelection% EQU 1 if %magixcountvp% EQU 1 If %getOptionsMagixCountCheck% EQU 0 %Print%{0;255;50} VEGAS Pro
if %MainMagixSelection% EQU 1 if %magixcountvp% GEQ 2 If %getOptionsMagixCountCheck% EQU 0 %Print%{244;255;0} VEGAS Pro
if %MainMagixSelection% EQU 1 if %magixcountvp% EQU 0 If %getOptionsMagixCountCheck% GEQ 1 %Print%{231;72;86} 1) VEGAS Pro
if %MainMagixSelection% EQU 1 if %magixcountvp% EQU 1 If %getOptionsMagixCountCheck% GEQ 1 %Print%{0;255;50} 1) VEGAS Pro
if %MainMagixSelection% EQU 1 if %magixcountvp% GEQ 2 If %getOptionsMagixCountCheck% GEQ 1 %Print%{244;255;0} 1) VEGAS Pro
if %MainMagixSelection% EQU 1 if %magixcountvp% GEQ 0 %Print%{0;185;255}(665 MB) \n
if %MainMagixSelection% EQU 1 if %magixcountvpdlm% EQU 0 If %getOptionsMagixCountCheck% EQU 0 %Print%{231;72;86} VEGAS Pro Deep Learning Models
if %MainMagixSelection% EQU 1 if %magixcountvpdlm% EQU 1 If %getOptionsMagixCountCheck% EQU 0 %Print%{0;255;50} VEGAS Pro Deep Learning Models
if %MainMagixSelection% EQU 1 if %magixcountvpdlm% GEQ 2 If %getOptionsMagixCountCheck% EQU 0 %Print%{244;255;0} VEGAS Pro Deep Learning Models
if %MainMagixSelection% EQU 1 if %magixcountvpdlm% EQU 0 If %getOptionsMagixCountCheck% GEQ 1 %Print%{231;72;86} 2) VEGAS Pro Deep Learning Models
if %MainMagixSelection% EQU 1 if %magixcountvpdlm% EQU 1 If %getOptionsMagixCountCheck% GEQ 1 %Print%{0;255;50} 2) VEGAS Pro Deep Learning Models
if %MainMagixSelection% EQU 1 if %magixcountvpdlm% GEQ 2 If %getOptionsMagixCountCheck% GEQ 1 %Print%{244;255;0} 2) VEGAS Pro Deep Learning Models
if %MainMagixSelection% EQU 1 if %magixcountvpdlm% GEQ 0 %Print%{0;185;255}(1.38 GB) \n
if %MainMagixSelection% EQU 1 if %magixcountve% EQU 0 If %getOptionsMagixCountCheck% EQU 0 %Print%{231;72;86} VEGAS Effects
if %MainMagixSelection% EQU 1 if %magixcountve% EQU 1 If %getOptionsMagixCountCheck% EQU 0 %Print%{0;255;50} VEGAS Effects
if %MainMagixSelection% EQU 1 if %magixcountve% GEQ 2 If %getOptionsMagixCountCheck% EQU 0 %Print%{244;255;0} VEGAS Effects
if %MainMagixSelection% EQU 1 if %magixcountve% EQU 0 If %getOptionsMagixCountCheck% GEQ 1 %Print%{231;72;86} 3) VEGAS Effects
if %MainMagixSelection% EQU 1 if %magixcountve% EQU 1 If %getOptionsMagixCountCheck% GEQ 1 %Print%{0;255;50} 3) VEGAS Effects
if %MainMagixSelection% EQU 1 if %magixcountve% GEQ 2 If %getOptionsMagixCountCheck% GEQ 1 %Print%{244;255;0} 3) VEGAS Effects
if %MainMagixSelection% EQU 1 if %magixcountve% GEQ 0 %Print%{0;185;255}(205 MB) \n
if %MainMagixSelection% EQU 1 if %magixcountvi% EQU 0 If %getOptionsMagixCountCheck% EQU 0 %Print%{231;72;86} VEGAS Image
if %MainMagixSelection% EQU 1 if %magixcountvi% EQU 1 If %getOptionsMagixCountCheck% EQU 0 %Print%{0;255;50} VEGAS Image
if %MainMagixSelection% EQU 1 if %magixcountvi% GEQ 2 If %getOptionsMagixCountCheck% EQU 0 %Print%{244;255;0} VEGAS Image
if %MainMagixSelection% EQU 1 if %magixcountvi% EQU 0 If %getOptionsMagixCountCheck% GEQ 1 %Print%{231;72;86} 4) VEGAS Image
if %MainMagixSelection% EQU 1 if %magixcountvi% EQU 1 If %getOptionsMagixCountCheck% GEQ 1 %Print%{0;255;50} 4) VEGAS Image
if %MainMagixSelection% EQU 1 if %magixcountvi% GEQ 2 If %getOptionsMagixCountCheck% GEQ 1 %Print%{244;255;0} 4) VEGAS Image
if %MainMagixSelection% EQU 1 if %magixcountvi% GEQ 0 %Print%{0;185;255}(105 MB) \n
if %MainMagixSelection% EQU 1 echo/
if %MainMagixSelection% EQU 1 If %getOptionsMagixCountCheck% GEQ 1 %Print%{0;185;255} NOTE: VEGAS Pro Deep Learning Models are Optional. \n
if %MainMagixSelection% EQU 1 If %getOptionsMagixCountCheck% GEQ 1 %Print%{0;185;255} These are used for new AI features within VEGAS Pro. \n
if %MainMagixSelection% EQU 1 echo/
if %MainMagixSelection% EQU 1 If %getOptionPlugSkip% EQU 0 echo --------------------------------
set "PLUGKEY0="
if %MainPluginSelection% EQU 1 IF %plugcountbfxsaph% EQU 0 If %getOptionPlugSkip% EQU 0 set PLUGKEY0=1
if %MainPluginSelection% EQU 1 IF %plugcountbfxcontin% EQU 0 If %getOptionPlugSkip% EQU 0 set PLUGKEY0=1
if %MainPluginSelection% EQU 1 IF %plugcountbfxmocha% EQU 0 If %getOptionPlugSkip% EQU 0 set PLUGKEY0=1
if %MainPluginSelection% EQU 1 IF %plugcountbfxsilho% EQU 0 If %getOptionPlugSkip% EQU 0 set PLUGKEY0=1
if %MainPluginSelection% EQU 1 IF %plugcountignite% EQU 0 If %getOptionPlugSkip% EQU 0 set PLUGKEY0=1
if %MainPluginSelection% EQU 1 IF %plugcountmbl% EQU 0 If %getOptionPlugSkip% EQU 0 set PLUGKEY0=1
if %MainPluginSelection% EQU 1 IF %plugcountuni% EQU 0 If %getOptionPlugSkip% EQU 0 set PLUGKEY0=1
if %MainPluginSelection% EQU 1 IF %plugcountnfxtitler% EQU 0 If %getOptionPlugSkip% EQU 0 set PLUGKEY0=1
if %MainPluginSelection% EQU 1 IF %plugcountnfxtotal% EQU 0 If %getOptionPlugSkip% EQU 0 set PLUGKEY0=1
if %MainPluginSelection% EQU 1 IF %plugcountrfxeff% EQU 0 If %getOptionPlugSkip% EQU 0 set PLUGKEY0=1
if %MainMagixSelection% EQU 1 IF %magixcountvp% EQU 0 If %getOptionPlugSkip% EQU 0 set PLUGKEY0=1
if %MainMagixSelection% EQU 1 IF %magixcountvpdlm% EQU 0 If %getOptionPlugSkip% EQU 0 set PLUGKEY0=1
if %MainMagixSelection% EQU 1 IF %magixcountve% EQU 0 If %getOptionPlugSkip% EQU 0 set PLUGKEY0=1
if %MainMagixSelection% EQU 1 IF %magixcountvi% EQU 0 If %getOptionPlugSkip% EQU 0 set PLUGKEY0=1
IF defined PLUGKEY0 (
if %MainPluginSelection% EQU 1 %Print%{231;72;86} Red = not installed \n
if %MainMagixSelection% EQU 1 %Print%{231;72;86} Red = not installed \n
)
set "PLUGKEY1="
if %MainPluginSelection% EQU 1 IF %plugcountbfxsaph% EQU 1 set PLUGKEY1=1
if %MainPluginSelection% EQU 1 IF %plugcountbfxcontin% EQU 1 set PLUGKEY1=1
if %MainPluginSelection% EQU 1 IF %plugcountbfxmocha% EQU 1 set PLUGKEY1=1
if %MainPluginSelection% EQU 1 IF %plugcountbfxsilho% EQU 1 set PLUGKEY1=1
if %MainPluginSelection% EQU 1 IF %plugcountignite% EQU 1 set PLUGKEY1=1
if %MainPluginSelection% EQU 1 IF %plugcountmbl% EQU 1 set PLUGKEY1=1
if %MainPluginSelection% EQU 1 IF %plugcountuni% EQU 1 set PLUGKEY1=1
if %MainPluginSelection% EQU 1 IF %plugcountnfxtitler% EQU 1 set PLUGKEY1=1
if %MainPluginSelection% EQU 1 IF %plugcountnfxtotal% EQU 1 set PLUGKEY1=1
if %MainPluginSelection% EQU 1 IF %plugcountrfxeff% EQU 1 set PLUGKEY1=1
if %MainMagixSelection% EQU 1 IF %magixcountvp% EQU 1 set PLUGKEY1=1
if %MainMagixSelection% EQU 1 IF %magixcountvpdlm% EQU 1 set PLUGKEY1=1
if %MainMagixSelection% EQU 1 IF %magixcountve% EQU 1 set PLUGKEY1=1
if %MainMagixSelection% EQU 1 IF %magixcountvi% EQU 1 set PLUGKEY1=1
IF defined PLUGKEY1 (
if %MainPluginSelection% EQU 1 %Print%{0;255;50} Green = installed \n
if %MainMagixSelection% EQU 1 %Print%{0;255;50} Green = installed \n
)
set "PLUGKEY2="
if %MainPluginSelection% EQU 1 IF %plugcountbfxsaph% GEQ 2 set PLUGKEY2=1
if %MainPluginSelection% EQU 1 IF %plugcountbfxcontin% GEQ 2 set PLUGKEY2=1
if %MainPluginSelection% EQU 1 IF %plugcountbfxmocha% GEQ 2 set PLUGKEY2=1
if %MainPluginSelection% EQU 1 IF %plugcountbfxsilho% GEQ 2 set PLUGKEY2=1
if %MainPluginSelection% EQU 1 IF %plugcountignite% GEQ 2 set PLUGKEY2=1
if %MainPluginSelection% EQU 1 IF %plugcountmbl% GEQ 2 set PLUGKEY2=1
if %MainPluginSelection% EQU 1 IF %plugcountuni% GEQ 2 set PLUGKEY2=1
if %MainPluginSelection% EQU 1 IF %plugcountnfxtitler% GEQ 2 set PLUGKEY2=1
if %MainPluginSelection% EQU 1 IF %plugcountnfxtotal% GEQ 2 set PLUGKEY2=1
if %MainPluginSelection% EQU 1 IF %plugcountrfxeff% GEQ 2 set PLUGKEY2=1
if %MainMagixSelection% EQU 1 IF %magixcountvp% GEQ 2 set PLUGKEY2=1
if %MainMagixSelection% EQU 1 IF %magixcountvpdlm% GEQ 2 set PLUGKEY2=1
if %MainMagixSelection% EQU 1 IF %magixcountve% GEQ 2 set PLUGKEY2=1
if %MainMagixSelection% EQU 1 IF %magixcountvi% GEQ 2 set PLUGKEY2=1
IF defined PLUGKEY2 (
if %MainPluginSelection% EQU 1 %Print%{244;255;0} Yellow = multiple installed [May detect AE plugins] \n
if %MainMagixSelection% EQU 1 %Print%{244;255;0} Yellow = multiple installed \n
)
if %MainPluginSelection% EQU 1 IF %getOptionsPlugCountCheck% EQU 1 GOTO getOptionsPlug
if %MainMagixSelection% EQU 1 If %getOptionsMagixCountCheck% EQU 1 GOTO getOptionsPlug
if %MainMagixSelection% EQU 1 If %getOptionsMagixCountCheck% EQU 0 GOTO Magix-Select-Prompt
echo --------------------------------
echo/
%Print%{204;204;204} 1) Download plugins \n
%Print%{204;204;204} 2) Uninstall plugins \n
%Print%{255;112;0} 3) Main Menu \n
echo/
C:\Windows\System32\CHOICE /C 123 /M "Type the number (1-3) of what you want." /N
cls
echo/
IF ERRORLEVEL 3 GOTO Main
IF ERRORLEVEL 2 GOTO getOptionsPlugUninstall
IF ERRORLEVEL 1 set getOptionsPlugCountCheck=1 & GOTO Plug-Select-Continue-1
echo/
:Magix-Select-Prompt
echo --------------------------------
echo/
%Print%{204;204;204} 1) Download software \n
%Print%{204;204;204} 2) Uninstall software \n
%Print%{255;112;0} 3) Main Menu \n
echo/
C:\Windows\System32\CHOICE /C 123 /M "Type the number (1-3) of what you want." /N
cls
echo/
IF ERRORLEVEL 3 GOTO Main
IF ERRORLEVEL 2 set Magix-Alr-Installed=1 & GOTO Magix-Already-Installed-Prompt
IF ERRORLEVEL 1 set getOptionsMagixCountCheck=1 & GOTO Plug-Select-Continue-1
echo/
:getOptionsPlugUninstall-Error-System
cls
color 0C
echo/
%Print%{231;72;86}To Uninstall plugins with the script, you need
%Print%{244;255;0} System Checks enabled
%Print%{231;72;86} under the script settings. \n
echo/
echo/
%Print%{231;72;86}Returning back to the Main Menu...
timeout /T 6 /nobreak >nul
GOTO Plug-Select-Continue-1
:getOptionsPlugUninstall-error
cls
color 0C
echo Plugin Queue is empty
echo Returning to main menu...
timeout /T 5 /nobreak >nul
GOTO Plug-Select-Continue-1
:getOptionsPlugUninstall
cls
if %getOptionPlugSkip% EQU 1 GOTO getOptionsPlugUninstall-Error-System
color 0c
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Changing directory is needed
cd /d "%~dp0Installer-files\Installer-Scripts\Settings"
:: loops through and trims duplicate entires.
type nul>Plug-Uninstall-found.txt
for /f "tokens=* delims=" %%a in (Plug-Installations-found-output.txt) do (
findstr /ixc:"%%a" Plug-Uninstall-found.txt >nul || >>Plug-Uninstall-found.txt echo.%%a
)
:: If logfile is blank - continues to install. If data found, prompt user to uninstall
>nul findstr "^" "Plug-Uninstall-found.txt" || getOptionsPlugUninstall-error
echo/
::::::::::::::::::::::::::::::::::::::::::::::::
:: Parses each line and puts into into a counter variable.
setlocal EnableDelayedExpansion
set "cmd=findstr /R /N "^^" Plug-Uninstall-found.txt | find /C ":""
for /f %%U in ('!cmd!') do set PlugUninstnumberCounter=%%U
::::::::::::::::::::::::::::::::::::::::::::::::
:: This entire process is for multi-selection when user chooses to uninstall VP
:: Deletes text preference for selection, if made previously
set Plug-Uninst-Select1="%~dp0Installer-files\Installer-Scripts\Settings\Plug-Uninstall-Selection.txt"
set Plug-Uninstall-found="%~dp0Installer-files\Installer-Scripts\Settings\Plug-Uninstall-found-output.txt"
set Plug-Uninstall-Select="%~dp0Installer-files\Installer-Scripts\Settings\Plug-Uninstall-Selection-output.txt"
if exist %Plug-Uninst-Select1% del %Plug-Uninst-Select1%
if exist %Plug-Uninstall-found% del %Plug-Uninstall-found%
if exist %Plug-Uninstall-Select% del %Plug-Uninstall-Select%
:: Set plugin list variables for reg query
set Counter=1
for /f "tokens=* delims=" %%x in (Plug-Uninstall-found.txt) do (
set "Line_PlugUninst_!Counter!=%%x"
set /a Counter+=1
)
set /a NumLines=Counter - 1
set PlugUninstnumber=1
set PlugUninstall1=0
set PlugUninstall2=0
set PlugUninstall3=0
set PlugUninstall4=0
set PlugUninstall5=0
set PlugUninstall6=0
set PlugUninstall7=0
set PlugUninstall8=0
set PlugUninstall9=0
set PlugUninstall10=0
set PlugUninstall11=0
set PlugUninstall12=0
GOTO Plug-Uninst-loopcheck
:Plug-Uninst-loopcheck
if %PlugUninstnumber% LEQ %PlugUninstnumberCounter% GOTO Plug-Uninst-Loop
if %PlugUninstnumber% GTR %PlugUninstnumberCounter% GOTO Plug-Uninst-Continue1
@pause
:Plug-Uninst-Loop
:: If plugin detected, echo the name into another logfile. Doing this so I can echo my own text and not the reg display names.
if /I "!Line_PlugUninst_%PlugUninstnumber%:~0,26!" == "Boris FX Sapphire Plug-ins" >> %Plug-Uninstall-found% echo BORIS FX - Sapphire & set "PlugUninstall1=!Line_PlugUninst_%PlugUninstnumber%!" & set /a PlugUninstnumber+=1 & GOTO Plug-Uninst-loopcheck
if /I "!Line_PlugUninst_%PlugUninstnumber%:~0,23!" == "Boris FX Mocha Plug-ins" >> %Plug-Uninstall-found% echo BORIS FX - Mocha Pro & set "PlugUninstall2=!Line_PlugUninst_%PlugUninstnumber%!" & set /a PlugUninstnumber+=1 & GOTO Plug-Uninst-loopcheck
if /I "!Line_PlugUninst_%PlugUninstnumber%:~0,18!" == "Boris FX Continuum" >> %Plug-Uninstall-found% echo BORIS FX - Continuum Complete & set "PlugUninstall3=!Line_PlugUninst_%PlugUninstnumber%!" & set /a PlugUninstnumber+=1 & GOTO Plug-Uninst-loopcheck
if /I "!Line_PlugUninst_%PlugUninstnumber%:~0,17!" == "BorisFX Continuum" >> %Plug-Uninstall-found% echo BORIS FX - Continuum Complete & set "PlugUninstall3=!Line_PlugUninst_%PlugUninstnumber%!" & set /a PlugUninstnumber+=1 & GOTO Plug-Uninst-loopcheck
if /I "!Line_PlugUninst_%PlugUninstnumber%:~0,19!" == "Boris FX Silhouette" >> %Plug-Uninstall-found% echo BORIS FX - Silhouette & set "PlugUninstall4=!Line_PlugUninst_%PlugUninstnumber%!" & set /a PlugUninstnumber+=1 & GOTO Plug-Uninst-loopcheck
if /I "!Line_PlugUninst_%PlugUninstnumber%:~0,10!" == "Silhouette" >> %Plug-Uninstall-found% echo BORIS FX - Silhouette & set "PlugUninstall4=!Line_PlugUninst_%PlugUninstnumber%!" & set /a PlugUninstnumber+=1 & GOTO Plug-Uninst-loopcheck
if /I "!Line_PlugUninst_%PlugUninstnumber%:~0,28!" == "VEGAS Pro 21.0 (Mocha VEGAS)" >> %Plug-Uninstall-found% echo BORIS FX - Mocha VEGAS & set "PlugUninstall5=!Line_PlugUninst_%PlugUninstnumber%!" & set /a PlugUninstnumber+=1 & GOTO Plug-Uninst-loopcheck
if /I "!Line_PlugUninst_%PlugUninstnumber%!" == "Ignite Pro " >> %Plug-Uninstall-found% echo FXHOME - Ignite Pro & set "PlugUninstall6=!Line_PlugUninst_%PlugUninstnumber%!" & set /a PlugUninstnumber+=1 & GOTO Plug-Uninst-loopcheck
if /I "!Line_PlugUninst_%PlugUninstnumber%!" == "Ignite Pro by Nifer " >> %Plug-Uninstall-found% echo FXHOME - Ignite Pro by Nifer & set "PlugUninstall7=!Line_PlugUninst_%PlugUninstnumber%!" & set /a PlugUninstnumber+=1 & GOTO Plug-Uninst-loopcheck
if /I "!Line_PlugUninst_%PlugUninstnumber%:~0,18!" == "Magic Bullet Suite" >> %Plug-Uninstall-found% echo MAXON - Red Giant Magic Bullet Looks & set "PlugUninstall8=!Line_PlugUninst_%PlugUninstnumber%!" & set /a PlugUninstnumber+=1 & GOTO Plug-Uninst-loopcheck
if /I "!Line_PlugUninst_%PlugUninstnumber%:~0,8!" == "Universe" >> %Plug-Uninstall-found% echo MAXON - Red Giant Universe & set "PlugUninstall9=!Line_PlugUninst_%PlugUninstnumber%!" & set /a PlugUninstnumber+=1 & GOTO Plug-Uninst-loopcheck
if /I "!Line_PlugUninst_%PlugUninstnumber%:~0,29!" == "NewBlue Titler Pro 7 Ultimate" >> %Plug-Uninstall-found% echo NEWBLUEFX - Titler Pro 7 Ultimate & set "PlugUninstall10=!Line_PlugUninst_%PlugUninstnumber%!" & set /a PlugUninstnumber+=1 & GOTO Plug-Uninst-loopcheck
if /I "!Line_PlugUninst_%PlugUninstnumber%:~0,17!" == "NewBlue TotalFX 7" >> %Plug-Uninstall-found% echo NEWBLUEFX - TotalFX 7 & set "PlugUninstall11=!Line_PlugUninst_%PlugUninstnumber%!" & set /a PlugUninstnumber+=1 & GOTO Plug-Uninst-loopcheck
if /I "!Line_PlugUninst_%PlugUninstnumber%:~0,20!" == "RE:Vision Effections" >> %Plug-Uninstall-found% echo REVISIONFX - Effections & set "PlugUninstall12=!Line_PlugUninst_%PlugUninstnumber%!" & set /a PlugUninstnumber+=1 & GOTO Plug-Uninst-loopcheck
set /a PlugUninstnumber+=1
GOTO Plug-Uninst-loopcheck
:Plug-Uninst-Continue1
:: Set Plug-Uninstall-found logfile to a counter, display each line for user input
set Counter=1
for /f "tokens=* delims=" %%x in (Plug-Uninstall-found-output.txt) do (
set "Line_PlugUninstList_!Counter!=%%x"
set /a Counter+=1
)
set /a NumLines=Counter - 1
%Print%{231;72;86} Select which program(s) you want to uninstall \n
echo ---------------------------------
echo/
for /l %%x in (1,1,%NumLines%) do echo %%x - !Line_PlugUninstList_%%x!
%Print%{0;185;255} %Counter% - ALL OPTIONS \n
echo/
echo ---------------------------------
echo/
echo/
set MaxonMBLUninst=0
set MaxonUNIUninst=0
set CounterMax=%Counter%
set CounterPre=0
set CounterFinish=
GOTO Counter-loop
:Counter-loop
if %CounterPre% LSS %CounterMax% set /a CounterPre+=1 & set "CounterFinish=!CounterFinish!%CounterPre% " & GOTO Counter-loop
if %CounterPre% GTR %CounterMax% GOTO counter-finish
:counter-finish
:: Prompt user choices of all detected VP installations, and asks for multi-choice input
%Print%{231;72;86}Type your choices with a space after each choice
%Print%{255;112;0}(ie: 1 2 3 4) \n
set "choices="
set /p "choices=Type and press Enter when finished: "
if not defined choices (
echo Please enter a valid option
goto getOptions11
)
::2=1 set 3, if fail-2/a+1) 1=optionPlugTest 2=optionPlugTestPre 3=optionPlugNumber
for %%a in (%choices%) do if %%a EQU %Counter% set "choices=!CounterFinish!"
for %%i in (%choices%) do set optionPlugTest=%%i & call :optionPlugUninst-1 2>nul
IF ERRORLEVEL 1 GOTO optionPlugUninstError11
GOTO Plug-uninstall-selection-prompt
exit
:optionPlugUninstError11
echo/
echo Exceeded max number of selections.
echo Selections (1-13)
@pause
GOTO getOptions11
:optionPlugUninst-1
set "optionPlugTestPre=1"
if %optionPlugTestPre% EQU %optionPlugTest% ( set "optionPlugNumber=1" & GOTO optionPlugUninst-1-Continue ) else ( set /a optionPlugTestPre+=1 )
if %optionPlugTestPre% EQU %optionPlugTest% ( set "optionPlugNumber=2" & GOTO optionPlugUninst-1-Continue ) else ( set /a optionPlugTestPre+=1 )
if %optionPlugTestPre% EQU %optionPlugTest% ( set "optionPlugNumber=3" & GOTO optionPlugUninst-1-Continue ) else ( set /a optionPlugTestPre+=1 )
if %optionPlugTestPre% EQU %optionPlugTest% ( set "optionPlugNumber=4" & GOTO optionPlugUninst-1-Continue ) else ( set /a optionPlugTestPre+=1 )
if %optionPlugTestPre% EQU %optionPlugTest% ( set "optionPlugNumber=5" & GOTO optionPlugUninst-1-Continue ) else ( set /a optionPlugTestPre+=1 )
if %optionPlugTestPre% EQU %optionPlugTest% ( set "optionPlugNumber=6" & GOTO optionPlugUninst-1-Continue ) else ( set /a optionPlugTestPre+=1 )
if %optionPlugTestPre% EQU %optionPlugTest% ( set "optionPlugNumber=7" & GOTO optionPlugUninst-1-Continue ) else ( set /a optionPlugTestPre+=1 )
if %optionPlugTestPre% EQU %optionPlugTest% ( set "optionPlugNumber=8" & GOTO optionPlugUninst-1-Continue ) else ( set /a optionPlugTestPre+=1 )
if %optionPlugTestPre% EQU %optionPlugTest% ( set "optionPlugNumber=9" & GOTO optionPlugUninst-1-Continue ) else ( set /a optionPlugTestPre+=1 )
if %optionPlugTestPre% EQU %optionPlugTest% ( set "optionPlugNumber=10" & GOTO optionPlugUninst-1-Continue ) else ( set /a optionPlugTestPre+=1 )
if %optionPlugTestPre% EQU %optionPlugTest% ( set "optionPlugNumber=11" & GOTO optionPlugUninst-1-Continue ) else ( set /a optionPlugTestPre+=1 )
if %optionPlugTestPre% EQU %optionPlugTest% ( set "optionPlugNumber=12" & GOTO optionPlugUninst-1-Continue ) else ( set /a optionPlugTestPre+=1 )
:optionPlugUninst-1-Continue
if /I "!Line_PlugUninstList_%optionPlugNumber%!" == "BORIS FX - Sapphire " >> %Plug-Uninst-Select1% echo !Line_PlugUninstList_%optionPlugNumber%! & >> %Plug-Uninstall-Select% echo %PlugUninstall1%
if /I "!Line_PlugUninstList_%optionPlugNumber%!" == "BORIS FX - Mocha Pro " >> %Plug-Uninst-Select1% echo !Line_PlugUninstList_%optionPlugNumber%! & >> %Plug-Uninstall-Select% echo %PlugUninstall2%
if /I "!Line_PlugUninstList_%optionPlugNumber%!" == "BORIS FX - Continuum Complete " >> %Plug-Uninst-Select1% echo !Line_PlugUninstList_%optionPlugNumber%! & >> %Plug-Uninstall-Select% echo %PlugUninstall3%
if /I "!Line_PlugUninstList_%optionPlugNumber%!" == "BORIS FX - Silhouette " >> %Plug-Uninst-Select1% echo !Line_PlugUninstList_%optionPlugNumber%! & >> %Plug-Uninstall-Select% echo %PlugUninstall4%
if /I "!Line_PlugUninstList_%optionPlugNumber%!" == "BORIS FX - Mocha VEGAS " >> %Plug-Uninst-Select1% echo !Line_PlugUninstList_%optionPlugNumber%! & >> %Plug-Uninstall-Select% echo %PlugUninstall5%
if /I "!Line_PlugUninstList_%optionPlugNumber%!" == "FXHOME - Ignite Pro " >> %Plug-Uninst-Select1% echo !Line_PlugUninstList_%optionPlugNumber%! & >> %Plug-Uninstall-Select% echo %PlugUninstall6%
if /I "!Line_PlugUninstList_%optionPlugNumber%!" == "FXHOME - Ignite Pro by Nifer " >> %Plug-Uninst-Select1% echo !Line_PlugUninstList_%optionPlugNumber%! & >> %Plug-Uninstall-Select% echo %PlugUninstall7%
if /I "!Line_PlugUninstList_%optionPlugNumber%!" == "MAXON - Red Giant Magic Bullet Looks " >> %Plug-Uninst-Select1% echo !Line_PlugUninstList_%optionPlugNumber%! & >> %Plug-Uninstall-Select% echo %PlugUninstall8% & set MaxonMBLUninst=1
if /I "!Line_PlugUninstList_%optionPlugNumber%!" == "MAXON - Red Giant Universe " >> %Plug-Uninst-Select1% echo !Line_PlugUninstList_%optionPlugNumber%! & >> %Plug-Uninstall-Select% echo %PlugUninstall9% & set MaxonUNIUninst=1
if /I "!Line_PlugUninstList_%optionPlugNumber%!" == "NEWBLUEFX - Titler Pro 7 Ultimate " >> %Plug-Uninst-Select1% echo !Line_PlugUninstList_%optionPlugNumber%! & >> %Plug-Uninstall-Select% echo %PlugUninstall10%
if /I "!Line_PlugUninstList_%optionPlugNumber%!" == "NEWBLUEFX - TotalFX 7 " >> %Plug-Uninst-Select1% echo !Line_PlugUninstList_%optionPlugNumber%! & >> %Plug-Uninstall-Select% echo %PlugUninstall11%
if /I "!Line_PlugUninstList_%optionPlugNumber%!" == "REVISIONFX - Effections " >> %Plug-Uninst-Select1% echo !Line_PlugUninstList_%optionPlugNumber%! & >> %Plug-Uninstall-Select% echo %PlugUninstall12%
exit /B
:Plug-uninstall-selection-prompt
color 0C
cls
echo/
%Print%{231;72;86} Are you sure you want to Uninstall these selected programs? \n
echo ---------------------------------
echo/
type %Plug-Uninst-Select1%
echo/
echo ---------------------------------
%Print%{231;72;86} 1 = Yes, Uninstall these programs \n
%Print%{255;112;0} 2 = No, Cancel and Go back \n
echo/
C:\Windows\System32\CHOICE /C 12 /M "Type the number (1-2) of what you want." /N
cls
echo/
IF ERRORLEVEL 2 GOTO Plug-Select-Continue-1
IF ERRORLEVEL 1 GOTO Plug-uninstall-selection-continue11
echo/
:Plug-uninstall-selection-continue11
:: This entire process is to delete any leading spaces for each line in a text file.
:: Calls JREPL to remove leading spaces and append to input file.
:: Otherwise, leading white space will conflict when we reg query for display name.
call %jrepl% "[ \t]+(?=\||$)" "" /f "Plug-Uninstall-Selection-output.txt" /o -
:: Parses each line in Plug-Uninstall-Selection-output.txt to a variable
setlocal enabledelayedexpansion
set Counter=1
for /f "tokens=* delims=" %%x in (Plug-Uninstall-Selection-output.txt) do (
set "Line_PlugUninstSelect_!Counter!=%%x"
set /a Counter+=1
)
:: Parses each line in Plug-Uninstall-Selection-output.txt to a variable number counter
:: Each loop will subtract -1 from the variable, until 0. Once 0 it continues the script
:: Changing directory is needed
cls
cd /d "%~dp0Installer-files\Installer-Scripts\Settings"
set "cmd=findstr /R /N "^^" Plug-Uninstall-Selection-output.txt | find /C ":""
for /f %%U in ('!cmd!') do set PlugUninstnumber=%%U
:Plug-Uninstall-Selection-loopcheck11
:: Loop to check if VPnumber variable is 0 or not.
%Print%{0;255;50} %PlugUninstnumber% Uninstalls Remaining \n
IF %PlugUninstnumber% EQU 0 GOTO Plug-uninstall-selection-fin-11
IF %PlugUninstnumber% GEQ 1 GOTO Plug-uninstall-selection-start11-1
:Plug-uninstall-selection-start11-1
color 0C
@echo off