-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathFrmMain.frm
1143 lines (1056 loc) · 34.3 KB
/
FrmMain.frm
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
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form FrmMain
AutoRedraw = -1 'True
BackColor = &H0038BCFF&
BorderStyle = 0 'None
Caption = "Avaco Uninstaller 2002"
ClientHeight = 5790
ClientLeft = 90
ClientTop = 90
ClientWidth = 8445
FillColor = &H00FFFFFF&
ForeColor = &H00FFFFFF&
Icon = "FrmMain.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 5790
ScaleWidth = 8445
StartUpPosition = 2 'CenterScreen
Begin MSComctlLib.ImageList ImageList2
Left = 720
Top = 5040
_ExtentX = 1005
_ExtentY = 1005
BackColor = -2147483643
ImageWidth = 32
ImageHeight = 32
MaskColor = 12632256
_Version = 393216
BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
NumListImages = 1
BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "FrmMain.frx":08CA
Key = ""
EndProperty
EndProperty
End
Begin MSComctlLib.ImageList ImageList1
Left = 120
Top = 5040
_ExtentX = 1005
_ExtentY = 1005
BackColor = -2147483643
ImageWidth = 16
ImageHeight = 16
MaskColor = 12632256
_Version = 393216
BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
NumListImages = 1
BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "FrmMain.frx":11A6
Key = ""
EndProperty
EndProperty
End
Begin VB.Timer Timer2
Interval = 1
Left = 1320
Top = 5160
End
Begin VB.Timer Timer1
Interval = 1000
Left = 1800
Top = 5160
End
Begin MSComctlLib.ListView lstview
Height = 2985
Left = 120
TabIndex = 2
ToolTipText = "Select program on the list and then double click list view for run Uninstall program"
Top = 1560
Width = 7140
_ExtentX = 12594
_ExtentY = 5265
View = 3
LabelEdit = 1
Sorted = -1 'True
LabelWrap = -1 'True
HideSelection = 0 'False
FullRowSelect = -1 'True
PictureAlignment= 5
_Version = 393217
Icons = "ImageList2"
SmallIcons = "ImageList1"
ForeColor = 0
BackColor = 16777215
BorderStyle = 1
Appearance = 0
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
MouseIcon = "FrmMain.frx":1A86
NumItems = 8
BeginProperty ColumnHeader(1) {BDD1F052-858B-11D1-B16A-00C0F0283628}
Text = "Display Name"
Object.Width = 5291
EndProperty
BeginProperty ColumnHeader(2) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 1
Text = "Uninstall String"
Object.Width = 4304
EndProperty
BeginProperty ColumnHeader(3) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 2
Text = "Registry Name"
Object.Width = 4304
EndProperty
BeginProperty ColumnHeader(4) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 3
Text = "Publisher"
Object.Width = 4304
EndProperty
BeginProperty ColumnHeader(5) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 4
Text = "Display Version"
Object.Width = 4304
EndProperty
BeginProperty ColumnHeader(6) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 5
Text = "Help Link"
Object.Width = 4304
EndProperty
BeginProperty ColumnHeader(7) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 6
Text = "URL Info About "
Object.Width = 4304
EndProperty
BeginProperty ColumnHeader(8) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 7
Text = "Contact"
Object.Width = 4304
EndProperty
End
Begin VB.Label LblMinimized
Alignment = 2 'Center
BackColor = &H008080FF&
BackStyle = 0 'Transparent
BeginProperty Font
Name = "Arial Black"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00808080&
Height = 255
Left = 6600
MouseIcon = "FrmMain.frx":1DA0
MousePointer = 99 'Custom
TabIndex = 19
ToolTipText = "Restore"
Top = 0
Width = 135
End
Begin VB.Label LblRestore
Alignment = 2 'Center
BackColor = &H00C0C0C0&
BackStyle = 0 'Transparent
BeginProperty Font
Name = "Arial"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00808080&
Height = 255
Left = 6720
MouseIcon = "FrmMain.frx":20AA
MousePointer = 99 'Custom
TabIndex = 18
ToolTipText = "Minimize"
Top = 0
Width = 255
End
Begin VB.Label LblMaximized
Alignment = 2 'Center
BackColor = &H00C0C0C0&
BackStyle = 0 'Transparent
BeginProperty Font
Name = "Arial Black"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00808080&
Height = 255
Left = 6960
MouseIcon = "FrmMain.frx":23B4
MousePointer = 99 'Custom
TabIndex = 17
ToolTipText = "Maximize"
Top = 0
Width = 135
End
Begin VB.Label LblTanggalDanJam
Alignment = 1 'Right Justify
BackStyle = 0 'Transparent
Height = 255
Left = 4800
TabIndex = 16
Top = 4605
Width = 2295
End
Begin VB.Label Lblbantu
Alignment = 2 'Center
BackStyle = 0 'Transparent
Caption = "Help"
Height = 255
Left = 3180
MouseIcon = "FrmMain.frx":26BE
TabIndex = 15
Top = 465
Width = 495
End
Begin VB.Label LblTools
Alignment = 2 'Center
BackStyle = 0 'Transparent
Caption = "Tools"
Height = 255
Left = 2580
MouseIcon = "FrmMain.frx":29C8
TabIndex = 14
Top = 465
Width = 495
End
Begin VB.Label LblUninstall
Alignment = 2 'Center
BackStyle = 0 'Transparent
Caption = "Uninstall"
Height = 255
Left = 1785
MouseIcon = "FrmMain.frx":2CD2
TabIndex = 13
Top = 465
Width = 735
End
Begin VB.Label LblFile
Alignment = 2 'Center
BackStyle = 0 'Transparent
Caption = "File"
Height = 255
Left = 240
MouseIcon = "FrmMain.frx":2FDC
TabIndex = 12
Top = 465
Width = 375
End
Begin VB.Label LblTampilan
Alignment = 2 'Center
BackStyle = 0 'Transparent
Caption = "View"
Height = 255
Left = 1215
MouseIcon = "FrmMain.frx":32E6
TabIndex = 11
Top = 465
Width = 480
End
Begin VB.Label LblEdit
Alignment = 2 'Center
BackStyle = 0 'Transparent
Caption = "Edit"
Height = 255
Left = 720
MouseIcon = "FrmMain.frx":35F0
TabIndex = 10
Top = 465
Width = 375
End
Begin VB.Label Label2
Alignment = 2 'Center
BackStyle = 0 'Transparent
Caption = "Info Details"
Height = 255
Index = 1
Left = 1100
TabIndex = 9
Top = 1305
Width = 1095
End
Begin VB.Image ImgDetailInfo
Height = 480
Left = 1365
MouseIcon = "FrmMain.frx":38FA
MousePointer = 99 'Custom
Picture = "FrmMain.frx":3C04
ToolTipText = "Information Detail"
Top = 795
Width = 480
End
Begin VB.Image ImBantu
Height = 480
Left = 5235
MouseIcon = "FrmMain.frx":44CE
MousePointer = 99 'Custom
Picture = "FrmMain.frx":47D8
ToolTipText = "Help"
Top = 795
Width = 480
End
Begin VB.Image ImgUninstall
Height = 480
Left = 390
MouseIcon = "FrmMain.frx":50A2
MousePointer = 99 'Custom
Picture = "FrmMain.frx":53AC
ToolTipText = "Uninstall"
Top = 795
Width = 480
End
Begin VB.Label Label2
Alignment = 2 'Center
BackStyle = 0 'Transparent
Caption = "Uninstall"
Height = 255
Index = 0
Left = 240
TabIndex = 8
Top = 1300
Width = 735
End
Begin VB.Label Label2
Alignment = 2 'Center
BackStyle = 0 'Transparent
Caption = "Help"
Height = 255
Index = 5
Left = 5235
TabIndex = 7
Top = 1300
Width = 495
End
Begin VB.Image ImgSetings
Height = 480
Left = 4320
MouseIcon = "FrmMain.frx":5C76
MousePointer = 99 'Custom
Picture = "FrmMain.frx":5F80
ToolTipText = "Options"
Top = 795
Width = 480
End
Begin VB.Label Label2
Alignment = 2 'Center
BackStyle = 0 'Transparent
Caption = "Options"
Height = 255
Index = 4
Left = 4200
TabIndex = 6
Top = 1300
Width = 735
End
Begin VB.Image ImgKeluar
Height = 480
Left = 6120
MouseIcon = "FrmMain.frx":684A
MousePointer = 99 'Custom
Picture = "FrmMain.frx":6B54
ToolTipText = "Exit"
Top = 795
Width = 480
End
Begin VB.Label Label2
Alignment = 2 'Center
BackStyle = 0 'Transparent
Caption = "Exit"
Height = 255
Index = 6
Left = 6040
TabIndex = 5
Top = 1300
Width = 615
End
Begin VB.Image ImgLaporan
Height = 480
Left = 2400
MouseIcon = "FrmMain.frx":741E
MousePointer = 99 'Custom
Picture = "FrmMain.frx":7728
ToolTipText = "Report Information Registry"
Top = 820
Width = 480
End
Begin VB.Label Label2
Alignment = 2 'Center
BackStyle = 0 'Transparent
Caption = "Report"
Height = 255
Index = 2
Left = 2280
TabIndex = 4
Top = 1300
Width = 735
End
Begin VB.Image Image1
Height = 480
Left = 3360
MouseIcon = "FrmMain.frx":7FF2
MousePointer = 99 'Custom
Picture = "FrmMain.frx":82FC
ToolTipText = "Backup Registry"
Top = 795
Width = 480
End
Begin VB.Label Label2
Alignment = 2 'Center
BackStyle = 0 'Transparent
Caption = "Backup"
Height = 255
Index = 3
Left = 3240
TabIndex = 3
Top = 1300
Width = 735
End
Begin VB.Line Line1
X1 = 120
X2 = 8160
Y1 = 720
Y2 = 720
End
Begin VB.Image ImgAbout
Appearance = 0 'Flat
Height = 885
Left = 8280
MouseIcon = "FrmMain.frx":8BC6
MousePointer = 99 'Custom
Picture = "FrmMain.frx":8ED0
ToolTipText = "About AVACO"
Top = 480
Width = 870
End
Begin VB.Image RS
Height = 165
Left = 7200
Picture = "FrmMain.frx":B7A2
Stretch = -1 'True
Top = 1200
Width = 270
End
Begin VB.Image UR
Height = 465
Left = 5760
Picture = "FrmMain.frx":BA4C
Stretch = -1 'True
Top = 0
Width = 1365
End
Begin VB.Image picFormResize
Height = 90
Left = 2280
MousePointer = 8 'Size NW SE
Picture = "FrmMain.frx":C057
Top = 5520
Width = 90
End
Begin VB.Image ImgForm
Height = 510
Left = 1320
Picture = "FrmMain.frx":C0CB
Top = 0
Width = 3810
End
Begin VB.Label LblStatus
BackStyle = 0 'Transparent
Height = 255
Left = 820
TabIndex = 1
Top = 4605
Width = 2295
End
Begin VB.Label LblInfo
BackStyle = 0 'Transparent
Caption = "Found :"
Height = 255
Left = 240
TabIndex = 0
Top = 4605
Width = 975
End
Begin VB.Image UL
Height = 465
Left = 0
Picture = "FrmMain.frx":CC06
Stretch = -1 'True
Top = 0
Width = 1365
End
Begin VB.Image LS
Height = 165
Left = 6720
Picture = "FrmMain.frx":EDB4
Stretch = -1 'True
Top = 1080
Width = 210
End
Begin VB.Image BL
Height = 240
Left = 7320
Picture = "FrmMain.frx":EFDA
Stretch = -1 'True
Top = 1320
Width = 300
End
Begin VB.Image BM
Height = 150
Left = 6960
Picture = "FrmMain.frx":F3DC
Stretch = -1 'True
Top = 1320
Width = 135
End
Begin VB.Image BR
Height = 285
Left = 7080
Picture = "FrmMain.frx":F536
Stretch = -1 'True
Top = 840
Width = 315
End
Begin VB.Image UM
Height = 510
Left = 6960
Picture = "FrmMain.frx":FA38
Stretch = -1 'True
Top = 840
Width = 165
End
Begin VB.Image bak
Height = 1155
Left = 30
Picture = "FrmMain.frx":FF42
Stretch = -1 'True
Top = 480
Width = 2505
End
End
Attribute VB_Name = "FrmMain"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
'--> Avaco Uninstaller 2002
'--> version 1.00
'--> Version Language : English
'--> By Agus Ramadhani
'--> avaco software
'--> http://avaco-software.tripod.com
'--> avaco@9cy.Com
'--> 2002-2003
'--> Don't forget to Vote :)
Public FormFlag As Boolean, FX As Long, FY As Long
Public FormFirst As Boolean, AX As Long, AY As Long
Private Declare Function WinExec Lib "kernel32" (ByVal lpCmdLine As String, ByVal nCmdShow As Long) As Long
Dim GetlocString, RegName, UString, Dname, Publisher, DVersion, HelpLink, UIAbout, Contact As String
Dim iKetetapan As Integer
Dim fTimer
Sub GetInformasi()
RegName = lstview.SelectedItem.Key
Dname = GetString(HKEY_LOCAL_MACHINE, GetlocString & lstview.SelectedItem.Key, "DisplayName")
UString = GetString(HKEY_LOCAL_MACHINE, GetlocString & lstview.SelectedItem.Key, "UninstallString")
Publisher = Trim(GetString(HKEY_LOCAL_MACHINE, GetlocString & lstview.SelectedItem.Key, "Publisher"))
DVersion = Trim(GetString(HKEY_LOCAL_MACHINE, GetlocString & lstview.SelectedItem.Key, "DisplayVersion"))
HelpLink = Trim(GetString(HKEY_LOCAL_MACHINE, GetlocString & lstview.SelectedItem.Key, "HelpLink"))
UIAbout = Trim(GetString(HKEY_LOCAL_MACHINE, GetlocString & lstview.SelectedItem.Key, "URLInfoAbout"))
Contact = Trim(GetString(HKEY_LOCAL_MACHINE, GetlocString & lstview.SelectedItem.Key, "Contact"))
If Len(RegName) = 0 Then
frmInformasi.TxtRName = "?"
Else
frmInformasi.TxtRName = RegName
End If
If Len(Dname) = 0 Then
frmInformasi.TxtDname.Text = "?"
Else
frmInformasi.TxtDname.Text = Dname
End If
If Len(UString) = 0 Then
frmInformasi.TxtUString.Text = "?"
Else
frmInformasi.TxtUString.Text = UString
End If
If Len(Publisher) = 0 Then
frmInformasi.TxtPublisher.Text = "?"
Else
frmInformasi.TxtPublisher.Text = Publisher
End If
If Len(DVersion) = 0 Then
frmInformasi.TxtDVersion.Text = "?"
Else
frmInformasi.TxtDVersion.Text = DVersion
End If
If Len(HelpLink) = 0 Then
frmInformasi.TxtHLink.Text = "?"
Else
frmInformasi.TxtHLink.Text = HelpLink
End If
If Len(UIAbout) = 0 Then
frmInformasi.TxtUIAbout.Text = "?"
Else
frmInformasi.TxtUIAbout.Text = UIAbout
End If
If Len(Contact) = 0 Then
frmInformasi.TxtContact.Text = "?"
Else
frmInformasi.TxtContact.Text = Contact
End If
End Sub
Private Sub GetKetReg()
GetlocString = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\"
ModRegistry.GetKeyNames HKEY_LOCAL_MACHINE, GetlocString
End Sub
Private Sub ShowUninstallList()
On Error Resume Next
Dim LokasiItem As ListItem
Call GetKetReg
For iKetetapan = 1 To sKeys.Count - 0
Dname = GetString(HKEY_LOCAL_MACHINE, GetlocString & sKeys(iKetetapan), "DisplayName")
UString = GetString(HKEY_LOCAL_MACHINE, GetlocString & sKeys(iKetetapan), "UninstallString")
Publisher = GetString(HKEY_LOCAL_MACHINE, GetlocString & sKeys(iKetetapan), "Publisher")
DVersion = GetString(HKEY_LOCAL_MACHINE, GetlocString & sKeys(iKetetapan), "DisplayVersion")
HelpLink = GetString(HKEY_LOCAL_MACHINE, GetlocString & sKeys(iKetetapan), "HelpLink")
UIAbout = GetString(HKEY_LOCAL_MACHINE, GetlocString & sKeys(iKetetapan), "URLInfoAbout")
Contact = GetString(HKEY_LOCAL_MACHINE, GetlocString & sKeys(iKetetapan), "Contact")
If Len(Dname) > 0 Then
Set LokasiItem = lstview.ListItems.Add(, sKeys(iKetetapan), Dname, 1, 1)
If Len(UString) = 0 Then
LokasiItem.SubItems(1) = "?"
Else
LokasiItem.SubItems(1) = UString
End If
If Len(sKeys(iKetetapan)) = 0 Then
LokasiItem.SubItems(2) = "?"
Else
LokasiItem.SubItems(2) = sKeys(iKetetapan)
End If
If Len(Publisher) = 0 Then
LokasiItem.SubItems(3) = "?"
Else
LokasiItem.SubItems(3) = Publisher
End If
If Len(DVersion) = 0 Then
LokasiItem.SubItems(4) = "?"
Else
LokasiItem.SubItems(4) = DVersion
End If
If Len(HelpLink) = 0 Then
LokasiItem.SubItems(5) = "?"
Else
LokasiItem.SubItems(5) = HelpLink
End If
If Len(UIAbout) = 0 Then
LokasiItem.SubItems(6) = "?"
Else
LokasiItem.SubItems(6) = UIAbout
End If
If Len(Contact) = 0 Then
LokasiItem.SubItems(7) = "?"
Else
LokasiItem.SubItems(7) = Contact
End If
End If
LblStatus.Caption = lstview.ListItems.Count & " Installed Programs"
Next iKetetapan
Set sKeys = Nothing
End Sub
Sub Show_FormUninstall()
If FrmOption.ChkUninstall.Value = vbChecked Then
Dname = GetString(HKEY_LOCAL_MACHINE, GetlocString & lstview.SelectedItem.Key, "DisplayName")
RegName = lstview.SelectedItem.Key
frmUninstall.TxtDname.Text = Dname
frmUninstall.TxtRegname.Text = RegName
frmUninstall.Show vbModal, FrmMain
Else
Get_Uninstall
End If
End Sub
Sub Get_Uninstall()
Dim strRemove As String
strRemove = GetString(HKEY_LOCAL_MACHINE, GetlocString & lstview.SelectedItem.Key, "UninstallString")
WinExec strRemove, 1
End Sub
Private Sub Bak_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Tulisan_Menu_tipis
End Sub
Private Sub Form_Load()
On Error Resume Next
Set sKeys = New Collection
lstview.Refresh
ShowUninstallList
LblTanggalDanJam.Caption = Now
Me.Icon = ImgUninstall.Picture
Form_Resize
End Sub
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Call Tulisan_Menu_tipis
End Sub
Sub Tulisan_Menu_tipis()
LblFile.FontBold = False
LblEdit.FontBold = False
LblTampilan.FontBold = False
LblUninstall.FontBold = False
LblTools.FontBold = False
Lblbantu.FontBold = False
Label2(0).FontBold = False
Label2(1).FontBold = False
Label2(2).FontBold = False
Label2(3).FontBold = False
Label2(4).FontBold = False
Label2(5).FontBold = False
Label2(6).FontBold = False
End Sub
Private Sub Form_Resize()
On Error Resume Next
Call SkinForm
lstview.Width = Me.Width - 280 + 45
lstview.Height = Me.Height - 1960
ImgAbout.Left = Me.Width - 1050
LblInfo.Top = Me.Height - 355
LblStatus.Top = Me.Height - 355
LblTanggalDanJam.Top = Me.Height - 355
LblTanggalDanJam.Left = Me.Width - 2540
LblMinimized.Left = Me.Width - 540
LblRestore.Left = Me.Width - 430
LblMaximized.Left = Me.Width - 200
picFormResize.Top = Me.Height - 100
picFormResize.Left = Me.Width - 100
lstview.ColumnHeaders(1).Width = 5500
Line1.X2 = Me.Width - 850
End Sub
Private Sub Form_Unload(Cancel As Integer)
GetlocString = ""
Dim Form As Form
For Each Form In Forms
If Form.Name <> Me.Name Then
Unload Form
Set Form = Nothing
End If
Next Form
End Sub
Sub SkinForm()
UL.Top = 0
UL.Left = 0
BL.Top = Me.Height - BL.Height - 0
BL.Left = 0
LS.Top = UL.Height
LS.Height = Me.Height - UL.Height - BL.Height
LS.Left = 0
UM.Width = Me.Width - UL.Width - UR.Width
UM.Left = UL.Width
UM.Top = 0
UR.Top = 0
UR.Left = Me.Width - UR.Width - 0
BR.Left = Me.Width - BR.Width - 0
BR.Top = Me.Height - BR.Height - 0
RS.Left = Me.Width - RS.Width - 0
RS.Height = Me.Height - UR.Height - BR.Height
RS.Top = UR.Height
BM.Top = Me.Height - BM.Height - 0
BM.Left = BL.Width
BM.Width = Me.Width - BL.Width - BR.Width
End Sub
Private Sub Image1_Click()
Call Backup_Registry
FrmBackupRegistry.Show vbModal, FrmMain
End Sub
Private Sub Image1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Label2(0).FontBold = False
Label2(1).FontBold = False
Label2(2).FontBold = False
Label2(3).FontBold = True
Label2(4).FontBold = False
Label2(5).FontBold = False
Label2(6).FontBold = False
End Sub
Private Sub ImBantu_Click()
frmBantuan.Show
End Sub
Private Sub ImBantu_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Label2(0).FontBold = False
Label2(1).FontBold = False
Label2(2).FontBold = False
Label2(3).FontBold = False
Label2(4).FontBold = False
Label2(5).FontBold = True
Label2(6).FontBold = False
End Sub
Private Sub ImgAbout_Click()
FrmAbout.Show vbModal, FrmMain
End Sub
Private Sub ImgDetailInfo_Click()
frmInformasi.Show vbModal, FrmMain
End Sub
Private Sub ImgDetailInfo_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Label2(0).FontBold = False
Label2(1).FontBold = True
Label2(2).FontBold = False
Label2(3).FontBold = False
Label2(4).FontBold = False
Label2(5).FontBold = False
Label2(6).FontBold = False
End Sub
Private Sub ImgForm_DblClick()
UM_DblClick
End Sub
Private Sub ImgForm_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Tulisan_Menu_tipis
End Sub
Private Sub ImgKeluar_Click()
Unload Me
End Sub
Private Sub ImgKeluar_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Label2(0).FontBold = False
Label2(1).FontBold = False
Label2(2).FontBold = False
Label2(3).FontBold = False
Label2(4).FontBold = False
Label2(5).FontBold = False
Label2(6).FontBold = True
End Sub
Private Sub ImgLaporan_Click()
FrmPilihLaporan.Show vbModal, FrmMain
End Sub
Private Sub ImgLaporan_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Label2(0).FontBold = False
Label2(1).FontBold = False
Label2(2).FontBold = True
Label2(3).FontBold = False
Label2(4).FontBold = False
Label2(5).FontBold = False
Label2(6).FontBold = False
End Sub
Private Sub ImgSetings_Click()
FrmOption.Show vbModal, FrmMain
End Sub
Private Sub ImgSetings_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Label2(0).FontBold = False
Label2(1).FontBold = False
Label2(2).FontBold = False
Label2(3).FontBold = False
Label2(4).FontBold = True
Label2(5).FontBold = False
Label2(6).FontBold = False
End Sub
Private Sub ImgUninstall_Click()
Call Show_FormUninstall
End Sub
Sub Backup_Registry()
On Error Resume Next
Dim fName As String
fName = App.Path & "\" & "temp" & ".tmp"
SaveKey "HKEY_LOCAL_MACHINE" & "\" & GetlocString & lstview.SelectedItem.Key, fName
Dname = GetString(HKEY_LOCAL_MACHINE, GetlocString & lstview.SelectedItem.Key, "DisplayName")
FrmBackupRegistry.LblInformasi = ">> Backup For : " & Dname
End Sub
Private Sub ImgUninstall_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Label2(0).FontBold = True
Label2(1).FontBold = False
Label2(2).FontBold = False
Label2(3).FontBold = False
Label2(4).FontBold = False
Label2(5).FontBold = False
Label2(6).FontBold = False
End Sub
Private Sub Lblbantu_Click()
PopupMenu FrmPopup.Menu8
End Sub
Private Sub Lblbantu_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
LblFile.FontBold = False
LblEdit.FontBold = False
LblTampilan.FontBold = False
LblUninstall.FontBold = False
LblTools.FontBold = False
Me.Lblbantu.FontBold = True
End Sub
Private Sub LblEdit_Click()
PopupMenu FrmPopup.Menu6
End Sub
Private Sub LblEdit_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
LblFile.FontBold = False
LblEdit.FontBold = True
Me.Lblbantu.FontBold = False
LblTampilan.FontBold = False
LblUninstall.FontBold = False
LblTools.FontBold = False
End Sub
Private Sub LblFile_Click()
PopupMenu FrmPopup.Menu3
End Sub
Private Sub LblFile_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
LblFile.FontBold = True
LblEdit.FontBold = False
Me.Lblbantu.FontBold = False
LblTampilan.FontBold = False
LblUninstall.FontBold = False
LblTools.FontBold = False
End Sub
Private Sub LblMaximized_Click()
Me.WindowState = vbMaximized
End Sub
Private Sub LblMinimized_Click()
Me.WindowState = vbNormal
End Sub
Private Sub LblRestore_Click()
Me.WindowState = vbMinimized
End Sub
Sub MnuHapusEntry_Click()
Dname = GetString(HKEY_LOCAL_MACHINE, GetlocString & lstview.SelectedItem.Key, "DisplayName")
RegName = lstview.SelectedItem.Key
FrmHapusEntry.LblDname.Caption = Dname
FrmHapusEntry.TxtRegname.Text = RegName
FrmHapusEntry.Show vbModal, FrmMain
End Sub
Sub MnuEditEntry_Click()
Dname = GetString(HKEY_LOCAL_MACHINE, GetlocString & lstview.SelectedItem.Key, "DisplayName")
UString = GetString(HKEY_LOCAL_MACHINE, GetlocString & lstview.SelectedItem.Key, "UninstallString")
RegName = lstview.SelectedItem.Key
FrmEditEntry.LblRegName.Caption = RegName
FrmEditEntry.TxtDname.Text = Dname