Jump to content

RunOnceEx - adding DX9c and IE7 ?


Recommended Posts

Hello folks, due to your guide im almsot completed my Unattended CD, but im stuck to these two components : DirectX 9.0c (redist_Mar2008) and IE7. Also i want to check my RunOnceEx.cmd and my batch.cmd and tell me if i have made

something wrong or if im ok, before closing the CD and make it Bootable.

Before posting i made a search in da forum but i didnt find a solution about DX9c and IE7, i mean from RunOnceEx.

Here is my two files :

RunOnceEX :

cmdow @ /HID
@echo off

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:\CD.txt SET CDROM=%%i:

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

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

REG ADD %KEY%\001 /VE /D "Preparing Installation..." /f

REG ADD %KEY%\005 /VE /D "Live Messenger 8" /f
REG ADD %KEY%\005 /V 1 /D "%CDROM%\Apps\MSN\MsnMsgs.msi /qn" /f

REG ADD %KEY%\010 /VE /D "Windows Media Player 11" /f
REG ADD %KEY%\010 /V 1 /D "%CDROM%\Apps\WMP11\WMP11.exe /q:A /c:\"setup_wm.exe /Q /R:N /DisallowSystemRestore\"" /f

REG ADD %KEY%\015 /VE /D "Windows Defender" /f
REG ADD %KEY%\015 /V 1 /D "%CDROM%\Apps\Defender\WindowsDefender.msi /qn" /f
REG ADD %KEY%\015 /V 2 /D "taskkill /F /IM MSASCui.exe" /f

REG ADD %KEY%\020 /VE /D "Internet Explorer 7" /f
REG ADD %KEY%\020 /V 1 /D "%CDROM%\Apps\IE7\IE7.exe /qn" /f

EXIT

apps_batch :

@echo off
TITLE Windows XP SP2 - Unattended Installation

ECHO.
ECHO Over the next few minutes you will see automated installations
ECHO of various software applications. The computer will restart
ECHO automatically once the process has finished!

ECHO.
ECHO Installing Applications...

ECHO.
ECHO Installing .NET Framework v1.1
ECHO Please wait...
start /wait %systemdrive%\install\NetFramework1\netfx.msi /qb

ECHO.
ECHO Installing .NET Framework 2.0...
start /wait %Systemdrive%\Install\NeTFramework2\dotnetfx2.exe /q:a /c:"install.exe /q"

ECHO.
ECHO Deleting Temp Installation Files...
RD /S /Q %systemdrive%\install

EXIT

About IE7 entry in the RunOnce is just an addition, when ill have the complete code ill delete it and add the correct one.

About DX9, i unzip it to a folder and i saw a lot of other .cab files . . . . that confused me a lot.

So that all, if someone give a hand ill be grateful. Cheers :hello:

Link to comment
Share on other sites


Hi, :hello:

For the DirectX End-User Runtimes (March 2008):

http://www.microsoft.com/downloads/details.aspx?FamilyId=740AC79A-5B72-447D-84F9-EE6407ED1A91&displaylang=en

I extract the content of the file “directx_mar2008_redist.exe” to folder called “DIRECTX”.

Then I do my command line pointing to the “DXSETUP.exe” inside that folder with this switch:

DIRECTX\DXSETUP.exe /silent

For IE7 I use this command line:

Windows Internet Explorer 7 for Windows XP

http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=9ae91ebe-3385-447c-8a30-081805b2f90b

IE7-WindowsXP-x86-enu.exe /quiet /update-no /nobackup /norestart

Good luck,

Anderton.

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...