O fai eseguire il tuo file in automatico tramite system("nomefile.reg") o usi le API di Win32 per entrare nel registro, come RegConnectRegistry