关于RUNDLL32.EXE SETUPAPI.DLL,InstallHinfSection

sunnyfish_23 2010-02-21 05:17:11
在cmd中输入RUNDLL32.EXE SETUPAPI.DLL,InstallHinfSection <section><mode><path>

其中section和mode具体都有哪些啊?有哪位达人清楚,请指教
...全文
1880 8 打赏 收藏 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
arlenshao 2010-08-11
  • 打赏
  • 举报
回复
看看Microogle的回复
sunnyfish_23 2010-02-22
  • 打赏
  • 举报
回复
谢啦,Microogle!
很详细!
Microogle 2010-02-21
  • 打赏
  • 举报
回复
Value Description
0 System provided INF.
128 Set the default path of the installation to the location of the INF. This is the typical setting.
+0 Never reboot the computer.
+1 Reboot the computer in all cases.
+2 Always ask the users if they want to reboot.
+3 Reboot the computer if necessary without asking user for permission.
+4 If a reboot of the computer is necessary, ask the user for permission before rebooting.
明显132=128+4,也就是说,如果必须要重启,则先询问。
至于DefaultInstall,应该是inf里面的节,用记事本打开看看有没有[DefaultInstall]就知道了。
sunnyfish_23 2010-02-21
  • 打赏
  • 举报
回复
就拿这个例子来讲
RUNDLL32.EXE SETUPAPI.DLL,InstallHinfSection DefaultInstall 132 C:\WINDOWS\INF\SHELL.INF
“DefaultInstall” 和“132”是怎么来的呢?
Microogle 2010-02-21
  • 打赏
  • 举报
回复
沙发给的连结已经很详细了,自己翻译一下就应该很清楚了。
俺虽然英语很差,多少也能看出section是和inf里的section相关地,而mode貌似是控制重启方式的,可以用128加后面的数值来指定是否重启,重启前是否提示。至于path就不用说了,inf的路径咯。
另外不记得是《深入挖掘windows脚本技术》还是《DO ALL IN COMMANDLINE》里面有提到过,平时用不着,都忘记鸟。
sunnyfish_23 2010-02-21
  • 打赏
  • 举报
回复
还是不明白section 和mode具体都有哪些?
xman_78tom 2010-02-21
  • 打赏
  • 举报
回复
http://msdn.microsoft.com/en-us/aa376957%28VS.85%29.aspx

6,873

社区成员

发帖
与我相关
我的任务
社区描述
Windows 2016/2012/2008/2003/2000/NT
社区管理员
  • Windows Server社区
  • qishine
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧