-
Notifications
You must be signed in to change notification settings - Fork 1
/
RemoveDistro.nsh
1593 lines (1330 loc) · 83.1 KB
/
RemoveDistro.nsh
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
; ------------ Uninstall Distros Macro --------------
!macro Uninstall_Distros
${If} $DistroName == "PING (Partimg Is Not Ghost)"
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\PING"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label PING (Partimg Is Not Ghost)" "APPEND /multiboot/menu/ping.cfg"
Delete "$BootDir\multiboot\menu\ping.cfg"
${ElseIf} $DistroName == "Archlinux" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\archlinux"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Archlinux" "APPEND /multiboot/menu/archlinux.cfg"
Delete "$BootDir\multiboot\menu\archlinux.cfg"
${ElseIf} $DistroName == "Bodhi" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\bodhi"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Bodhi" "APPEND /multiboot/menu/bodhi.cfg"
Delete "$BootDir\multiboot\menu\bodhi.cfg"
${ElseIf} $DistroName == "CAELinux (Computer Aided Engineering)" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\caelinux"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label CAELinux (Computer Aided Engineering)" "APPEND /multiboot/menu/cae.cfg"
Delete "$BootDir\multiboot\menu\cae.cfg"
${ElseIf} $DistroName == "Tails 0.13 (Anonymous Browsing)"
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\tails"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Tails (Anonymous Browsing)" "APPEND /multiboot/menu/tails.cfg"
Delete "$BootDir\multiboot\menu\tails.cfg"
${ElseIf} $DistroName == "Tails 0.14 (Anonymous Browsing)"
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\tails014"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Tails 0.14 (Anonymous Browsing)" "APPEND /multiboot/menu/tails014.cfg"
Delete "$BootDir\multiboot\menu\tails014.cfg"
${ElseIf} $DistroName == "Tails 0.15 (Anonymous Browsing)"
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\tails015"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Tails 0.15 (Anonymous Browsing)" "APPEND /multiboot/menu/tails015.cfg"
Delete "$BootDir\multiboot\menu\tails015.cfg"
${ElseIf} $DistroName == "Tails (Anonymous Browsing)"
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\tails"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Tails (Anonymous Browsing)" "APPEND /multiboot/menu/tails.cfg"
Delete "$BootDir\multiboot\menu\tails.cfg"
${ElseIf} $DistroName == "Liberte (Anonymous Browsing)"
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\liberte"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Liberte (Anonymous Browsing)" "APPEND /multiboot/menu/liberte.cfg"
Delete "$BootDir\multiboot\menu\liberte.cfg"
${ElseIf} $DistroName == "CentOS"
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\centos"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label CentOS" "APPEND /multiboot/menu/centos.cfg"
Delete "$BootDir\multiboot\menu\centos.cfg"
${ElseIf} $DistroName == "CentOS 64bit"
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\centos64"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label CentOS 64bit" "APPEND /multiboot/menu/centos64.cfg"
Delete "$BootDir\multiboot\menu\centos64.cfg"
${ElseIf} $DistroName == "Rescatux"
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\rescatux"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Rescatux" "APPEND /multiboot/menu/rescatux.cfg"
Delete "$BootDir\multiboot\menu\rescatux.cfg"
${ElseIf} $DistroName == "Fedora 15 GNOME 32bit"
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\fedora"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Fedora 15" "APPEND /multiboot/menu/fed15.cfg"
Delete "$BootDir\multiboot\menu\fed15.cfg"
${ElseIf} $DistroName == "Fedora 15 GNOME 64bit"
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\fedora64"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Fedora 15 64bit" "APPEND /multiboot/menu/fed1564.cfg"
Delete "$BootDir\multiboot\menu\fed1564.cfg"
${ElseIf} $DistroName == "Fedora 15 KDE 64bit"
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\fedoraKDE64"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Fedora 15 KDE 64bit" "APPEND /multiboot/menu/fed15K64.cfg"
Delete "$BootDir\multiboot\menu\fed15K64.cfg"
${ElseIf} $DistroName == "Fedora 15 KDE 32bit"
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\fedoraKDE"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Fedora 15 KDE" "APPEND /multiboot/menu/fed15K.cfg"
Delete "$BootDir\multiboot\menu\fed15K.cfg"
${ElseIf} $DistroName == "Fedora 15 LXDE 32bit"
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\fedoraLXDE"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Fedora 15 LXDE" "APPEND /multiboot/menu/fed15L.cfg"
Delete "$BootDir\multiboot\menu\fed15L.cfg"
${ElseIf} $DistroName == "Fedora 15 LXDE 64bit"
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\fedoraLXDE64"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Fedora 15 LXDE 64bit" "APPEND /multiboot/menu/fed15L64.cfg"
Delete "$BootDir\multiboot\menu\fed15L64.cfg"
${ElseIf} $DistroName == "Fedora 15 XFCE 32bit"
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\fedoraXFCE"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Fedora 15 XFCE" "APPEND /multiboot/menu/fed15X.cfg"
Delete "$BootDir\multiboot\menu\fed15X.cfg"
${ElseIf} $DistroName == "Fedora 15 XFCE 64bit"
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\fedoraXFCE64"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Fedora 15 XFCE 64bit" "APPEND /multiboot/menu/fed15X64.cfg"
Delete "$BootDir\multiboot\menu\fed15X64.cfg"
${ElseIf} $DistroName == "Fedora 16 GNOME 32bit"
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\fedora16"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Fedora 16" "APPEND /multiboot/menu/fed16.cfg"
Delete "$BootDir\multiboot\menu\fed16.cfg"
${ElseIf} $DistroName == "Fedora 16 GNOME 64bit"
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\fedora6416"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Fedora 16 64bit" "APPEND /multiboot/menu/fed1664.cfg"
Delete "$BootDir\multiboot\menu\fed1664.cfg"
${ElseIf} $DistroName == "Fedora 16 KDE 64bit"
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\fedoraKDE6416"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Fedora 16 KDE 64bit" "APPEND /multiboot/menu/fed16K64.cfg"
Delete "$BootDir\multiboot\menu\fed16K64.cfg"
${ElseIf} $DistroName == "Fedora 16 KDE 32bit"
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\fedoraKDE16"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Fedora 16 KDE" "APPEND /multiboot/menu/fed16K.cfg"
Delete "$BootDir\multiboot\menu\fed16K.cfg"
${ElseIf} $DistroName == "Fedora 16 LXDE 32bit"
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\fedoraLXDE16"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Fedora 16 LXDE" "APPEND /multiboot/menu/fed16L.cfg"
Delete "$BootDir\multiboot\menu\fed16L.cfg"
${ElseIf} $DistroName == "Fedora 16 LXDE 64bit"
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\fedoraLXDE6416"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Fedora 16 LXDE 64bit" "APPEND /multiboot/menu/fed16L64.cfg"
Delete "$BootDir\multiboot\menu\fed16L64.cfg"
${ElseIf} $DistroName == "Fedora 16 XFCE 32bit"
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\fedoraXFCE16"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Fedora 16 XFCE" "APPEND /multiboot/menu/fed16X.cfg"
Delete "$BootDir\multiboot\menu\fed16X.cfg"
${ElseIf} $DistroName == "Fedora 16 XFCE 64bit"
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\fedoraXFCE6416"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Fedora 16 XFCE 64bit" "APPEND /multiboot/menu/fed16X64.cfg"
Delete "$BootDir\multiboot\menu\fed16X64.cfg"
${ElseIf} $DistroName == "Fedora 17 GNOME 32bit"
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\fedora17"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Fedora 17" "APPEND /multiboot/menu/fed17.cfg"
Delete "$BootDir\multiboot\menu\fed17.cfg"
${ElseIf} $DistroName == "Fedora 17 GNOME 64bit"
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\fedora6417"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Fedora 17 64bit" "APPEND /multiboot/menu/fed1764.cfg"
Delete "$BootDir\multiboot\menu\fed1764.cfg"
${ElseIf} $DistroName == "Fedora 17 KDE 64bit"
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\fedoraKDE6417"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Fedora 17 KDE 64bit" "APPEND /multiboot/menu/fed17K64.cfg"
Delete "$BootDir\multiboot\menu\fed17K64.cfg"
${ElseIf} $DistroName == "Fedora 17 KDE 32bit"
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\fedoraKDE17"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Fedora 17 KDE" "APPEND /multiboot/menu/fed17K.cfg"
Delete "$BootDir\multiboot\menu\fed17K.cfg"
${ElseIf} $DistroName == "Fedora 17 LXDE 32bit"
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\fedoraLXDE17"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Fedora 17 LXDE" "APPEND /multiboot/menu/fed17L.cfg"
Delete "$BootDir\multiboot\menu\fed17L.cfg"
${ElseIf} $DistroName == "Fedora 17 LXDE 64bit"
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\fedoraLXDE6417"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Fedora 17 LXDE 64bit" "APPEND /multiboot/menu/fed17L64.cfg"
Delete "$BootDir\multiboot\menu\fed17L64.cfg"
${ElseIf} $DistroName == "Fedora 17 XFCE 32bit"
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\fedoraXFCE17"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Fedora 17 XFCE" "APPEND /multiboot/menu/fed17X.cfg"
Delete "$BootDir\multiboot\menu\fed17X.cfg"
${ElseIf} $DistroName == "Fedora 17 XFCE 64bit"
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\fedoraXFCE6417"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Fedora 17 XFCE 64bit" "APPEND /multiboot/menu/fed17X64.cfg"
Delete "$BootDir\multiboot\menu\fed17X64.cfg"
${ElseIf} $DistroName == "Fedora 18 GNOME 32bit"
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\fedora18"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Fedora 18" "APPEND /multiboot/menu/fed18.cfg"
Delete "$BootDir\multiboot\menu\fed18.cfg"
${ElseIf} $DistroName == "Fedora 18 GNOME 64bit"
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\fedora6418"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Fedora 18 64bit" "APPEND /multiboot/menu/fed1864.cfg"
Delete "$BootDir\multiboot\menu\fed1864.cfg"
${ElseIf} $DistroName == "Fedora 18 KDE 64bit"
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\fedoraKDE6418"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Fedora 18 KDE 64bit" "APPEND /multiboot/menu/fed18K64.cfg"
Delete "$BootDir\multiboot\menu\fed18K64.cfg"
${ElseIf} $DistroName == "Fedora 18 KDE 32bit"
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\fedoraKDE18"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Fedora 18 KDE" "APPEND /multiboot/menu/fed18K.cfg"
Delete "$BootDir\multiboot\menu\fed18K.cfg"
${ElseIf} $DistroName == "Fedora 18 LXDE 32bit"
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\fedoraLXDE18"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Fedora 18 LXDE" "APPEND /multiboot/menu/fed18L.cfg"
Delete "$BootDir\multiboot\menu\fed18L.cfg"
${ElseIf} $DistroName == "Fedora 18 LXDE 64bit"
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\fedoraLXDE6418"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Fedora 18 LXDE 64bit" "APPEND /multiboot/menu/fed18L64.cfg"
Delete "$BootDir\multiboot\menu\fed18L64.cfg"
${ElseIf} $DistroName == "Fedora 18 XFCE 32bit"
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\fedoraXFCE18"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Fedora 18 XFCE" "APPEND /multiboot/menu/fed18X.cfg"
Delete "$BootDir\multiboot\menu\fed18X.cfg"
${ElseIf} $DistroName == "Fedora 18 XFCE 64bit"
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\fedoraXFCE6418"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Fedora 18 XFCE 64bit" "APPEND /multiboot/menu/fed18X64.cfg"
Delete "$BootDir\multiboot\menu\fed18X64.cfg"
${ElseIf} $DistroName == "Pinguy OS 11" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\pinguy"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Pinguy OS 11.04" "APPEND /multiboot/menu/pguy1104.cfg"
Delete "$BootDir\multiboot\menu\pguy1104.cfg"
${ElseIf} $DistroName == "Pinguy OS 12.04" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\pinguy1204"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Pinguy OS 12.04" "APPEND /multiboot/menu/pguy1204.cfg"
Delete "$BootDir\multiboot\menu\pguy1204.cfg"
${ElseIf} $DistroName == "Sn0wL1nuX 11" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\snowlinux"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Snowlinux 11.04" "APPEND /multiboot/menu/snow1104.cfg"
Delete "$BootDir\multiboot\menu\snow1104.cfg"
${ElseIf} $DistroName == "Sn0wL1nuX 11 64bit" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\snowlinux64"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Snowlinux 11.04 64bit" "APPEND /multiboot/menu/snow1164.cfg"
Delete "$BootDir\multiboot\menu\snow1164.cfg"
${ElseIf} $DistroName == "KNOPPIX 6.7.1 CD" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\knoppix6"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label KNOPPIX 6" "APPEND /multiboot/menu/knoppix6.cfg"
Delete "$BootDir\multiboot\menu\knoppix6.cfg"
${ElseIf} $DistroName == "KNOPPIX 7" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\knoppix"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label KNOPPIX" "APPEND /multiboot/menu/knoppix.cfg"
Delete "$BootDir\multiboot\menu\knoppix.cfg"
${ElseIf} $DistroName == "Crunchbang" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\crunchbang"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Crunchbang" "APPEND /multiboot/menu/crunchbang.cfg"
Delete "$BootDir\multiboot\menu\crunchbang.cfg"
${ElseIf} $DistroName == "Web Converger (Web Kiosk)" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\webcon"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Web Converger" "APPEND /multiboot/menu/webcon.cfg"
Delete "$BootDir\multiboot\menu\webcon.cfg"
${ElseIf} $DistroName == "Semplice Linux" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\semplice"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Semplice" "APPEND /multiboot/menu/semplice.cfg"
Delete "$BootDir\multiboot\menu\semplice.cfg"
${ElseIf} $DistroName == "AntiX" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\antix"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label AntiX" "APPEND /multiboot/menu/antix.cfg"
Delete "$BootDir\multiboot\menu\antix.cfg"
${ElseIf} $DistroName == "Boot Repair Disk" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\bootrepair"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Boot Repair Disk" "APPEND /multiboot/menu/bootrepair.cfg"
Delete "$BootDir\multiboot\menu\bootrepair.cfg"
${ElseIf} $DistroName == "GRML (system rescue)" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\grml"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label GRML" "APPEND /multiboot/menu/grml.cfg"
Delete "$BootDir\multiboot\menu\grml.cfg"
${ElseIf} $DistroName == "Debian Live 6 Gnome 32bit" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\debian"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Debian Live" "APPEND /multiboot/menu/debian.cfg"
Delete "$BootDir\multiboot\menu\debian.cfg"
${ElseIf} $DistroName == "Debian Live 6 KDE 32bit" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\debiankde"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Debian Live KDE" "APPEND /multiboot/menu/debkde.cfg"
Delete "$BootDir\multiboot\menu\debkde.cfg"
${ElseIf} $DistroName == "Debian Live 6 LXDE 32bit" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\debianlxde"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Debian Live LXDE" "APPEND /multiboot/menu/deblxde.cfg"
Delete "$BootDir\multiboot\menu\deblxde.cfg"
${ElseIf} $DistroName == "Debian Live 6 XFCE 32bit" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\debianxfce"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Debian Live XFCE" "APPEND /multiboot/menu/debxfce.cfg"
Delete "$BootDir\multiboot\menu\debxfce.cfg"
${ElseIf} $DistroName == "Debian Live 6 Gnome 64bit" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\debian64"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Debian Live 64" "APPEND /multiboot/menu/debian64.cfg"
Delete "$BootDir\multiboot\menu\debian64.cfg"
${ElseIf} $DistroName == "Debian Live 6 KDE 64bit" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\debiankde64"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Debian Live KDE 64" "APPEND /multiboot/menu/debk64.cfg"
Delete "$BootDir\multiboot\menu\debk64.cfg"
${ElseIf} $DistroName == "Debian Live 6 LXDE 64bit"
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\debianlxde64"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Debian Live LXDE 64" "APPEND /multiboot/menu/debl64.cfg"
Delete "$BootDir\multiboot\menu\debl64.cfg"
${ElseIf} $DistroName == "Debian Live 6 XFCE 64bit"
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\debxfce64"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Debian Live XFCE 64" "APPEND /multiboot/menu/debx64.cfg"
Delete "$BootDir\multiboot\menu\debx64.cfg"
${ElseIf} $DistroName == "AOSS (Malware Scanner)"
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
; RMDir /R "$BootDir\multiboot\aoss"
RMDir /R "$BootDir\Documents"
RMDir /R "$BootDir\scripts"
RMDir /R "$BootDir\system"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label AOSS" "APPEND /multiboot/menu/aoss.cfg"
Delete "$BootDir\multiboot\menu\aoss.cfg"
${ElseIf} $DistroName == "GDATA Rescue CD"
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\gdata"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label GDATA Rescue CD" "APPEND /multiboot/menu/gdata.cfg"
Delete "$BootDir\multiboot\menu\gdata.cfg"
${ElseIf} $DistroName == "Panda SafeCD"
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\panda"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Panda Safe CD (Antivirus)" "APPEND /multiboot/menu/panda.cfg"
Delete "$BootDir\multiboot\menu\panda.cfg"
${ElseIf} $DistroName == "Sugar on a Stick"
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\sos"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Sugar on a Stick" "APPEND /multiboot/menu/sugar.cfg"
Delete "$BootDir\multiboot\menu\sugar.cfg"
${ElseIf} $DistroName == "gpxe (Net Bootable Distros)"
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label GPXE" "kernel /multiboot/gpxe.lkrn"
Delete "$BootDir\multiboot\gpxe.lkrn"
${ElseIf} $DistroName == "Kon-Boot Floppy Image"
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
Delete "$BootDir\multiboot\konboot.img"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Konboot" "APPEND /multiboot/menu/konboot.cfg"
Delete "$BootDir\multiboot\menu\konboot.cfg"
${ElseIf} $DistroName == "Linux Live Tools for OCZ"
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\ocz"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label OCZ Tools" "APPEND /multiboot/menu/ocz.cfg"
Delete "$BootDir\multiboot\menu\ocz.cfg"
${ElseIf} $DistroName == "Memtest86+ (Memory Testing Tool)"
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
Delete "$BootDir\multiboot\memtest.bin"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Memtest86+ (Memory Testing Tool)" "LINUX /multiboot/memtest.bin"
${ElseIf} $DistroName == "HDT (Hardware Detection Tool)"
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
Delete "$BootDir\multiboot\hdt.img"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label HDT (Hardware Detection Tool)" "INITRD /multiboot/hdt.img"
${ElseIf} $DistroName == "FreeDOS (Balder img)" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
Delete "$BootDir\multiboot\balder10.img"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Balder DOS image (FreeDOS)" "append initrd=/multiboot/balder10.img"
${ElseIf} $DistroName == "DBAN (Hard Drive Nuker)" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\DBAN"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label DBAN (Hard Drive Nuker)" "CONFIG /multiboot/menu/DBAN.cfg"
Delete "$BootDir\multiboot\menu\DBAN.cfg"
${ElseIf} $DistroName == "DRBL (Diskless Remote Boot in Linux)" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\DRBL"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label DRBL (Diskless Remote Boot in Linux)" "CONFIG /multiboot/menu/DRBL.cfg"
Delete "$BootDir\multiboot\menu\DRBL.cfg"
${ElseIf} $DistroName == "Offline NT Password & Registry Editor" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\offnt"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Offline NT Password & Registry Editor" "APPEND /multiboot/menu/offnt.cfg"
Delete "$BootDir\multiboot\menu\offnt.cfg"
${ElseIf} $DistroName == "TinyCore (A Tiny Linux Distribution)" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\tinycore"
RMDir /R "$BootDir\cde"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Tinycore" "APPEND /multiboot/menu/tinycore.cfg"
Delete "$BootDir\multiboot\menu\tinycore.cfg"
${ElseIf} $DistroName == "MultiCore"
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\multicore"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Multicore" "APPEND /multiboot/menu/multicore.cfg"
Delete "$BootDir\multiboot\menu\multicore.cfg"
${ElseIf} $DistroName == "Slitaz (Another Tiny Distro)"
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\slitaz"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label SliTaz 4.0" "APPEND /multiboot/menu/slitaz.cfg"
Delete "$BootDir\multiboot\menu\slitaz.cfg"
${ElseIf} $DistroName == "Lucid Puppy Linux"
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\puppy"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Puppy" "APPEND /multiboot/menu/puppy.cfg"
Delete "$BootDir\multiboot\menu\puppy.cfg"
${ElseIf} $DistroName == "Precise Puppy Linux"
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\precisepuppy"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Precise Puppy" "APPEND /multiboot/menu/ppuppy.cfg"
Delete "$BootDir\multiboot\menu\ppuppy.cfg"
${ElseIf} $DistroName == "Fatdog64 (Firefox)"
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\fatdogff"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Fatdog64 Firefox" "APPEND /multiboot/menu/fatdogff.cfg"
Delete "$BootDir\multiboot\menu\fatdogff.cfg"
${ElseIf} $DistroName == "Fatdog64 (Seamonkey)"
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\fatdogsm"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Fatdog64 Seamonkey" "APPEND /multiboot/menu/fatdogsm.cfg"
Delete "$BootDir\multiboot\menu\fatdogsm.cfg"
${ElseIf} $DistroName == "Wary Puppy Linux"
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\warypuppy"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Wary Puppy" "APPEND /multiboot/menu/warypup.cfg"
Delete "$BootDir\multiboot\menu\warypup.cfg"
${ElseIf} $DistroName == "Racy Puppy Linux"
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\racypuppy"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Racy Puppy" "APPEND /multiboot/menu/racypuppy.cfg"
Delete "$BootDir\multiboot\menu\racypuppy.cfg"
${ElseIf} $DistroName == "Scientific Linux CERN 6.3"
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\slc63"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Scientific Linux CERN 6.3" "APPEND /multiboot/menu/slc63.cfg"
Delete "$BootDir\multiboot\menu\slc63.cfg"
${ElseIf} $DistroName == "Damn Small Linux (DSL)" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\dsl"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label DSL 4.4.10" "APPEND /multiboot/menu/dsl.cfg"
Delete "$BootDir\multiboot\menu\dsl.cfg"
${ElseIf} $DistroName == "Rip Linux (Recovery Distro)" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\rip"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label RIP Linux" "APPEND /multiboot/menu/rip.cfg"
Delete "$BootDir\multiboot\menu\rip.cfg"
${ElseIf} $DistroName == "Ophcrack (no tables)" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\ophcracknt"
RMDir /R "$BootDir\tables"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Ophcrack" "APPEND /multiboot/menu/ophcracknt.cfg"
Delete "$BootDir\multiboot\menu\ophcracknt.cfg"
${ElseIf} $DistroName == "Ophcrack XP (Password Finder)" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\ophcrack"
RMDir /R "$BootDir\tables"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Ophcrack XP" "APPEND /multiboot/menu/ophcrack.cfg"
Delete "$BootDir\multiboot\menu\ophcrack.cfg"
${ElseIf} $DistroName == "Ophcrack Vista/7 (Password Finder)" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\ophcrackvista"
RMDir /R "$BootDir\tables"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Ophcrack Vista" "APPEND /multiboot/menu/ophvista.cfg"
Delete "$BootDir\multiboot\menu\ophvista.cfg"
${ElseIf} $DistroName == "SalineOS" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\saline"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label SalineOS" "APPEND /multiboot/menu/saline.cfg"
Delete "$BootDir\multiboot\menu\saline.cfg"
${ElseIf} $DistroName == "BackBox (Penetration Testing)" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\backbox"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label BackBox" "APPEND /multiboot/menu/backbox.cfg"
Delete "$BootDir\multiboot\menu\backbox.cfg"
${ElseIf} $DistroName == "Netrunner" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\netrunner"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Netrunner" "APPEND /multiboot/menu/netrunner.cfg"
Delete "$BootDir\multiboot\menu\netrunner.cfg"
${ElseIf} $DistroName == "OSGeo Live" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\osgeo"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label OSGeo Live" "APPEND /multiboot/menu/osgeo.cfg"
Delete "$BootDir\multiboot\menu\osgeo.cfg"
${ElseIf} $DistroName == "Deft 7 (Forensics)" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\deft"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Deft 7" "APPEND /multiboot/menu/deft.cfg"
Delete "$BootDir\multiboot\menu\deft.cfg"
${ElseIf} $DistroName == "Matriux (Penetration Testing)" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\matriux"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Matriux" "APPEND /multiboot/menu/matriux.cfg"
Delete "$BootDir\multiboot\menu\matriux.cfg"
${ElseIf} $DistroName == "Terralinux" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\terralinux"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Terralinux" "APPEND /multiboot/menu/terra.cfg"
Delete "$BootDir\multiboot\menu\terra.cfg"
${ElseIf} $DistroName == "Dreamlinux" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\dreamlinux"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Dreamlinux" "APPEND /multiboot/menu/dreamlinux.cfg"
Delete "$BootDir\multiboot\menu\dreamlinux.cfg"
${ElseIf} $DistroName == "Ubuntu 10.04" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\ubuntu1004"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Ubuntu 10.04" "APPEND /multiboot/menu/ub1004.cfg"
Delete "$BootDir\multiboot\menu\ub1004.cfg"
${ElseIf} $DistroName == "Kubuntu 10.04" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\kubuntu1004"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Kubuntu 10.04" "APPEND /multiboot/menu/ku1004.cfg"
Delete "$BootDir\multiboot\menu\ku1004.cfg"
${ElseIf} $DistroName == "Xubuntu 10.04" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\xubuntu1004"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Xubuntu 10.04" "APPEND /multiboot/menu/xu1004.cfg"
Delete "$BootDir\multiboot\menu\xu1004.cfg"
${ElseIf} $DistroName == "Ubuntu 10.04 x64" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\ubuntu1004x64"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Ubuntu 10.04 x64" "APPEND /multiboot/menu/ub100464.cfg"
Delete "$BootDir\multiboot\menu\ub100464.cfg"
${ElseIf} $DistroName == "Kubuntu 10.04 x64" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\kubuntu1004x64"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Kubuntu 10.04 x64" "APPEND /multiboot/menu/ku100464.cfg"
Delete "$BootDir\multiboot\menu\ku100464.cfg"
${ElseIf} $DistroName == "Xubuntu 10.04 x64" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\xubuntu1004x64"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Xubuntu 10.04 x64" "APPEND /multiboot/menu/xu100464.cfg"
Delete "$BootDir\multiboot\menu\xu100464.cfg"
${ElseIf} $DistroName == "Ubuntu 10.10" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\ubuntu"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Ubuntu 10.10" "APPEND /multiboot/menu/ub1010.cfg"
Delete "$BootDir\multiboot\menu\ub1010.cfg"
${ElseIf} $DistroName == "Xubuntu 10.10" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\xubuntu"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Xubuntu 10.10" "APPEND /multiboot/menu/xu1010.cfg"
Delete "$BootDir\multiboot\menu\xu1010.cfg"
${ElseIf} $DistroName == "Ultimate Edition 3" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\ultimateed"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Ultimate Edition 3" "APPEND /multiboot/menu/ultimateed.cfg"
Delete "$BootDir\multiboot\menu\ultimateed.cfg"
${ElseIf} $DistroName == "Ubuntu 11.04" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\ubuntu1104"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Ubuntu 11.04" "APPEND /multiboot/menu/ub1104.cfg"
Delete "$BootDir\multiboot\menu\ub1104.cfg"
${ElseIf} $DistroName == "KXStudio 12.04" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\KXStudio1204"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label KXStudio 12.04" "APPEND /multiboot/menu/kxstudio.cfg"
Delete "$BootDir\multiboot\menu\kxstudio.cfg"
${ElseIf} $DistroName == "Ubuntu 13.04" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\ubuntu1304"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Ubuntu 13.04" "APPEND /multiboot/menu/ub1304.cfg"
Delete "$BootDir\multiboot\menu\ub1304.cfg"
${ElseIf} $DistroName == "Ubuntu 13.04 amd64" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\ubuntu130464"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Ubuntu 13.04 amd64" "APPEND /multiboot/menu/u130464.cfg"
Delete "$BootDir\multiboot\menu\u130464.cfg"
${ElseIf} $DistroName == "Ubuntu 12.10" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\ubuntu1210"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Ubuntu 12.10" "APPEND /multiboot/menu/ub1210.cfg"
Delete "$BootDir\multiboot\menu\ub1210.cfg"
${ElseIf} $DistroName == "Ubuntu 12.10 amd64" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\ubuntu121064"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Ubuntu 12.10 amd64" "APPEND /multiboot/menu/u121064.cfg"
Delete "$BootDir\multiboot\menu\u121064.cfg"
${ElseIf} $DistroName == "Ubuntu Secure Remix 12.10" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\ubuntusec1210"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Ubuntu Secure Remix 12.10" "APPEND /multiboot/menu/usec1210.cfg"
Delete "$BootDir\multiboot\menu\usec1210.cfg"
${ElseIf} $DistroName == "Ubuntu Secure Remix 12.10 amd64" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\ubuntusec121064"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Ubuntu Secure Remix 12.10 amd64" "APPEND /multiboot/menu/ux121064.cfg"
Delete "$BootDir\multiboot\menu\ux121064.cfg"
${ElseIf} $DistroName == "Ubuntu Server 12.10" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\ubuntuserv1210"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Ubuntu Server 12.10" "APPEND /multiboot/menu/usrv1210.cfg"
Delete "$BootDir\multiboot\menu\usrv1210.cfg"
${ElseIf} $DistroName == "Ubuntu Server 12.10 amd64" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\ubuntuserv121064"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Ubuntu Server 12.10 amd64" "APPEND /multiboot/menu/us121064.cfg"
Delete "$BootDir\multiboot\menu\us121064.cfg"
${ElseIf} $DistroName == "Ubuntu Studio 12.10" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\ubuntustud1210"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Ubuntu Studio 12.10" "APPEND /multiboot/menu/ustu1210.cfg"
Delete "$BootDir\multiboot\menu\ustu1210.cfg"
${ElseIf} $DistroName == "Ubuntu Studio 12.10 amd64" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\ubuntustud121064"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Ubuntu Studio 12.10 amd64" "APPEND /multiboot/menu/uo121064.cfg"
Delete "$BootDir\multiboot\menu\uo121064.cfg"
${ElseIf} $DistroName == "Edubuntu 12.10" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\edubuntu1210"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Edubuntu 12.10" "APPEND /multiboot/menu/edu1210.cfg"
Delete "$BootDir\multiboot\menu\edu1210.cfg"
${ElseIf} $DistroName == "Edubuntu 12.10 amd64" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\edubuntu121064"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Edubuntu 12.10 amd64" "APPEND /multiboot/menu/ed121064.cfg"
Delete "$BootDir\multiboot\menu\ed121064.cfg"
${ElseIf} $DistroName == "Kubuntu 12.10" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\kubuntu1210"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Kubuntu 12.10" "APPEND /multiboot/menu/ku1210.cfg"
Delete "$BootDir\multiboot\menu\ku1210.cfg"
${ElseIf} $DistroName == "Kubuntu 12.10 amd64" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\kubuntu121064"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Kubuntu 12.10 amd64" "APPEND /multiboot/menu/ku121064.cfg"
Delete "$BootDir\multiboot\menu\ku121064.cfg"
${ElseIf} $DistroName == "Lubuntu 12.10" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\lubuntu1210"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Lubuntu 12.10" "APPEND /multiboot/menu/lu1210.cfg"
Delete "$BootDir\multiboot\menu\lu1210.cfg"
${ElseIf} $DistroName == "Lubuntu 12.10 amd64" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\lubuntu121064"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Lubuntu 12.10 amd64" "APPEND /multiboot/menu/lu121064.cfg"
Delete "$BootDir\multiboot\menu\lu121064.cfg"
${ElseIf} $DistroName == "Xubuntu 12.10" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\xubuntu1210"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Xubuntu 12.10" "APPEND /multiboot/menu/xu1210.cfg"
Delete "$BootDir\multiboot\menu\xu1210.cfg"
${ElseIf} $DistroName == "Xubuntu 12.10 amd64" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\xubuntu121064"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Xubuntu 12.10 amd64" "APPEND /multiboot/menu/xu121064.cfg"
Delete "$BootDir\multiboot\menu\xu121064.cfg"
${ElseIf} $DistroName == "Ubuntu 12.04" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\ubuntu1204"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Ubuntu 12.04" "APPEND /multiboot/menu/ub1204.cfg"
Delete "$BootDir\multiboot\menu\ub1204.cfg"
${ElseIf} $DistroName == "Ubuntu 12.04 DVD" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\ubuntu1204dvd"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Ubuntu 12.04 DVD" "APPEND /multiboot/menu/u1204dvd.cfg"
Delete "$BootDir\multiboot\menu\u1204dvd.cfg"
${ElseIf} $DistroName == "Ubuntu 12.04 DVD amd64" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\ubuntu1204dvd64"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Ubuntu 12.04 DVD amd64" "APPEND /multiboot/menu/u1204d64.cfg"
Delete "$BootDir\multiboot\menu\u1204d64.cfg"
${ElseIf} $DistroName == "Pear Linux 6" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\pear"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Pear Linux" "APPEND /multiboot/menu/pear.cfg"
Delete "$BootDir\multiboot\menu\pear.cfg"
${ElseIf} $DistroName == "Ubuntu 11.10" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\ubuntu1110"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Ubuntu 11.10" "APPEND /multiboot/menu/ub1110.cfg"
Delete "$BootDir\multiboot\menu\ub1110.cfg"
${ElseIf} $DistroName == "Ubuntu Server 12.04" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\ubuntuserv1204"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Ubuntu Server 12.04" "APPEND /multiboot/menu/usrv1204.cfg"
Delete "$BootDir\multiboot\menu\usrv1204.cfg"
${ElseIf} $DistroName == "Ubuntu Server 12.04 amd64" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\ubuntuserv120464"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Ubuntu Server 12.04 amd64" "APPEND /multiboot/menu/us120464.cfg"
Delete "$BootDir\multiboot\menu\us120464.cfg"
${ElseIf} $DistroName == "Ubuntu Server 11.10" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\ubuntuserv1110"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Ubuntu Server 11.10" "APPEND /multiboot/menu/usrv1110.cfg"
Delete "$BootDir\multiboot\menu\usrv1110.cfg"
${ElseIf} $DistroName == "Xubuntu 12.04" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\xubuntu1204"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Xubuntu 12.04" "APPEND /multiboot/menu/xu1204.cfg"
Delete "$BootDir\multiboot\menu\xu1204.cfg"
${ElseIf} $DistroName == "Kubuntu 12.04" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\kubuntu1204"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Kubuntu 12.04" "APPEND /multiboot/menu/ku1204.cfg"
Delete "$BootDir\multiboot\menu\ku1204.cfg"
${ElseIf} $DistroName == "Kubuntu 12.04 DVD" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\kubuntu1204dvd"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Kubuntu 12.04 DVD" "APPEND /multiboot/menu/k1204dvd.cfg"
Delete "$BootDir\multiboot\menu\k1204dvd.cfg"
${ElseIf} $DistroName == "Lubuntu 12.04" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\lubuntu1204"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Lubuntu 12.04" "APPEND /multiboot/menu/lu1204.cfg"
Delete "$BootDir\multiboot\menu\lu1204.cfg"
${ElseIf} $DistroName == "Mythbuntu 12.04" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\mythbuntu1204"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Mythbuntu 12.04" "APPEND /multiboot/menu/myth1204.cfg"
Delete "$BootDir\multiboot\menu\myth1204.cfg"
${ElseIf} $DistroName == "Xubuntu 11.10" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\xubuntu1110"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Xubuntu 11.10" "APPEND /multiboot/menu/xu1110.cfg"
Delete "$BootDir\multiboot\menu\xu1110.cfg"
${ElseIf} $DistroName == "Kubuntu 11.10" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\kubuntu1110"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Kubuntu 11.10" "APPEND /multiboot/menu/ku1110.cfg"
Delete "$BootDir\multiboot\menu\ku1110.cfg"
${ElseIf} $DistroName == "Lubuntu 11.10" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\lubuntu1110"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Lubuntu 11.10" "APPEND /multiboot/menu/lu1110.cfg"
Delete "$BootDir\multiboot\menu\lu1110.cfg"
${ElseIf} $DistroName == "Ubuntu 11.10 amd64" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\ubuntu111064"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Ubuntu 11.10 amd64" "APPEND /multiboot/menu/u111064.cfg"
Delete "$BootDir\multiboot\menu\u111064.cfg"
${ElseIf} $DistroName == "Ubuntu 12.04 amd64" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\ubuntu120464"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Ubuntu 12.04 amd64" "APPEND /multiboot/menu/u120464.cfg"
Delete "$BootDir\multiboot\menu\u120464.cfg"
${ElseIf} $DistroName == "Mythbuntu 12.04 amd64" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\mythbuntu120464"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Mythbuntu 12.04 amd64" "APPEND /multiboot/menu/my120464.cfg"
Delete "$BootDir\multiboot\menu\my120464.cfg"
${ElseIf} $DistroName == "Lubuntu 12.04 amd64" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\lubuntu120464"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Lubuntu 12.04 amd64" "APPEND /multiboot/menu/lu120464.cfg"
Delete "$BootDir\multiboot\menu\lu120464.cfg"
${ElseIf} $DistroName == "Xubuntu 12.04 amd64" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\xubuntu120464"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Xubuntu 12.04 amd64" "APPEND /multiboot/menu/xu120464.cfg"
Delete "$BootDir\multiboot\menu\xu120464.cfg"
${ElseIf} $DistroName == "Kubuntu 12.04 amd64" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\kubuntu120464"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Kubuntu 12.04 amd64" "APPEND /multiboot/menu/ku120464.cfg"
Delete "$BootDir\multiboot\menu\ku120464.cfg"
${ElseIf} $DistroName == "Kubuntu 12.04 DVD amd64" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\kubuntu1204dvd64"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Kubuntu 12.04 DVD amd64" "APPEND /multiboot/menu/k1204dv64.cfg"
Delete "$BootDir\multiboot\menu\k1204dv64.cfg"
${ElseIf} $DistroName == "Xubuntu 11.10 amd64" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\xubuntu111064"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Xubuntu 11.10 amd64" "APPEND /multiboot/menu/xu111064.cfg"
Delete "$BootDir\multiboot\menu\xu111064.cfg"
${ElseIf} $DistroName == "Kubuntu 11.10 amd64" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\kubuntu111064"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Kubuntu 11.10 amd64" "APPEND /multiboot/menu/ku111064.cfg"
Delete "$BootDir\multiboot\menu\ku111064.cfg"
${ElseIf} $DistroName == "Lubuntu 11.10 amd64" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\lubuntu111064"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Lubuntu 11.10 amd64" "APPEND /multiboot/menu/lu111064.cfg"
Delete "$BootDir\multiboot\menu\lu111064.cfg"
${ElseIf} $DistroName == "Edubuntu 12.04" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\edubuntu1204"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Edubuntu 12.04" "APPEND /multiboot/menu/edu1204.cfg"
Delete "$BootDir\multiboot\menu\edu1204.cfg"
${ElseIf} $DistroName == "Edubuntu 12.04 amd64" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\edubuntu120464"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Edubuntu 12.04 amd64" "APPEND /multiboot/menu/ed120464.cfg"
Delete "$BootDir\multiboot\menu\ed120464.cfg"
${ElseIf} $DistroName == "Ubuntu Studio 12.04" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\ubuntustud1204"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Ubuntu Studio 12.04" "APPEND /multiboot/menu/ustu1204.cfg"
Delete "$BootDir\multiboot\menu\ustu1204.cfg"
${ElseIf} $DistroName == "Ubuntu Studio 12.04 amd64" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\ubuntustud120464"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Ubuntu Studio 12.04 amd64" "APPEND /multiboot/menu/uo120464.cfg"
Delete "$BootDir\multiboot\menu\uo120464.cfg"
${ElseIf} $DistroName == "Edubuntu 11.10" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\edubuntu1110"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Edubuntu 11.10" "APPEND /multiboot/menu/edu1110.cfg"
Delete "$BootDir\multiboot\menu\edu1110.cfg"
${ElseIf} $DistroName == "Xubuntu 11.04" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\xubuntu1104"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Xubuntu 11.04" "APPEND /multiboot/menu/xu1104.cfg"
Delete "$BootDir\multiboot\menu\xu1104.cfg"
${ElseIf} $DistroName == "Kubuntu 11.04" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\kubuntu1104"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Kubuntu 11.04" "APPEND /multiboot/menu/ku1104.cfg"
Delete "$BootDir\multiboot\menu\ku1104.cfg"
${ElseIf} $DistroName == "Ubuntu 11.04 x64" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\ubuntu1104x64"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Ubuntu 11.04 x64" "APPEND /multiboot/menu/ub110464.cfg"
Delete "$BootDir\multiboot\menu\ub110464.cfg"
${ElseIf} $DistroName == "Xubuntu 11.04 x64" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\xubuntu1104x64"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Xubuntu 11.04 x64" "APPEND /multiboot/menu/xu110464.cfg"
Delete "$BootDir\multiboot\menu\xu110464.cfg"
${ElseIf} $DistroName == "Kubuntu 11.04 x64" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\kubuntu1104x64"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Kubuntu 11.04 x64" "APPEND /multiboot/menu/ku110464.cfg"
Delete "$BootDir\multiboot\menu\ku110464.cfg"
${ElseIf} $DistroName == "Kubuntu 10.10" ;
${AndIf} ${FileExists} $BootDir\$SomeFile2Check
RMDir /R "$BootDir\multiboot\kubuntu"
${DeleteMenuEntry} "$BootDir\multiboot\menu\$Config2Use" "label Kubuntu 10.10" "APPEND /multiboot/menu/ku1010.cfg"