Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to avoid confirmation message when executing a .reg file with shellexecute command

In my program I check for a registry key at startup and if somehow it does not exist I execute the reg file located in the application folder wit the help of ShellExecute command. How can I avoid getting confimation messages when executing this command. Is there a way to do that or as per security reasons it's not possible?

like image 663
Mikayil Abdullayev Avatar asked Jan 16 '12 08:01

Mikayil Abdullayev


1 Answers

Use the /s command-line switch. (see http://support.microsoft.com/kb/82821)

like image 151
Stephane Avatar answered Oct 06 '22 07:10

Stephane