Jump to content

Unattended WinXp Installation (intermediate step)


Recommended Posts

Hello All

Trying to work on Unattended installation. Got stuck with the intermediate step mentioned. Not getting the idea whether to use Batch Scripting or RunOnceEx. Currently using RunOnceEx and only thing I am not sure is where to copy the applications in the installation folder. I could not find the instructions for it.

Pretty confused. Also not too sure about the switches which one to use for what kind of applications.

I want to just add the following applications

1. Winzip

2. WinRar

3. Winamp

4. K lite Coded Full Pack

5. May be an Antivirus

6. Office 2003

7. NovaPDF

8. and Few Drivers

Please help me out with this. I did search the Forum but could not find the specific answers to my query

Thanks in advance

Bye

Link to comment
Share on other sites


You can make the install folder anywhere you want. You just have to point RunOnceEx to the location of the files.

I recommend you use

$OEM$\$1\Install

This folder will be copied to your hard drive during installation. So your RunOnceEx should look like

@echo off

REG ADD "HKLM\SOFTWARE\Microsoft\GdiDetectionTool" /v "GDITool" /t REG_DWORD /d "00000001" /f
SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Installing Applications" /f

REG ADD %KEY%30 /VE /D "Microsoft .NET Framework 2.0" /f
REG ADD %KEY%30 /V 1 /D "%systemdrive%\install\dotnet2.exe" /f

REG ADD %KEY%40 /VE /D "Microsoft Internet Explorer 7" /f
REG ADD %KEY%40 /V 1 /D "%systemdrive%\install\IE7.exe /q" /f

REG ADD %KEY%50 /VE /D "Windows Media Player 11" /f
REG ADD %KEY%50 /V 1 /D "%systemdrive%\install\wmp11.exe /q" /f
REG ADD %KEY%50 /V 2 /D "%systemdrive%\install\KB920342.exe /q /n /z" /f

REG ADD %KEY%\999 /VE /D "SysPrep and Reboot" /f
REG ADD %KEY%\999 /V 1 /D "%systemdrive%\install\Reboot.cmd" /f

EXIT

If you want to install from CD, then it should look like this

@echo off
set tagfile=\win51ip.sp2
for %%i in (c 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:%tagfile%" set CDDRV=%%i:
start /wait xcopy %CDDRV%\i386\*.* %systemdrive%\i386\ /e /c /i /q /y > nul

REG ADD "HKLM\SOFTWARE\Microsoft\GdiDetectionTool" /v "GDITool" /t REG_DWORD /d "00000001" /f
SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Installing Applications" /f

REG ADD %KEY%30 /VE /D "Microsoft .NET Framework 2.0" /f
REG ADD %KEY%30 /V 1 /D "%CDDRV%\install\dotnet2.exe" /f

REG ADD %KEY%40 /VE /D "Microsoft Internet Explorer 7" /f
REG ADD %KEY%40 /V 1 /D "%CDDRV%\install\IE7.exe /q" /f

REG ADD %KEY%50 /VE /D "Windows Media Player 11" /f
REG ADD %KEY%50 /V 1 /D "%CDDRV%\install\wmp11.exe /q" /f
REG ADD %KEY%50 /V 2 /D "%CDDRV%\install\KB920342.exe /q /n /z" /f

REG ADD %KEY%\999 /VE /D "SysPrep and Reboot" /f
REG ADD %KEY%\999 /V 1 /D "%CDDRV%\install\Reboot.cmd" /f

EXIT

The above assumes that you have all your applications on the CD in a folder called Install off the root directory.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...