How to activate 'Hardware Update wizard' programmatically

Is there a way to bring this wizard up on demand?
yossikallyAsked:
Who is Participating?
 
jkrConnect With a Mentor Commented:
Yes, you can just use
TCHAR* pCmd = _T("rundll32.exe shell32.dll,Control_RunDLL hdwwiz.cpl");
 
ShellExecute(NULL,_T("open"),pCmd,NULL,NULL,SW_SHOW);

Open in new window

0
 
yossikallyAuthor Commented:
Thanks.  Is there a way to have it pre-select an INF file so that I won't have to browse for it?
0
 
jkrCommented:
No, sorry, not that I am aware of - that "interface" is very sparse and not officially documented.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.