wiiiman Posted November 19, 2005 Share Posted November 19, 2005 Here the code of my batch_file.cmd:CLS@echo offTITLE Windows XP SP2 - Unattended InstallationECHO.ECHO Over the next few minutes you will see automated installations ECHO of various sofware applications, and registry tweaks beingECHO implemented. The computer will restart automatically once theECHO whole process has finished!ECHO.ECHO Starting installation of Applications (1/3)ECHO.ECHO Installing Directx 9.cECHO Please wait...start /wait %systemdrive%\install\Applications\directx_9c_redist\dxsetup.exe /silentECHO.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 FrontpageECHO 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.regREGEDIT /S %systemdrive%\install\Reg\2ki18.regREGEDIT /S %systemdrive%\install\Reg\arret_rapide.regREGEDIT /S %systemdrive%\install\Reg\arret_service.regREGEDIT /S %systemdrive%\install\Reg\booster.regREGEDIT /S %systemdrive%\install\Reg\i1262.regREGEDIT /S %systemdrive%\install\Reg\i165.regREGEDIT /S %systemdrive%\install\Reg\i19.regREGEDIT /S %systemdrive%\install\Reg\i89.regREGEDIT /S %systemdrive%\install\Reg\i652.regREGEDIT /S %systemdrive%\install\Reg\ntfs.regECHO.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%\installECHO.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"EXITCan 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!!!! Link to comment Share on other sites More sharing options...
Solid as a rock Posted November 19, 2005 Share Posted November 19, 2005 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!!!! 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 More sharing options...
rikgale Posted November 19, 2005 Share Posted November 19, 2005 Apart from not using code tags, the admins pet hate, it seems fine. Why are you installing DX9c, it comes installed with SP2? Link to comment Share on other sites More sharing options...
wiiiman Posted November 19, 2005 Author Share Posted November 19, 2005 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 More sharing options...
Solid as a rock Posted November 19, 2005 Share Posted November 19, 2005 (edited) 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 November 19, 2005 by SolidasRock Link to comment Share on other sites More sharing options...
natan770 Posted November 19, 2005 Share Posted November 19, 2005 ECHO.ECHO Installing Office XP Professional with FrontpageECHO 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...Natanhttp://www.windowsdream.com -- FREE Automatic Software Installation Link to comment Share on other sites More sharing options...
wiiiman Posted November 20, 2005 Author Share Posted November 20, 2005 thanks for the help! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now