Jump to content

Can you tell me if the code of my Batch_file is just?


wiiiman

Recommended Posts

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

Link to comment
Share on other sites


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

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?

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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 ;) , 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.

Edited by SolidasRock
Link to comment
Share on other sites

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 :)

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

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