All About .reg file

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.
10 posts Page 1 of 1
Contributors
User avatar
Rhez
Member
Member
Posts: 30
Joined: Sat Jan 04, 2014 7:24 am

All About .reg file
Rhez
HELLO GUYS,

I'm creating a project in vb.net that will create a .reg file and silently add it to the registry.
I know how to create .reg file but I don't know how to silently add it to the registry .

Is it possible to create a .reg file and directly add it to the registry ? If that so, how can I do that ?
boogy; I will put your name on my project as soon as I finish it as contributor to my project. boogy;

SUMMARY PROBLEM :

* Add silently .reg file to registry file
* If possible create .reg file directly to Registry

Thanks for reading this and your awesome for helping me (in advance) clapper; clapper;
Last edited by Rhez on Thu Nov 13, 2014 10:50 am, edited 1 time in total.
User avatar
benji_19994
VIP - Donator
VIP - Donator
Posts: 156
Joined: Mon Apr 16, 2012 3:13 pm

Re: All About .reg file
benji_19994
Your not creating malware are you :S
User avatar
Rhez
Member
Member
Posts: 30
Joined: Sat Jan 04, 2014 7:24 am

Re: All About .reg file
Rhez
creating malware ?
I just want to edit the license of my software in another program ..
If I will create malware then why I would like to place the name of those who help me there ?
User avatar
benji_19994
VIP - Donator
VIP - Donator
Posts: 156
Joined: Mon Apr 16, 2012 3:13 pm

Re: All About .reg file
benji_19994
I was just asking lol if its changing the license then there should be no issue in the user getting a notification to change registry keys or just make it a requirement that the user has to have UAC or ran as an administrator thats the only way i know
User avatar
visualtech
VIP - Donator
VIP - Donator
Posts: 265
Joined: Sat Nov 19, 2011 2:19 pm

Re: All About .reg file
visualtech
Hey #Rhez,

Regarding licensing, you can use some sort of RSA encrypted licensing file and store it in AppData or the current working directory! It should work as expected. [Trust me, 5 years of research in this field] :) Should you need any code, PM me!

Cheers!
Image
User avatar
Rhez
Member
Member
Posts: 30
Joined: Sat Jan 04, 2014 7:24 am

Re: All About .reg file
Rhez
visualtech wrote:
Hey #Rhez,

Regarding licensing, you can use some sort of RSA encrypted licensing file and store it in AppData or the current working directory! It should work as expected. [Trust me, 5 years of research in this field] :) Should you need any code, PM me!

Cheers!
Thanks for that tips sir :D But I just want all my work go to be easy.
I'll make a .reg file just like this

[HKEY--BLAHBLAHBLAH]
"name"=" FreeUSER "
"key"="ABCD-EFGH-IJKL-MNOP"
...

just like that then silently add it to the registry. Can anyone help ?
User avatar
CodenStuff
Site Admin
Site Admin
Posts: 4389
Joined: Tue Aug 04, 2009 1:47 am

Re: All About .reg file
CodenStuff
Why not just use VB built in registry functions: http://msdn.microsoft.com/en-us/library/85t3c3hf.aspx
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.
User avatar
visualtech
VIP - Donator
VIP - Donator
Posts: 265
Joined: Sat Nov 19, 2011 2:19 pm

Re: All About .reg file
visualtech
Well, you CAN use that, but should you? The user can change it! Have some sort of private/public (Asymmetric) algorithm to check the signature of the key!
Image
User avatar
mandai
Coding God
Coding God
Posts: 2585
Joined: Mon Apr 26, 2010 6:51 pm

Re: All About .reg file
mandai
Rhez wrote:
just like that then silently add it to the registry. Can anyone help ?
You can import the data with regedit in silent mode:
Code: Select all
        Dim psi As ProcessStartInfo = New ProcessStartInfo()
        psi.FileName = "regedit.exe"
        psi.Arguments = "/s file.reg"

        Process.Start(psi)
User avatar
Rhez
Member
Member
Posts: 30
Joined: Sat Jan 04, 2014 7:24 am

Re: All About .reg file
Rhez
mandai wrote:
Rhez wrote:
just like that then silently add it to the registry. Can anyone help ?
You can import the data with regedit in silent mode:
Code: Select all
        Dim psi As ProcessStartInfo = New ProcessStartInfo()
        psi.FileName = "regedit.exe"
        psi.Arguments = "/s file.reg"

        Process.Start(psi)
Thanks to all of your IDEA ^_^ .. Specially on sir CodenStuff and the tips of sir visualtech ( I am newbie in this field , thanks for the help. My problem is fix )
10 posts Page 1 of 1
Return to “Coding Help & Support”