-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathInstaller Script by Nifer.cmd
More file actions
2743 lines (2561 loc) · 96.1 KB
/
Installer Script by Nifer.cmd
File metadata and controls
2743 lines (2561 loc) · 96.1 KB
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
:: ============================================================================
:: Installer Script by Nifer
:: Patch and Script by Nifer
:: Twitter - @NiferEdits
:: ============================================================================
color 0C
%SystemRoot%\System32\chcp.com 28591 >nul
%SystemRoot%\System32\mode.com con cols=105 lines=35
title Start as Admin
:: Colored-print macro (RGB via ANSI escape)
setlocal DisableDelayedExpansion
for /f %%a in ('echo prompt $E ^| cmd') do set "/AE=%%a"
(set \n=^^^
%=Newline DNR=%
)
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=
setlocal EnableDelayedExpansion
:: Admin elevation check
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
if '%errorlevel%' NEQ '0' (
echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs"
"%temp%\getadmin.vbs"
exit /B
)
if exist "%temp%\getadmin.vbs" del "%temp%\getadmin.vbs"
pushd "%CD%"
cd /d "%~dp0"
:: Basic path + tool variables
set "ROOT=%~dp0"
if "%ROOT:~-1%"=="\" set "ROOT=%ROOT:~0,-1%"
set "IF_DIR=%ROOT%\Installer-files"
set "SCR_DIR=%IF_DIR%\Installer-Scripts"
set "SET_DIR=%SCR_DIR%\Settings"
set "LOG_DIR=%IF_DIR%\Logs"
set "PLG_DIR=%IF_DIR%\Plugins"
set "MGX_DIR=%IF_DIR%\Magix Vegas Software"
set wget="%SCR_DIR%\wget.exe"
set UnRAR="%SCR_DIR%\UnRAR.exe"
:: Script version
set "ScriptVersion=v7.2.2"
set "ScriptVersion2=%ScriptVersion:v=%"
set "ScriptVersionDisplay=Version - %ScriptVersion2%"
:: Verify extract + create required dirs
if not exist "%IF_DIR%" goto :FatalNotExtracted
if not exist "%SET_DIR%" mkdir "%SET_DIR%" >nul 2>&1
if not exist "%LOG_DIR%" mkdir "%LOG_DIR%" >nul 2>&1
:: Copy curl into System32 if missing
if not exist "%SystemRoot%\System32\curl.exe" (
if exist "%SCR_DIR%\curl.exe" xcopy "%SCR_DIR%\curl.exe" "%SystemRoot%\System32\curl.exe*" /I /Q /Y /F >nul 2>&1
)
:: Log File info
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:.=_%"
:: ============================================================================
:: ITEM TABLE
:: Every supported product (software or plugin) is defined once here.
:: Properties:
:: .name - label shown in menus and reports
:: .group - "magix" (VEGAS software) or "plugin" (3rd-party)
:: .folder - subfolder name under Plugins\ or Magix Vegas Software\
:: .root - parent folder (PLG_DIR or MGX_DIR)
:: .fs_id - PixelDrain filesystem (folder) ID
:: to confirm; the JSON's "children" array lists the files.
:: .fs_file - exact filename to pull from that folder
:: .size - fallback / static size shown until the JSON fetch completes
:: (the live size from PixelDrain replaces it at runtime)
:: .regs - list of reg-query display-name patterns
:: .regexclude- patterns to subtract from the reg-query
:: .optrow - row number in the selection menu (1..N within group)
:: ============================================================================
set "ITEMS=vp vpdlm ve vi bfxsaph bfxmocha bfxcontin bfxsilho ignite rg nfxtitler nfxtotal rfxeff vpuadd"
:: Magix VEGAS software
set "vp.name=VEGAS Pro"
set "vp.group=magix"
set "vp.root=MGX_DIR"
set "vp.folder=VEGAS Pro"
set "vp.fs_id=bYnZa9LR"
set "vp.fs_file=VEGAS Pro.rar"
set "vp.size=665 MB"
set "vp.regs=VEGAS Pro 2026|VEGAS Pro 23.0|VEGAS Pro 22.0|VEGAS Pro 21.0|VEGAS Pro 20.0|VEGAS Pro 19.0|VEGAS Pro 18.0|VEGAS Pro 17.0|VEGAS Pro 16.0|VEGAS Pro 15.0|VEGAS Pro 14.0"
set "vp.regexclude=Voukoder|Mocha|Deep Learning|Capture"
set "vp.optrow=1"
set "vpdlm.name=VEGAS Pro AI Models"
set "vpdlm.group=magix"
set "vpdlm.root=MGX_DIR"
set "vpdlm.folder=VEGAS Pro AI Models"
set "vpdlm.fs_id=bYnZa9LR"
set "vpdlm.fs_file=AI Models.rar"
set "vpdlm.size=1.38 GB"
set "vpdlm.regs=Deep Learning Models|Vegas AI Models"
set "vpdlm.regexclude="
set "vpdlm.optrow=2"
set "ve.name=VEGAS Effects"
set "ve.group=magix"
set "ve.root=MGX_DIR"
set "ve.folder=VEGAS Effects"
set "ve.fs_id=bYnZa9LR"
set "ve.fs_file=VEGAS Effects.rar"
set "ve.size=205 MB"
set "ve.regs=VEGAS Effects"
set "ve.regexclude="
set "ve.optrow=3"
set "vi.name=VEGAS Image"
set "vi.group=magix"
set "vi.root=MGX_DIR"
set "vi.folder=VEGAS Image"
set "vi.fs_id=bYnZa9LR"
set "vi.fs_file=VEGAS Image.rar"
set "vi.size=105 MB"
set "vi.regs=VEGAS Image"
set "vi.regexclude="
set "vi.optrow=4"
:: 3rd-party plugins OFX
set "bfxsaph.name=BORIS FX - Sapphire"
set "bfxsaph.group=plugin"
set "bfxsaph.root=PLG_DIR"
set "bfxsaph.folder=Boris FX - Sapphire"
set "bfxsaph.fs_id=8yM3boe7"
set "bfxsaph.fs_file=BFX-Sapphire.rar"
set "bfxsaph.size=322 MB"
set "bfxsaph.regs=Boris FX Sapphire Plug-ins"
set "bfxsaph.regexclude=for After Effects|for Adobe|for Photoshop"
set "bfxsaph.optrow=1"
set "bfxmocha.name=BORIS FX - Mocha Pro"
set "bfxmocha.group=plugin"
set "bfxmocha.root=PLG_DIR"
set "bfxmocha.folder=Boris FX - Mocha Pro"
set "bfxmocha.fs_id=8yM3boe7"
set "bfxmocha.fs_file=BFX-Mocha.rar"
set "bfxmocha.size=165 MB"
set "bfxmocha.regs=Boris FX Mocha Plug-ins"
set "bfxmocha.regexclude=for After Effects|for Adobe|for Photoshop"
set "bfxmocha.optrow=2"
set "bfxcontin.name=BORIS FX - Continuum Complete"
set "bfxcontin.group=plugin"
set "bfxcontin.root=PLG_DIR"
set "bfxcontin.folder=Boris FX - Continuum Complete"
set "bfxcontin.fs_id=8yM3boe7"
set "bfxcontin.fs_file=BFX-BCC.rar"
set "bfxcontin.size=790 MB"
set "bfxcontin.regs=Boris FX Continuum|BorisFX Continuum"
set "bfxcontin.regexclude=for After Effects|for Adobe|for Photoshop"
set "bfxcontin.optrow=3"
set "bfxsilho.name=BORIS FX - Silhouette"
set "bfxsilho.group=plugin"
set "bfxsilho.root=PLG_DIR"
set "bfxsilho.folder=Boris FX - Silhouette"
set "bfxsilho.fs_id=8yM3boe7"
set "bfxsilho.fs_file=BFX-Silhouette.rar"
set "bfxsilho.size=1.45 GB"
set "bfxsilho.regs=Boris FX Silhouette|Silhouette"
set "bfxsilho.regexclude="
set "bfxsilho.optrow=4"
set "ignite.name=FXHOME - Ignite Pro"
set "ignite.group=plugin"
set "ignite.root=PLG_DIR"
set "ignite.folder=FXHOME - Ignite Pro"
set "ignite.fs_id=8yM3boe7"
set "ignite.fs_file=FXH-Ignite.rar"
set "ignite.size=430 MB"
set "ignite.regs=Ignite Pro OFX|Ignite Pro for OFX"
set "ignite.regexclude="
set "ignite.optrow=5"
set "rg.name=MAXON - Red Giant Suite"
set "rg.group=plugin"
set "rg.root=PLG_DIR"
set "rg.folder=MAXON - Red Giant Suite"
set "rg.fs_id=8yM3boe7"
set "rg.fs_file=MXN-RGSuite.rar"
set "rg.size=2.30 GB"
set "rg.regs=Red Giant"
set "rg.regexclude=Magic Bullet PhotoLooks"
set "rg.optrow=6"
set "nfxtitler.name=NEWBLUEFX - Titler Pro 7"
set "nfxtitler.group=plugin"
set "nfxtitler.root=PLG_DIR"
set "nfxtitler.folder=NewBlueFX - Titler Pro 7 Ultimate"
set "nfxtitler.fs_id=8yM3boe7"
set "nfxtitler.fs_file=NFX-Titler.rar"
set "nfxtitler.size=630 MB"
set "nfxtitler.regs=NewBlue Titler Pro 7 Ultimate|NewBlue TotalFX 7"
set "nfxtitler.regexclude="
set "nfxtitler.optrow=7"
set "nfxtotal.name=NEWBLUEFX - TotalFX 360"
set "nfxtotal.group=plugin"
set "nfxtotal.root=PLG_DIR"
set "nfxtotal.folder=NewBlueFX - TotalFX 360"
set "nfxtotal.fs_id=8yM3boe7"
set "nfxtotal.fs_file=NFX-TotalFX.rar"
set "nfxtotal.size=790 MB"
set "nfxtotal.regs=NewBlue TotalFX 360"
set "nfxtotal.regexclude="
set "nfxtotal.optrow=8"
set "rfxeff.name=REVISIONFX - Effections Plus"
set "rfxeff.group=plugin"
set "rfxeff.root=PLG_DIR"
set "rfxeff.folder=REVisionFX - Effections Plus"
set "rfxeff.fs_id=8yM3boe7"
set "rfxeff.fs_file=RFX-Effections.rar"
set "rfxeff.size=50 MB"
set "rfxeff.regs=RE:Vision Effections"
set "rfxeff.regexclude="
set "rfxeff.optrow=9"
set "vpuadd.name=VEGAS Pro 2026 Ultimate Addons"
set "vpuadd.group=plugin"
set "vpuadd.root=PLG_DIR"
set "vpuadd.folder=VEGAS Pro 2026 - Ultimate Addons"
set "vpuadd.fs_id=8yM3boe7"
set "vpuadd.fs_file=VPU-Addons.rar"
set "vpuadd.size=8.19 GB"
set "vpuadd.regs=Boris FX Continuum 2026.1 OFX|Boris FX Continuum 2026 OFX|Boris FX CrumplePop for VST3|Boris FX Sound Forge 2026|Sound Forge Pro 2026|Boris FX Optics 2026|Boris FX SoundApp"
set "vpuadd.regexclude="
set "vpuadd.optrow=10"
:: VEGAS Pro 2026 Ultimate Addons bundle
set "VPU_SUBS=vpu_bcc vpu_crumpl vpu_forge vpu_optics vpu_soundapp"
set "vpu_bcc.name=Boris FX Continuum 2026.1 OFX (for VEGAS Pro 2026)"
set "vpu_bcc.regs=Boris FX Continuum 2026.1 OFX|Boris FX Continuum 2026 OFX"
set "vpu_bcc.regexclude="
set "vpu_crumpl.name=Boris FX CrumplePop for VST3"
set "vpu_crumpl.regs=Boris FX CrumplePop for VST3"
set "vpu_crumpl.regexclude="
set "vpu_forge.name=Boris FX Sound Forge 2026"
set "vpu_forge.regs=Boris FX Sound Forge 2026|Sound Forge Pro 2026"
set "vpu_forge.regexclude="
set "vpu_optics.name=Boris FX Optics 2026"
set "vpu_optics.regs=Boris FX Optics 2026"
set "vpu_optics.regexclude="
set "vpu_soundapp.name=Boris FX SoundApp"
set "vpu_soundapp.regs=Boris FX SoundApp"
set "vpu_soundapp.regexclude="
:: ======================================================================================================================
:: PATCH ITEMS
set "patch_partilu.name=Boris FX Particle Illusion 2025.5"
set "patch_partilu.regs=Boris FX Particle Illusion 2025.5|Particle Illusion 2025.5"
set "patch_partilu.regexclude="
set "patch_vp2026.name=Boris FX VEGAS Pro 2026"
set "patch_vp2026.regs=Boris FX VEGAS Pro 2026|Boris FX Vegas Pro 2026"
set "patch_vp2026.regexclude="
set "patch_mocha2026.name=Boris FX Mocha Plug-ins 2026 for OFX"
set "patch_mocha2026.regs=Boris FX Mocha Plug-ins 2026 for OFX"
set "patch_mocha2026.regexclude=for After Effects|for Adobe|for Photoshop"
set "PATCH_ITEMS=vpu_bcc vpu_crumpl vpu_forge vpu_optics vpu_soundapp patch_partilu patch_vp2026 patch_mocha2026"
goto :CheckAutoUpdate
:: ======================================================================================================================
:: AUTO-UPDATE CHECK
:CheckAutoUpdate
:: States: auto-update-0 (undecided), -1 (enabled), -2 (disabled)
if not exist "%SET_DIR%\auto-update*.txt" type nul > "%SET_DIR%\auto-update-0.txt"
if exist "%SET_DIR%\auto-update-1.txt" goto :AutoUpdateEnabled
if exist "%SET_DIR%\auto-update-2.txt" goto :Main
if exist "%SET_DIR%\auto-update-0.txt" goto :AutoUpdatePrompt
goto :Main
:AutoUpdatePrompt
cls
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
echo/
%Print%{204;204;204} 1) Enable Auto Updating \n
%Print%{204;204;204} 2) Disable Auto Updating \n
echo/
%SystemRoot%\System32\choice.exe /C 12 /M "Type the number (1-2) of what option you want." /N
if errorlevel 2 (ren "%SET_DIR%\auto-update-0.txt" "auto-update-2.txt" >nul 2>&1 & goto :Main)
if errorlevel 1 (ren "%SET_DIR%\auto-update-0.txt" "auto-update-1.txt" >nul 2>&1 & goto :AutoUpdateEnabled)
goto :Main
:AutoUpdateEnabled
:: Fetch latest release tag from GitHub
set "ScriptVersionGit="
for /f "tokens=1,* delims=:" %%A in ('curl -kLs https://api.github.com/repos/itsnifer/Nifer-Installer-Script/releases/latest ^| findstr /C:"tag_name"') do set "ScriptVersionGit=%%B"
if not defined ScriptVersionGit goto :Main
set "ScriptVersionGit=%ScriptVersionGit:",=%"
set "ScriptVersionGit=%ScriptVersionGit:"=%"
set "ScriptVersionGit=%ScriptVersionGit:v=%"
set "ScriptVersionGit=%ScriptVersionGit: =%"
if "%ScriptVersion2%"=="%ScriptVersionGit%" (
echo Script is up to date.
timeout /T 3 /nobreak >nul
goto :Main
)
if %ScriptVersion2% GTR %ScriptVersionGit% goto :Main
cls
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
echo/
:: Show release notes (changelog) from the GitHub release body before the prompt
call :RenderChangelog
echo/
%Print%{204;204;204} 1) Update to the Latest Version \n
%Print%{255;112;0} 2) Skip this update \n
echo/
%SystemRoot%\System32\choice.exe /C 12 /M "Type the number (1-2) of what option you want." /N
if errorlevel 2 goto :Main
if errorlevel 1 goto :DoUpdate
goto :Main
:DoUpdate
if not exist "%IF_DIR%\Nifer Installer Script" mkdir "%IF_DIR%\Nifer Installer Script"
cd /d "%IF_DIR%\Nifer Installer Script"
cls
%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 ^| findstr /C:"browser_download_url"') do curl -kOL %%B
echo/
%Print%{231;72;86} Applying Update \n
set "updateextract="
for %%A in ("*.rar") do set "updateextract=%%A"
if defined updateextract (
%UnRAR% x -u -y -inul "%updateextract%"
del "%updateextract%" 2>nul
)
if exist "%IF_DIR%\Nifer Installer Script\Installer-files\Installer-Scripts\Update.cmd" (
start "" "%IF_DIR%\Nifer Installer Script\Installer-files\Installer-Scripts\Update.cmd"
)
exit
:: ======================================================================================================================
:Main
cd /d "%ROOT%"
call :ResetRunState
title Installer Script by Nifer
:: One-time prefetch of live PixelDrain sizes (only first time we hit Main)
if not defined PREFETCH_DONE call :ShowPrefetchAndRun
cls
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
echo/
%Print%{204;204;204} 1) VEGAS Software \n
echo/
%Print%{204;204;204} 2) 3rd Party Plugins \n
echo/
%Print%{204;204;204} 3) Settings \n
echo/
echo/
%Print%{0;185;255} 4) Donate to support (Paypal) \n
echo/
%Print%{255;112;0} 5) Quit \n
echo/
%SystemRoot%\System32\choice.exe /C 12345 /M "Type the number (1-5) of what option you want." /N
set "MENU_CHOICE=%errorlevel%"
cls
if %MENU_CHOICE% EQU 5 goto :Quit
if %MENU_CHOICE% EQU 4 goto :Donate
if %MENU_CHOICE% EQU 3 goto :SettingsMenu
if %MENU_CHOICE% EQU 2 (set "ACTIVE_GROUP=plugin" & goto :GroupHub)
if %MENU_CHOICE% EQU 1 (set "ACTIVE_GROUP=magix" & goto :GroupHub)
goto :Main
:Donate
start "" "https://paypal.me/ItsNifer?country.x=US^&locale.x=en_US"
goto :Main
:Quit
cls
echo Quitting Nifer's Installer Script
echo Twitter - @NiferEdits
timeout /T 3 /nobreak >nul
exit
:: ======================================================================================================================
:: GROUP HUB
:GroupHub
cd /d "%ROOT%"
call :ResetRunState
:: Scan the registry for installed items
echo/
echo Loading...
call :ScanAllForGroup "%ACTIVE_GROUP%"
goto :GroupMenu
:GroupMenu
cls
color 0C
echo/
if /I "%ACTIVE_GROUP%"=="magix" call :PrintMagixHeader
if /I "%ACTIVE_GROUP%"=="plugin" call :PrintPluginHeader
echo/
%Print%{255;255;255} Currently installed / available items: \n
echo/
call :DisplayItemTableHeader
:: Show items without row numbers
call :DisplayGroup 0
echo/
echo --------------------------------
call :DisplayLegend
echo --------------------------------
echo/
%Print%{204;204;204} 1) Download \n
%Print%{204;204;204} 2) Uninstall \n
%Print%{255;112;0} 3) Main Menu \n
echo/
%SystemRoot%\System32\choice.exe /C 123 /M "Type the number (1-3) of what you want." /N
set "GH_CHOICE=%errorlevel%"
cls
if %GH_CHOICE% EQU 3 goto :Main
if %GH_CHOICE% EQU 2 goto :UninstallPicker
if %GH_CHOICE% EQU 1 goto :DownloadPicker
goto :GroupMenu
:PrintMagixHeader
echo ******************************************************************
echo *** ^(Option #1^) VEGAS Software ***
echo ******************************************************************
exit /b
:PrintPluginHeader
echo *****************************************************************
echo *** ^(Option #2^) 3rd Party Plugins for OFX ***
echo *****************************************************************
exit /b
:: ======================================================================================================================
:: DOWNLOAD PICKER
:DownloadPicker
cls
color 0C
echo/
if /I "%ACTIVE_GROUP%"=="magix" call :PrintMagixHeader
if /I "%ACTIVE_GROUP%"=="plugin" call :PrintPluginHeader
if /I "%ACTIVE_GROUP%"=="magix" %Print%{255;255;255} Available software to Download: \n
if /I "%ACTIVE_GROUP%"=="plugin" %Print%{255;255;255} Available plugins to Download: \n
echo/
call :DisplayItemTableHeader
call :DisplayGroup 1
call :CountGroupItems
call :GroupTotalSize
if /I "%ACTIVE_GROUP%"=="plugin" (set "GROUP_LABEL=PLUGINS") else (set "GROUP_LABEL=SOFTWARE")
echo/
%Print%{0;185;255} %GROUP_COUNT_PLUS1%) ALL %GROUP_LABEL% (%GROUP_TOTAL_SIZE%) \n
echo/
echo --------------------------------
call :DisplayLegend
echo --------------------------------
echo/
%Print%{204;204;204}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 :DownloadPicker
)
call :ExpandAll "%choices%" choices
call :ClearPicks
call :ApplyPicksByRow "%choices%"
if %PICKS_ANY% EQU 0 (
echo/
echo No valid selections were made.
pause
goto :DownloadPicker
)
goto :ConfirmDownload
:ConfirmDownload
cls
color 0C
echo/
if /I "%ACTIVE_GROUP%"=="plugin" %Print%{231;72;86} Are you sure you want to install these selected plugins? \n
if /I not "%ACTIVE_GROUP%"=="plugin" %Print%{231;72;86} Are you sure you want to install these selected programs? \n
echo/
call :DisplayItemTableHeader
call :DisplayPicked
echo/
echo --------------------------------
echo/
%Print%{204;204;204} 1) Yes, continue \n
%Print%{255;112;0} 2) No, go back \n
echo/
%SystemRoot%\System32\choice.exe /C 12 /M "Type the number (1-2) of what you want." /N
set "CD_CHOICE=%errorlevel%"
cls
if %CD_CHOICE% EQU 2 (
for /f "tokens=1 delims==" %%A in ('set PICK. 2^>nul') do set "%%A="
goto :GroupHub
)
if defined PICK.vpuadd if not defined VPUADD_CONFIRMED goto :VPUAddPicker
goto :CheckExistingVPBeforeInstall
:: ======================================================================================================================
:: VPU ADDONS BUNDLE
:VPUAddPicker
for %%I in (%VPU_SUBS%) do call :ScanItem %%I
cls
color 0C
echo/
%Print%{231;72;86} VEGAS Pro 2026 Ultimate Addons - Bundle Contents \n
echo --------------------------------
echo/
%Print%{0;185;255} This bundle includes the following software and plugins: \n
echo/
for %%I in (%VPU_SUBS%) do call :VPUAddDisplaySub %%I
echo/
echo --------------------------------
echo/
%Print%{244;255;0} Note: Continuum Complete 2026.1 included in this bundle is \n
%Print%{244;255;0} built specifically for VEGAS Pro 2026. \n
echo/
%Print%{0;185;255} Total download size:
call :ResolveSizeFor "vpuadd" VPU_DL_SIZE
%Print%{0;185;255} (%VPU_DL_SIZE%) \n
echo/
%Print%{255;255;255} Do you want to continue with the Ultimate Addons download? \n
echo/
%Print%{204;204;204} 1) Yes, continue \n
%Print%{0;185;255} 2) Skip - download the rest of the queue without Ultimate Addons \n
%Print%{255;112;0} 3) No, go back \n
echo/
%SystemRoot%\System32\choice.exe /C 123 /M "Type the number (1-3) of what you want." /N
set "VPU_CHOICE=%errorlevel%"
cls
if %VPU_CHOICE% EQU 3 goto :DownloadPicker
if %VPU_CHOICE% EQU 2 (set "VPUADD_CONFIRMED=1" & set "PICK.vpuadd=" & goto :VPUAddSkip)
if %VPU_CHOICE% EQU 1 (set "VPUADD_CONFIRMED=1" & goto :CheckExistingVPBeforeInstall)
goto :VPUAddPicker
:VPUAddSkip
set "VPU_OTHER=0"
for %%I in (%ITEMS%) do if defined PICK.%%I set "VPU_OTHER=1"
if "%VPU_OTHER%"=="0" (
cls
%Print%{244;255;0} Ultimate Addons was your only selection. Returning to the menu. \n
timeout /T 3 /nobreak >nul
goto :DownloadPicker
)
goto :CheckExistingVPBeforeInstall
:VPUAddDisplaySub
set "VDS_ID=%~1"
call set "VDS_NAME=%%%VDS_ID%.name%%"
call set "VDS_CNT=%%count.%VDS_ID%%%"
if not defined VDS_CNT set "VDS_CNT=0"
if %VDS_CNT% GEQ 1 %Print%{0;255;50} [INSTALLED] %VDS_NAME% \n
if %VDS_CNT% LSS 1 %Print%{231;72;86} [NOT INSTALLED] %VDS_NAME% \n
exit /b
:: ======================================================================================================================
:: RE-PATCH
:RepatchPicker
for %%I in (%PATCH_ITEMS%) do call :ScanItem %%I
cls
color 0C
echo/
%Print%{231;72;86} Re-Patch - Detected Installations \n
echo --------------------------------
echo/
%Print%{0;185;255} The following items will be re-patched if installed: \n
echo/
for %%I in (%PATCH_ITEMS%) do call :RepatchDisplay %%I
echo/
echo --------------------------------
echo/
%Print%{244;255;0} This will reapply the NiferEdits patch to every detected install. \n
%Print%{244;255;0} Items not installed will be skipped automatically by the patcher. \n
echo/
%Print%{204;204;204} 1) Continue - Patch all installed software \n
%Print%{255;112;0} 2) Cancel - go back \n
echo/
%SystemRoot%\System32\choice.exe /C 12 /M "Type the number (1-2) of what you want." /N
set "RP_CHOICE=%errorlevel%"
cls
if %RP_CHOICE% EQU 2 goto :SettingsMenu
if %RP_CHOICE% EQU 1 goto :RepatchRun
goto :RepatchPicker
:RepatchDisplay
set "RPD_ID=%~1"
call set "RPD_NAME=%%%RPD_ID%.name%%"
call set "RPD_CNT=%%count.%RPD_ID%%%"
if not defined RPD_CNT set "RPD_CNT=0"
if %RPD_CNT% GEQ 1 %Print%{0;255;50} [INSTALLED] %RPD_NAME% \n
if %RPD_CNT% LSS 1 %Print%{231;72;86} [NOT INSTALLED] %RPD_NAME% \n
exit /b
:RepatchRun
cls
color 0C
echo/
%Print%{0;185;255} Downloading the latest NiferEdits patch... \n
echo/
:: Download the patch executable from the PixelDrain folder
set "RP_OUT=%SCR_DIR%\NiferEdits_VEGAS_Pro_2026_Patch.exe"
if exist "%RP_OUT%" del "%RP_OUT%" >nul 2>&1
%wget% -q --no-check-certificate --output-document="%RP_OUT%" "https://pixeldrain.com/api/filesystem/3rVxkRD5/NiferEdits_VEGAS_Pro_2026_Patch.exe" 2>nul
if not exist "%RP_OUT%" (
%Print%{231;72;86} Download failed. Please check your connection and try again. \n
echo/
pause
goto :SettingsMenu
)
for %%G in ("%RP_OUT%") do if %%~zG LEQ 0 (
%Print%{231;72;86} Downloaded file is empty. Please try again later. \n
del "%RP_OUT%" >nul 2>&1
echo/
pause
goto :SettingsMenu
)
echo/
%Print%{0;185;255} Running the patch silently. This may take a moment... \n
echo/
start "" /wait "%RP_OUT%" /VERYSILENT /SUPPRESSMSGBOXES /NORESTART
del "%RP_OUT%" >nul 2>&1
cls
color 0C
echo/
echo/
%Print%{0;255;50} Everything has been Patched. \n
echo/
%Print%{255;255;255} Press any key to return to Settings. \n
echo/
pause >nul
goto :SettingsMenu
:: ======================================================================================================================
:: Prompt to uninstall existing VEGAS Pro(s) before installing VP2026
:CheckExistingVPBeforeInstall
if not defined PICK.vp goto :CheckAlreadyDownloaded
call :ListInstalledVP
if %VP_INSTALLED_COUNT% EQU 0 goto :CheckAlreadyDownloaded
cls
color 0C
echo/
%Print%{231;72;86} Found installations of the following: \n
echo ---------------------------------
echo/
for /f "usebackq delims=" %%L in ("%SET_DIR%\VP-Installations-found.txt") do echo %%L
echo/
echo ---------------------------------
echo/
%Print%{0;185;255}NOTE: You will need to Un-Install previous versions of VEGAS Pro if they match VEGAS Pro 2026. \n
%Print%{0;185;255} Otherwise, installing VP2026 will not work. Older versions of VP are okay to keep. \n
echo/
%Print%{255;255;255} What do you want to do? \n
%Print%{204;204;204} 1) Select which programs to Uninstall, then continue \n
%Print%{204;204;204} 2) Don't uninstall anything, just continue \n
%Print%{255;112;0} 3) Cancel and return to Main Menu \n
echo/
%SystemRoot%\System32\choice.exe /C 123 /M "Type the number (1-3) of what you want." /N
set "VP_PRE_CHOICE=%errorlevel%"
cls
if %VP_PRE_CHOICE% EQU 3 goto :Main
if %VP_PRE_CHOICE% EQU 2 goto :CheckAlreadyDownloaded
if %VP_PRE_CHOICE% EQU 1 goto :SelectVPToUninstall
goto :CheckAlreadyDownloaded
:SelectVPToUninstall
cls
color 0C
echo/
%Print%{231;72;86} Select which VP installation(s) you want to uninstall \n
echo ---------------------------------
echo/
set /a _n=0
for /f "usebackq delims=" %%L in ("%SET_DIR%\VP-Installations-found.txt") do (
set /a _n+=1
call set "VPU_!_n!=%%L"
call echo !_n! - %%L
)
set "VPU_MAX=%_n%"
set /a _allnum=_n+1
echo %_allnum% - ALL OPTIONS
echo/
echo ---------------------------------
echo/
%Print%{231;72;86}Type your choices with a space after each choice
%Print%{244;255;0}(ie: 1 2 3 4) \n
set "vpchoices="
set /p "vpchoices=Type and press Enter when finished: "
if not defined vpchoices goto :SelectVPToUninstall
call :ExpandNumericAll "%vpchoices%" %VPU_MAX% %_allnum% vpchoices
cls
echo/
%Print%{231;72;86} Are you sure you want to Uninstall these selected programs? \n
echo ---------------------------------
echo/
for %%N in (%vpchoices%) do (
call echo %%VPU_%%N%%
)
echo/
echo ---------------------------------
%Print%{204;204;204} 1 = Yes, Uninstall \n
%Print%{255;112;0} 2 = No, Cancel \n
echo/
%SystemRoot%\System32\choice.exe /C 12 /M "Type the number (1-2) of what you want." /N
if errorlevel 2 goto :CheckExistingVPBeforeInstall
if errorlevel 1 goto :DoVPUninstalls
goto :SelectVPToUninstall
:DoVPUninstalls
cls
color 0C
for %%N in (%vpchoices%) do (
call :UninstallByDisplayName "%%VPU_%%N%%"
)
echo Finished uninstalling selected items
timeout /T 3 /nobreak >nul
goto :CheckAlreadyDownloaded
:: ======================================================================================================================
:: Check if items are already downloaded
:CheckAlreadyDownloaded
set "ALR_ANY=0"
for %%I in (%ITEMS%) do (
if defined PICK.%%I call :CheckItemAlreadyDownloaded %%I
)
if %ALR_ANY% EQU 0 goto :FetchNamesAndSizes
:: Prompt the user
cls
color 0C
echo/
%Print%{231;72;86} You already have these items downloaded: \n
echo/
for %%I in (%ITEMS%) do (
if defined ALR.%%I call :DisplayItemName %%I
)
echo/
%Print%{231;72;86} Do you want to re-download? \n
echo/
%Print%{204;204;204} 1) Re-download these items \n
%Print%{204;204;204} 2) Skip these items (still install) \n
%Print%{255;112;0} 3) No, back to Main Menu \n
echo/
%SystemRoot%\System32\choice.exe /C 123 /M "Type the number (1-3) of what you want." /N
set "AD_CHOICE=%errorlevel%"
cls
if %AD_CHOICE% EQU 3 goto :Main
if %AD_CHOICE% EQU 2 (
rem Remove the download step for these items, keep them for install
for %%I in (%ITEMS%) do (
if defined ALR.%%I set "SKIP_DL.%%I=1"
)
goto :FetchNamesAndSizes
)
if %AD_CHOICE% EQU 1 goto :FetchNamesAndSizes
goto :FetchNamesAndSizes
:CheckItemAlreadyDownloaded
set "CID=%~1"
call set "CID_ROOT=%%%CID%.root%%"
call set "CID_FOLDER=%%%CID%.folder%%"
if /I "%CID_ROOT%"=="PLG_DIR" (set "CID_FULL=%PLG_DIR%\%CID_FOLDER%") else (set "CID_FULL=%MGX_DIR%\%CID_FOLDER%")
:: consider "already downloaded" if the plugin folder exists AND is not empty
if exist "%CID_FULL%\*" (
set "ALR.%CID%=1"
set "ALR_ANY=1"
)
exit /b
:: ======================================================================================================================
:: Build queue of items to download/install, take file sizes from PixelDrain fetch
:FetchNamesAndSizes
cd /d "%ROOT%"
call :BuildQueue
if %QUEUE_SIZE% EQU 0 goto :DownloadFinished
set "QUEUE_POS=1"
goto :DownloadNext
:BuildQueue
set "QUEUE="
set /a QUEUE_SIZE=0
for %%I in (%ITEMS%) do (
if defined PICK.%%I (
if not defined SKIP_DL.%%I (
set "QUEUE=!QUEUE! %%I"
set /a QUEUE_SIZE+=1
) else (
rem mark for install even though we skip download
set "INSTALL.%%I=1"
)
)
)
exit /b
:: ======================================================================================================================
:: DOWNLOAD LOOP
:DownloadNext
if not defined QUEUE goto :DownloadFinished
for /f "tokens=1* delims= " %%A in ("%QUEUE%") do (
set "DL_ID=%%A"
set "QUEUE=%%B"
)
if not defined DL_ID goto :DownloadFinished
call :DownloadOne "%DL_ID%"
set /a QUEUE_POS+=1
goto :DownloadNext
:DownloadOne
set "DL_ID=%~1"
set "DL_RETRY=0"
:DownloadTry
cls
color 0C
call set "DL_NAME=%%%DL_ID%.name%%"
%Print%{0;255;50} Item %QUEUE_POS% of %QUEUE_SIZE% \n
%Print%{0;185;255}Downloading %DL_NAME%, please be patient... \n
:: Resolve destination folder + PixelDrain folder/file IDs
call :ResolveDownloadTarget "%DL_ID%"
if not defined DL_FS_ID goto :DownloadOneNoConfig
if not exist "%DL_TARGET%" mkdir "%DL_TARGET%" >nul 2>&1
call :PixelDrainDownload "%DL_FS_ID%" "%DL_FS_FILE%" "%DL_TARGET%"
:: PixelDrainDownload sets DL_OK=1 on success
if "%DL_OK%"=="1" (
set "INSTALL.%DL_ID%=1"
set "RESULT.%DL_ID%=downloaded"
exit /b
)
:: Failed
echo/
%Print%{255;0;0}Download Failed! \n
if %DL_RETRY% EQU 0 %Print%{231;72;86}Re-trying download... \n
if %DL_RETRY% EQU 0 set "DL_RETRY=1" & goto :DownloadTry
%Print%{231;72;86}Skipping queue \n
set "RESULT.%DL_ID%=failed"
exit /b
:DownloadOneNoConfig
%Print%{255;0;0}Item has no PixelDrain folder ID configured. Skipping. \n
set "RESULT.%DL_ID%=failed"
timeout /T 3 /nobreak >nul
exit /b
:ResolveDownloadTarget
:: Sets DL_TARGET, DL_FS_ID, DL_FS_FILE based on item id
set "RDT_ID=%~1"
call set "RDT_ROOT=%%%RDT_ID%.root%%"
call set "RDT_FOLDER=%%%RDT_ID%.folder%%"
call set "RDT_FS_ID=%%%RDT_ID%.fs_id%%"
call set "RDT_FS_FILE=%%%RDT_ID%.fs_file%%"
if /I "%RDT_ROOT%"=="PLG_DIR" (set "DL_TARGET=%PLG_DIR%\%RDT_FOLDER%") else (set "DL_TARGET=%MGX_DIR%\%RDT_FOLDER%")
set "DL_FS_ID=%RDT_FS_ID%"
set "DL_FS_FILE=%RDT_FS_FILE%"
:: Treat unfilled placeholders as "no ID configured"
echo %DL_FS_ID% | findstr /B /C:"REPLACE_ME" >nul && set "DL_FS_ID="
exit /b
:: ======================================================================================================================
:: PIXELDRAIN DOWNLOAD - per-item folder JSON workflow
:: %1 = PixelDrain filesystem ID
:: %2 = filename inside that folder
:: %3 = local destination folder
:: DL_OK = 1 on success, 0 on failure
:PixelDrainDownload
set "PDD_FS_ID=%~1"
set "PDD_FILE=%~2"
set "PDD_DEST=%~3"
set "DL_OK=0"
if "%PDD_FS_ID%"=="" exit /b
if "%PDD_FILE%"=="" exit /b
:: download the folder's JSON manifest
set "PDD_JSON=%SCR_DIR%\pd_fs_%PDD_FS_ID%.json"
if exist "%PDD_JSON%" del "%PDD_JSON%" >nul 2>&1
%wget% -q --no-check-certificate --output-document="%PDD_JSON%" "https://pixeldrain.com/api/filesystem/%PDD_FS_ID%" 2>nul
if exist "%PDD_JSON%" goto :PDD_FindFile
%Print%{231;72;86}[ERROR] Failed to download PixelDrain JSON for %PDD_FS_ID% \n
exit /b
:PDD_FindFile
:: confirm the file exists in the manifest's children, capture its size
set "PDD_STATUS=NOT_FOUND"
set "PDD_SIZE="
call :ParseJsonSize "%PDD_JSON%" "%PDD_FILE%" PDD_SIZE
del "%PDD_JSON%" >nul 2>&1
if defined PDD_SIZE if not "%PDD_SIZE%"=="" set "PDD_STATUS=FOUND"
if /I "%PDD_STATUS%"=="FOUND" goto :PDD_DoDownload
%Print%{231;72;86}[ERROR] '%PDD_FILE%' not found in PixelDrain folder %PDD_FS_ID% \n
exit /b
:PDD_DoDownload
:: download the file directly to the destination with the correct name
set "PDD_OUT=%PDD_DEST%\%PDD_FILE%"
set "PDD_TMP=!PDD_FILE: =__SPC__!"
set "PDD_FILE_URL=!PDD_TMP:__SPC__=%%20!"
if exist "%PDD_OUT%" del "%PDD_OUT%" >nul 2>&1
%wget% --no-check-certificate --output-document="%PDD_OUT%" "https://pixeldrain.com/api/filesystem/%PDD_FS_ID%/%PDD_FILE_URL%"
if exist "%PDD_OUT%" goto :PDD_VerifySize
%Print%{231;72;86}[ERROR] wget failed to write '%PDD_FILE%' \n
exit /b
:PDD_VerifySize
:: verify the downloaded size matches what the manifest reported
for %%G in ("%PDD_OUT%") do set /a PDD_LOCAL=%%~zG
if not defined PDD_SIZE set "PDD_SIZE=0"
if "%PDD_SIZE%"=="0" (
if %PDD_LOCAL% GTR 0 set "DL_OK=1"
) else (
if %PDD_LOCAL% EQU %PDD_SIZE% set "DL_OK=1"
if not "!DL_OK!"=="1" if %PDD_LOCAL% GEQ %PDD_SIZE% set "DL_OK=1"
)
exit /b
:: ======================================================================================================================
:: PREFETCH LIVE SIZES
:ShowPrefetchAndRun
cls
color 0C
echo/
echo/
call :LoadPrefetchCache
if "%CACHE_HIT%"=="1" goto :PrefetchUseCache
%Print%{0;185;255} Fetching latest script information \n
echo/
%Print%{204;204;204} (this only happens once per session) \n
call :PrefetchLiveSizes
:: When the "Live Versions" toggle is on, also pull the latest plugin/program versions from the public Google Sheet so DisplayItem can show them
if exist "%SET_DIR%\Live-Versions-1.txt" call :PrefetchLatestVersions
:: Save the parsed results to a disk cache so the next run can skip the network
call :SavePrefetchCache
call :RestoreConsole
set "PREFETCH_DONE=1"
exit /b
:PrefetchUseCache
%Print%{0;185;255} Using cached script information \n
echo/
%Print%{204;204;204} (cache refreshes every hour) \n
call :RestoreConsole
set "PREFETCH_DONE=1"
exit /b
:LoadPrefetchCache
:: Sets CACHE_HIT=1 and populates live_size.*, live_bytes.*, latest_ver.* from the cache file IF it exists AND was modified within the last hour. Otherwise CACHE_HIT=0
set "CACHE_HIT=0"
set "CACHE_FILE=%SCR_DIR%\prefetch_cache.txt"
if not exist "%CACHE_FILE%" exit /b
call :WriteCacheAgeScript
set "CACHE_AGE="
for /f "usebackq delims=" %%A in (`cscript //nologo //E:JScript "%SCR_DIR%\cache_age.js" "%CACHE_FILE%" 60 2^>nul`) do set "CACHE_AGE=%%A"
if /I not "%CACHE_AGE%"=="FRESH" exit /b
:: Cache is fresh — load it. Each line is "key=value" and we set them directly
set "_HAS_LATEST=0"
for /f "usebackq delims=" %%L in ("%CACHE_FILE%") do call :LoadCacheLine "%%L"
if exist "%SET_DIR%\Live-Versions-1.txt" if "%_HAS_LATEST%"=="0" exit /b
set "CACHE_HIT=1"
exit /b
:WriteCacheAgeScript
:: Writes a tiny JScript that reports whether a file was modified within the last N minutes
set "CAS_JS=%SCR_DIR%\cache_age.js"
if exist "%CAS_JS%" exit /b
if not exist "%SCR_DIR%" mkdir "%SCR_DIR%" >nul 2>&1
> "%CAS_JS%" echo var args=WScript.Arguments;
>>"%CAS_JS%" echo if(args.length^<2){WScript.StdOut.Write("STALE");WScript.Quit(0);}