setlocal EnableDelayedExpansion
set /a KEYNUM=0
SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx
REG ADD %KEY% /V TITLE /D "Installing Softwares..." /f
FOR %%i IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST "%%i:\Software" (for /f "delims=" %%z in ('dir /b %%i:\Software\*.exe') do (
set /a KEYNUM=!KEYNUM!+1
REG ADD %KEY%\!KEYNUM! /VE /D "%%~nz" /f
REG ADD %KEY%\!KEYNUM! /V 1 /D "%%i:\Software\%%z" /f
))
Just add this to end of your setupcomplete.cmd or oobe.cmd (don't forget to add this after your ntlite edits. or else ntlite will remove or break these commands)
this will run/install any exe file in Software folder (Software folder can be placed under anydrive's main directory)
Exe files will be run after useraccount is created + first logged in.
this method is out there since ages.
abbodi86 nuhi Clanger Kasual George King if there are any volunteers i would like to see how to add
reg (with silent parameter) and
msi (also with silent parameter
s) support to this script... and maybe
subfolder support in software folder for exe reg and msi too... i think a year ago i asked for help again but i couldn't figure it out at mydigitallife forums