Reg help VB

If you need help with a project or need to know how to do something specific in VB.NET then please ask your questions in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
2 posts Page 1 of 1
Contributors
User avatar
MiztaInsane
VIP - Donator
VIP - Donator
Posts: 13
Joined: Thu Jan 14, 2010 3:39 pm

Reg help VB
MiztaInsane
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
User avatar
AleRi8
Top Poster
Top Poster
Posts: 153
Joined: Sun Sep 20, 2009 2:30 pm

Re: Reg help VB
AleRi8
where it say (default) replace it with "" that will work

like this
Code: Select all
My.Computer.Registry.SetValue("HKEY_CURRENT_USER\Software\WinRAR SFX", "", "C:\1.ico")
check out my software
win7 itweaker basic £4.50
viewtopic.php?f=70&t=793
2 posts Page 1 of 1
Return to “Coding Help & Support”