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.
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
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
where it say (default) replace it with "" that will work
like this
like this
Code: Select all
My.Computer.Registry.SetValue("HKEY_CURRENT_USER\Software\WinRAR SFX", "", "C:\1.ico")
2 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023