调用rundll32 advpack.dll运行一个驱动安装文件.inf

NSIS 调用rundll32 advpack.dll运行一个驱动安装文件.inf

ExecWait 'RunDll32 advpack.dll,LaunchINFSection "$EXEDIRyou.inf",DefaultInstall'

该命令的语法:rundll32 advpack.dll,LaunchINFSection ,<安装节(可选)>
比如:
先要彻底删除MSN

RunDll32 advpack.dll,LaunchINFSection %windir%INFmsmsgs.inf,BLC.Remove

针对驱动类可参考
RUNDLL32.EXE SETUPAPI.DLL,InstallHinfSection
RUNDLL32.EXE SETUPAPI.DLL,InstallHinfSection DefaultInstall 132 C:WINDOWSINFSHELL.INF

THE END
喜欢就支持一下吧
点赞11 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容