Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How Import (merge) a reg file using delphi?

I have several .reg (Windows registry) files (generated by an external application) that need to merge into the windows registry. Now i'm using the ShellExecuteEx function to call the regedit.exe application, passing the filename as parameter (And works fine), but I'm wondering if exist any WinAPi function or another way to merge that file without call to the regedit.exe application.

like image 784
Salvador Avatar asked Oct 23 '25 19:10

Salvador


1 Answers

I expect that the answer is no. Via the winapi, you'd read the file as a .ini file, and make the appropriate registry modifications accordingly. I would be surprised if regedit.exe does something different than that.

like image 136
Chris Thornton Avatar answered Oct 25 '25 10:10

Chris Thornton



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!