Monday, July 11, 2022

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

Issue

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?


Solution

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



Answered By - Stephane
Answer Checked By - Katrina (PHPFixing Volunteer)

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.