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]就知道了。
沙发给的连结已经很详细了,自己翻译一下就应该很清楚了。
俺虽然英语很差,多少也能看出section是和inf里的section相关地,而mode貌似是控制重启方式的,可以用128加后面的数值来指定是否重启,重启前是否提示。至于path就不用说了,inf的路径咯。
另外不记得是《深入挖掘windows脚本技术》还是《DO ALL IN COMMANDLINE》里面有提到过,平时用不着,都忘记鸟。