MSFN Forum: Can you tell me if the code of my Batch_file is just? - MSFN Forum

Jump to content



Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

Read Forum Rules
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Can you tell me if the code of my Batch_file is just? Rate Topic: -----

#1 User is offline   wiiiman 

  • Group: Members
  • Posts: 3
  • Joined: 19-November 05

Posted 19 November 2005 - 09:35 AM

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


#2 User is offline   Solid as a rock 

  • So solid as a rock is
  • PipPipPipPipPip
  • Group: Members
  • Posts: 718
  • Joined: 30-May 04

Posted 19 November 2005 - 09:42 AM

View Postwiiiman, on Nov 19 2005, 04:35 PM, said:

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?

#3 User is offline   rikgale 

  • uA lover
  • PipPipPip
  • Group: Members
  • Posts: 422
  • Joined: 01-November 04

Posted 19 November 2005 - 10:03 AM

Apart from not using code tags, the admins pet hate, it seems fine.

Why are you installing DX9c, it comes installed with SP2?

#4 User is offline   wiiiman 

  • Group: Members
  • Posts: 3
  • Joined: 19-November 05

Posted 19 November 2005 - 10:16 AM

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?

#5 User is offline   Solid as a rock 

  • So solid as a rock is
  • PipPipPipPipPip
  • Group: Members
  • Posts: 718
  • Joined: 30-May 04

Posted 19 November 2005 - 12:30 PM

View Postwiiiman, on Nov 19 2005, 05:16 PM, said:

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.

This post has been edited by SolidasRock: 19 November 2005 - 12:34 PM


#6 User is offline   natan770 

  • Junior
  • Pip
  • Group: Members
  • Posts: 90
  • Joined: 17-November 05

Posted 19 November 2005 - 01:38 PM

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


#7 User is offline   wiiiman 

  • Group: Members
  • Posts: 3
  • Joined: 19-November 05

Posted 20 November 2005 - 04:38 AM

thanks for the help!

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy