Help - Search - Members - Calendar
Full Version: Can you tell me if the code of my Batch_file is just?
MSFN Forums > Unattended Windows Discussion & Support > Application Installs

   


Google Internet Forums Unattended CD/DVD Guide
wiiiman
Here the code of my batch_file.cmd:

CLS
@echo off
TITLE Windows XP SP2 - Unattended Installation

ECHO.
ECHO Over the next few minutes you will see automated installations
ECHO of various sofware applications, and registry tweaks being
ECHO implemented. The computer will restart automatically once the
ECHO whole process has finished!

ECHO.
ECHO Starting installation of Applications (1/3)

ECHO.
ECHO Installing Directx 9.c
ECHO Please wait...
start /wait %systemdrive%\install\Applications\directx_9c_redist\dxsetup.exe /silent

ECHO.
ECHO Installing Satsuki Decoder Pack 2.0.0.6
ECHO Please wait...
start /wait %systemdrive%\install\Applications\Satsuki.Decoder.Pack.2.0.0.6.exe /S

ECHO.
ECHO Installing Adobe Acrobat Reader 7.0
ECHO Please wait...
start /wait %systemdrive%\install\Applications\AdbeRdr70_fra_full.exe /S /v/qn

ECHO.
ECHO Installing Office XP Professional with Frontpage
ECHO Please wait...
start /wait %systemdrive%\install\Applications\OfficeXP\setup.exe TRANSFORMS=Unattended.MST /qb-

ECHO.
ECHO Starting implementing of registry tweaks (2/3)

ECHO.
ECHO Applying Registry Tweaks...
REGEDIT /S %systemdrive%\install\Reg\2ki10.reg
REGEDIT /S %systemdrive%\install\Reg\2ki18.reg
REGEDIT /S %systemdrive%\install\Reg\arret_rapide.reg
REGEDIT /S %systemdrive%\install\Reg\arret_service.reg
REGEDIT /S %systemdrive%\install\Reg\booster.reg
REGEDIT /S %systemdrive%\install\Reg\i1262.reg
REGEDIT /S %systemdrive%\install\Reg\i165.reg
REGEDIT /S %systemdrive%\install\Reg\i19.reg
REGEDIT /S %systemdrive%\install\Reg\i89.reg
REGEDIT /S %systemdrive%\install\Reg\i652.reg
REGEDIT /S %systemdrive%\install\Reg\ntfs.reg

ECHO.
ECHO Restarting the PC in 1 minute...
shutdown.exe -r -f -t 60 -c "Windows XP will now restart in 1 minute, this will give enough time for the shortcuts to update and for the shell to fully load before its ready to restart!"

ECHO.
Echo Starting deleting of unless files (3/3)

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


ECHO.
ECHO Removing useless shortcuts...
DEL "%systemdrive%\Documents and Settings\All Users\Menu Démarrer\Configurer les programmes par défaut.lnk"
DEL "%systemdrive%\Documents and Settings\All Users\Menu Démarrer\Catalogue Windows.lnk"
DEL "%AllUsersProfile%\Bureau\Adobe Reader 7.0.lnk"

EXIT



Can you tell me if I didn't make mistakes in my code, especially on the "installation of Applications " part (for the silent parametre)???

Sorry for my English but I live in Belgium.. And so you understand well why there are some french words in the code like "menu démarrer"!

Do I have to put a "wait" for each registry tweaks, or can the batch cmd make all of them in the same time??

If there are mistakes, can you explain me them and correct them!

Thank you very well!!!! thumbup.gif
Solid as a rock
QUOTE (wiiiman @ Nov 19 2005, 04:35 PM) *
Here the code of my batch_file.cmd:

*SNIPPED*

If there are mistakes, can you explain me them and correct them!

Thank you very well!!!! thumbup.gif

Let me ask you... if all members from MSFN post their cmd and all ask if it is written well (without test it by themself and look if they get errors or problems). would that be nice?
rikgale
Apart from not using code tags, the admins pet hate, it seems fine.

Why are you installing DX9c, it comes installed with SP2?
wiiiman
SolidasRock => Sorry but i'm a newbee and i don't know how to test the code.....

rikgale => What do you want to say by "Apart from not using code tags"? I don't really understand!
And for direct x, I don't know because i have sp1 actually on my pc! Are you sure of what you say?
Solid as a rock
QUOTE (wiiiman @ Nov 19 2005, 05:16 PM) *
SolidasRock => Sorry but i'm a newbee and i don't know how to test the code.....

rikgale => What do you want to say by "Apart from not using code tags"? I don't really understand!
And for direct x, I don't know because i have sp1 actually on my pc! Are you sure of what you say?

he means you need to write [ code ] your cmd [ /code ] (without spaces newwink.gif , it looks much better and more clear for other members.

and yes, we are very sure Dx9c is already included in SP2, (i think you already have slipstreamed SP2 to your windowsdisk?). at the top of this forum you will notice a "unattended cd/dvd guide". there you will read much more info, and as if you want, you could read the dutch translate too at the same adres at the bottom.

and you can test your cmd to USE it, (at another unused pc? or use VMWare, or ViritualPC). again, at the howto which i am talking about you will read more...

we all begin here as newbees, but we cant post all our cmd or other things and ask: look this good? run it, if error occurs and you cant find out what the problem is, ask it here.
natan770
CODE
ECHO.
ECHO Installing Office XP Professional with Frontpage
ECHO Please wait...
start /wait %systemdrive%\install\Applications\OfficeXP\setup.exe TRANSFORMS=Unattended.MST /qb-


well, you've got to test smile.gif
but at the very least, this line is wrong. The MST file won't be found. Give it the path...

Natan
http://www.windowsdream.com -- FREE Automatic Software Installation
wiiiman
thanks for the help!




Google Internet Forums Unattended CD/DVD Guide

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.