First of all add unit ShellApi
For import use:
1 |
ShellExecute(0,nil,'regedit.exe',PChar('/s "keyfile.reg"'),nil,0); |
and for export:
1 |
ShellExecute(0,nil,'regedit.exe',PChar('/e "keyfile.reg" "registrykey"'),nil,0); |