开发者

launch exe from inf installation

in my recent project, i have to launch an exe from inf. when my company's device is plugged into win 7 system, PnP service will s开发者_如何学编程earch device driver from Windows Update Server and install it automatically. on the last step, i must start a app. how can i do that from inf installaton? Please help!!! i tried writing a stub ocx and call shellexecute in dllregisterserver. when i register it manually using regsvr32 command, i works, but it doesn't work on automatic installation(shellexecute succeeds but nothing happens). it seems that system forbiddens it. Could anybody give me some advice?Many thanks!


It is forbidden (or at least deprecated) to call executables from an inf installation file.

WHQL tests will fail, if you have such a line in your inf file.

What you can do, is have a process already running, which registers itself to wait on a device interface to appear.


If you want register a DLL inside of INF-based installation you can use RegisterDlls directive in the DefaultInstall section (see http://msdn.microsoft.com/en-us/library/ff547356.aspx and http://msdn.microsoft.com/en-us/library/ff547460.aspx).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜