Step 1 Methods Of install
Friday, December 10, 2010
, Posted by Tech Point at 11:05 PM
Methods Of install
Two methods of installing application in unattended installation of Windows.
1.Batch Scripting
2.RunOnceEX
This time i tech you 2.RunOnceEx Method
1st prepare your mind i tech you manually method of create RunOnceEx file
To start RunOnceEx on first logon, we will need to import the registry keys during GUI-mode of Windows Setup. We can do this by using cmdlines.txt which executes a series of commands during the T-12 minute stage of Windows XP Setup. Create a cmdlines.txt file in Notepad and paste in the following:
[COMMANDS]
"RunOnceEx.cmd"
Save this as cmdlines.txt inside the $OEM$ folder within your Windows Setup Source folder.
>>Creating your RunOnceEx.cmd file
cmdow @ /HID
@echo off
SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx
REG ADD %KEY% /V TITLE /D "Installing Applications" /f
REG ADD %KEY%\005 /VE /D "7ZIP" /f
REG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\7Z443.exe" /f
REG ADD %KEY%\010 /VE /D "FIREFOX" /f
REG ADD %KEY%\010 /V 1 /D "%systemdrive%\install\ULTRAISO.exe" /f
REG ADD %KEY%\015 /VE /D "FOXIT" /f
REG ADD %KEY%\015 /V 1 /D "%systemdrive%\install\UTORRENT.exe" /f
REG ADD %KEY%\020 /VE /D "IDM" /f
REG ADD %KEY%\020 /V 1 /D "%systemdrive%\install\RAPGET.exe" /f
REG ADD %KEY%\025 /VE /D "NOD32" /f
REG ADD %KEY%\025 /V 1 /D "%systemdrive%\install\NOD32.exe" /f
REG ADD %KEY%\050 /VE /D "Cleaning Up and Rebooting" /f
REG ADD %KEY%\050 /V 1 /D "%systemdrive%\install\cleanup.cmd" /f
EXIT
Save this as RunOnceEx.cmd in C:\XPCD\$OEM$\
>>Cleanup.cmd
cmdow @ /HID
shutdown.exe -r -f -t 120 -c "Windows XP will now restart in 1 minute..."
net user aspnet /delete
DEL "%systemroot%\*.bmp"
DEL "%systemroot%\Web\Wallpaper\*.jpg"
DEL "%systemroot%\system32\dllcache\*.scr"
DEL "%systemroot%\system32\*.scr"
DEL "%AllUsersProfile%\Start Menu\Windows Update.lnk"
DEL "%AllUsersProfile%\Start Menu\Set Program Access and Defaults.lnk"
DEL "%AllUsersProfile%\Start Menu\Windows Catalog.lnk"
RD /S /Q %systemdrive%\drivers\
RD /S /Q %systemdrive%\install\
EXIT
Currently have 0 comments: