The LaunchINFSection function in Advanced INF Installer can be used to launch an advanced INF section using RunDLL32.EXE. This API allows user to use advpack.dll from command line without writing the program.
INT WINAPI LaunchINFSection( HWND hwnd, HINSTANCE hinst, PSTR pszCmdline,
INT ishow );
rundll32.exe advpack.dll,LaunchINFSection inf filename[,section name][,flags][,smart reboot]
INF file pathname you want to launch.
INF install section name you want to launch in the INF file.
Flag | Meaning |
---|---|
1 | Quiet Mode |
2 | No GrpConv |
N | No Reboot |
---|---|
A | Always Reboot |
I | Reboot if Needed (default value) |
rundll32.exe advpack.dll,LaunchINFSection myinf.inf,,3
This means install myinf.inf with DefaultInstall section in Quiet Mode with no GrpConv, reboot if needed.
When called, advpack executes the INF section in the same manner as if it was called using RunSetupCommand, except that the dialog title is taken from the INF (BeginPrompt section).