LaunchINFSection & RunDLL32


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 );

Calling Syntax

rundll32.exe advpack.dll,LaunchINFSection inf filename[,section name][,flags][,smart reboot]


INF Filename

INF file pathname you want to launch.


Section Name

INF install section name you want to launch in the INF file.



1Quiet Mode
2 No GrpConv


Smart Reboot

NNo Reboot
AAlways Reboot
IReboot 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.

What Happens?

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).