Automate the Installer Windows

Hi,

We have to automate the installation process. Normally the pkg we have has four steps

  1. Welcome Screen of the Installer
  2. Install Type Dialog with Install button
  3. Authentication dialog
  4. Finish dialog

We have to reduce(or automate the screen) this like

  1. Welcome Screen
  2. Authentication dialog

Once the user clicks the continue button on Welcome Screen of the Installer, it should ask for authentication and then it should show the progress window and finish window.

Is there way to automate this steps in Apple script?

Regards,
Karthikeyan M