Well, I'm no export, but in the .NET framework, there are some namespaces/stuff that you can use like:
Dim regKey As RegistryKey
regKey = Registry.LocalMachine.OpenSubKey("SOFTWARE", True)
regKey.CreateSubKey("MyApp")
regKey.Close()
and
Dim regKey As RegistryKey
Dim ver As Decimal
regKey = Registry.LocalMachine.OpenSubKey("Software\MyApp", True)
regKey.SetValue("AppName", "MyRegApp")
ver = regKey.GetValue("Version", 0.0)
If ver < 1.1 Then
regKey.SetValue("Version", 1.1)
End If
regKey.Close()
What I would do is create an automation (dll) in .NET with the functions I need to update the registry, and use it in my C/SIDE application.
Off course, if there is allready some kind of automation/OCX or whatever that I don't know of, then use that one ... .
Check the Automation "'Windows Script Host Object Model'.WshShell or "'Windows Script Host Object Model'.IWshShell_Class" (it depend on your OS version). There is RegRead, RegWrite etc...
Comments
What I would do is create an automation (dll) in .NET with the functions I need to update the registry, and use it in my C/SIDE application.
Off course, if there is allready some kind of automation/OCX or whatever that I don't know of, then use that one ... .
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog