Nambah List Program Di Add/Remove program (Windus)
Haduh gmn yah caranya nambahin List program kita di add/remove program ?? Gw masih cupu nih masalah program, pa lagi cuman kenal ma 1 basa. vb doank lagi :). Alhamdulillah tempat gw kerja sekarang da internetnya. site yang biasa gw kunjungi klo lagi kaya gini ya om google. Tapi ada web yang nyediain sample yang jumlahnya seabreg-abreg yaitu planet-sor-code
. Pertama gw search make keyword installer/setup dan ternyata ada topik "add/remove programs list". Kode lengkapnya dibawah ini :
**************************** Code : ****************************
Dim o As New WshShell
Public Sub list_add(prg_nm As String, uni_cmd As String)
'adding a program to the list of program
' s in 'Add/Remove Programs'
'args: display name, uninstall command
o.RegWrite "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\" & prg_nm & "\DisplayName", prg_nm
o.RegWrite "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\" & prg_nm & "\UninstallString", uni_cmd
End Sub
Public Sub list_rem(prg_nm As String)
'removing a program from the list of pro
' grams in 'Add/Remove Programs'
'args: display name
o.RegDelete "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\" & prg_nm
End Sub
**************************** End Code : ****************************
Sebenernya masih ada lagi Name Registrinya yg bisa di masukin diantaranya :
DisplayName, DisplayIcon, DisplayVersion, Publisher, URLInfoAbout, UninstallString
Hayu..... sapa Yang mao ngoprek-ngoprek registrynya windus ???
Tidak ada komentar:
Posting Komentar