SetupComplete.cmd for auto install app after windows 8 finish installation?

Discussion in 'Scripting' started by catdog215, Feb 8, 2013.

  1. catdog215

    catdog215 MDL Senior Member

    Oct 21, 2009
    #1 catdog215, Feb 8, 2013
    Last edited by a moderator: Apr 20, 2017
    Hi, will the SetupComplete.cmd work after Windows 8 finish the installation and then start installing these apps? I got this from MDL scripting section. I place the SetupComplete.cmd and all apps in \$oem$\$$\setup\scripts

    @echo off
    :Mozilla Firefox
    echo Installing Mozilla Firefox
    start /wait firefox.msi /passive
    :Adobe Flash Player
    echo Installing Adobe Flash Player
    start /wait adobeplayer.exe -install
    :Adobe Shockwave
    echo Installing Adobe Shockwave
    start /wait shockwave.exe -install
    echo Installing VLC
    start /wait vlc.exe /s
    :Adobe Reader
    echo Installing Adobe Reader
    start /wait adobeReader.exe /sPB /msi /norestart ALLUSERS=1 EULA_ACCEPT=YES
    ::all processing finished, delete used files, and EXIT::
    IF EXIST %windir%\Setup\scripts RD /S /Q %windir%\Setup\scripts >nul
    DEL /F /Q %0% >nul
  2. Dos_Probie

    Dos_Probie MDL Senior Member

    Jul 18, 2012
    #2 Dos_Probie, Feb 11, 2013
    Last edited by a moderator: Apr 20, 2017
    Well you don't have a path for your post installs, try this create another dist. folder
    \$oem$\$1\apps and put all your .msi, .exe, .reg files etc. there and run following example,
    or a better way may be doing Autounattend.xml which will do all your installs and bypass
    most of the setup nag screens during setup..
    @echo off
    set key=hklm\software\microsoft\windows\currentversion\runonceex
    ::Mozilla Firefox
    reg add %key%\010 /ve /d "Installing Mozilla Firefox" /f
    reg add %key%\010 /v 1 /d "msiexec.exe /i "%systemdrive%\apps\firefox.msi" /qn" /f
    ::Adobe Flash Player
    reg add %key%\012 /ve /d "Installing Adobe Flash Player" /f
    reg add %key%\012 /v 1 /d "%systemdrive%\apps\adobeplayer.exe /install" /f
    etc etc..