Reg help VB
Posted: Mon Feb 22, 2010 2:05 pm
i need a little help from you i want to edit a registry value data of value name " Default "
for example i want to change "(Default)" registry value of "HKEY_CURRENT_USER\Software\WinRAR SFX" to "C:\1.ico"
so i open notepad copy paste this code in it
Code: [Select]
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\WinRAR SFX]
"(Default)"="C:\1.ico"
& saved it as 1.reg
then i runned the 1.reg file but it cant add the value "C:\1.ico" to "(Default)" of HKEY_CURRENT_USER\Software\WinRAR SFX
check it by opening registry editor
so i go through Visual Basic
created a windows application ,
added a button to it & on button1 click i added this code
Code: [Select]
My.Computer.Registry.SetValue("HKEY_CURRENT_USER\Software\WinRAR SFX", "(Default)", "C:\1.ico")
yes it done it added the registry but there is not useful cause it make 1 more key named "(Default)" without value
so no use as i want to add "C:\1.ico" to the "(Default)" value
so is any1 know how to do it please let me know how
waiting for ur help guys
for example i want to change "(Default)" registry value of "HKEY_CURRENT_USER\Software\WinRAR SFX" to "C:\1.ico"
so i open notepad copy paste this code in it
Code: [Select]
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\WinRAR SFX]
"(Default)"="C:\1.ico"
& saved it as 1.reg
then i runned the 1.reg file but it cant add the value "C:\1.ico" to "(Default)" of HKEY_CURRENT_USER\Software\WinRAR SFX
check it by opening registry editor
so i go through Visual Basic
created a windows application ,
added a button to it & on button1 click i added this code
Code: [Select]
My.Computer.Registry.SetValue("HKEY_CURRENT_USER\Software\WinRAR SFX", "(Default)", "C:\1.ico")
yes it done it added the registry but there is not useful cause it make 1 more key named "(Default)" without value
so no use as i want to add "C:\1.ico" to the "(Default)" value
so is any1 know how to do it please let me know how
waiting for ur help guys