tallspruce Posted April 18, 2007 Share Posted April 18, 2007 I'm new to this but am proud of my batch file that runs with no errors. I know there are better one's out there so post'em!. Comodo and Kremlin are Autoit's.CLS@echo offCOLOR b0title Windows XP SP2 - Unattended Installecho Hello! Welcome to the final step of the installation process. Software needed to make Windows XP more secure and enjoyable will be installed now. Customized settings will also be added. Your computer will reboot when the process is complete. echo.echo Please wait...echo.echo.echo.echo Installing Comodo Firewall v2.4start /wait %systemdrive%\Install\Comodo\Comodo_Firewall.exeecho.echo Installing .NET Framework v1.1start /wait %systemdrive%\Install\Netframework1.1\dotnetfx.exe /q:a /c:"install.exe /q"echo.echo Installing .NET Framework v1.1 SP1start /wait %systemdrive%\Install\Netframework1.1\NDP1.1sp1-KB867460-X86.exe /Qecho.echo Installing .NET Framework v1.1 SP1 Security Updatestart /wait %systemdrive%\Install\Netframework1.1\NDP1.1sp1-KB886903-X86.exe /Qecho.echo Installing .NET Framework v2.0start /wait %systemdrive%\Install\Netframework2.0\dotnetfx.exe /q:a /c:"install.exe /q"echo.echo Installing .NET Framework v2.0 Security Updatestart /wait %systemdrive%\Install\Netframework2.0\NDP20-KB917283-X86.exe /Qecho.echo Installing .NET Framework v2.0 Security Updatestart /wait %systemdrive%\Install\Netframework2.0\NDP20-KB922770-X86.exe /Qecho.echo Installing DirectX 9.0cstart /wait %systemdrive%\Install\DirectX9.0c\DXSETUP.exe /silentecho.echo Installing UPH Clean servicestart /wait %systemdrive%\Install\Uphclean\UPHClean-Setup.msi /qnecho.echo Installing Mozilla Firefox v1.0start /wait %systemdrive%\Install\Firefox\setup.exe -ms -iraecho.echo Installing Sun Java v6 beta2start /wait %systemdrive%\Install\SunJava\jre-6-beta2-windows-i586.exe /s /v"/qn ADLOCAL=ALL IEXPLORER=1 MOZILLA=1 REBOOT=Suppress JAVAUPDATE=0 WEBSTARTICON=0"echo.echo Installing Adobe Reader 6start /wait %systemdrive%\Install\AdobeReader6\AdbeRdr60_enu_full.exe -p"-s /v\"/qn\""echo.echo Installing Adobe Flash Player 9start /wait %systemdrive%\Install\Flash9\install_flash_player_active_x.msi /qnecho.echo Installing Ad-Awarestart /wait %systemdrive%\Install\Adaware\aawsepersonal.exe /qn /norestartecho.echo Installing Spybot Search and Destroy v1.4start /wait %systemdrive%\Install\Spybot\spybotsd14.exe /VERYSILENT /NORESTART /SP-echo.echo Installing WinRAR ver. 330start /wait %systemdrive%\Install\WinRAR\wrar330.exe /secho.echo Installing Raxco Perfect Disk 8start /wait %systemdrive%\Install\Pd\PerfectDisk.msi /qn /norestartecho.echo Installing Autoit ver. 3.2.2.0start /wait %systemdrive%\Install\Autoit\autoit-v3.2.2.0-setup.exe /Secho.echo Installing Jetico BCWipe ver 3.0start /wait %systemdrive%\Install\BCWipe\Setup.exe -S -Aecho.echo Installing NOD32 Antivirusstart /wait %systemdrive%\Install\NOD32\setup.exe /silentmodeecho.echo Installing NOD32 Registry Informationregedit /S %systemdrive%\Install\Reg\Esetcommon.regecho Installing Kremlin ver 2.21start /wait %systemdrive%\Install\Krem\Kremlin.exenircmd.exe killprocess "%systemdrive%\Program Files\Mach5 Software\Kremlin\Kremlin Sentry.exe"del /Q "%systemdrive%\Documents and Settings\Owner\Start Menu\Programs\Startup\Kremlin Sentry.LNK"del /Q "%systemdrive%\Documents and Settings\Owner\Start Menu\Programs\Startup\Kremlin Sentry.LNK.disabled"regedit /S %systemdrive%\Install\Reg\krem.regnircmd.exe regdelkey "HKEY_CURRENT_USER\Software\Mach5 Software\Kremlin\Sentry"del /Q "%systemdrive%\Program Files\Mach5 Software\Kremlin\Kremlin Sentry.exe"del /Q "%systemdrive%\Documents and Settings\Owner\Desktop\Kremlin Encrypt.lnk"del /Q "%systemdrive%\Documents and Settings\Owner\Desktop\Kremlin Secure Recycle Bin.lnk"echo.echo Installing Custom Registry Settingsregedit /S %systemdrive%\Install\Reg\hkcuexplr.regregedit /S %systemdrive%\Install\Reg\nvidcpl.regregedit /S %systemdrive%\Install\Reg\mouse.regregedit /S %systemdrive%\Install\Reg\memman.regregedit /S %systemdrive%\Install\Reg\bags.regregedit /S %systemdrive%\Install\Reg\cmdpr.reg echo.echo Installing Shortcutsnircmd.exe shortcut "%systemdrive%\windows\notepad.exe" "~$folder.desktop$" "Notepad"nircmd.exe shortcut "%systemdrive%\Program Files\Outlook Express\msimn.exe" "~$folder.desktop$" "Outlook"nircmd.exe shortcut "%systemdrive%\WINDOWS\system32\regedt32.exe" "~$folder.desktop$" "Regedit"nircmd.exe shortcut "%systemdrive%\Program Files\Jetico\BCWipe\BCWipeTM.exe" "~$folder.desktop$" "BCWipe" echo. echo Finished! Please update your anti-virus and malware programs upon reboot!echo.echo Windows XP will reboot in 30 seconds...echo. start %systemdrive%\Install\Reboot\secretsauce -r -t 30 -c "System Rebooting..." Link to comment Share on other sites More sharing options...
cumminbk Posted April 19, 2007 Share Posted April 19, 2007 I run two batchfiles 1 at T-13 and the other from the STARTUP folder.Nice batch tallspruceHotfixInstall.cmdCleanup.cmd Link to comment Share on other sites More sharing options...
phkninja Posted April 19, 2007 Share Posted April 19, 2007 (edited) I run onc cmd file for RunOnce that calls others during the setup.The runonce iscmdow @ /HID@echo offfor %%i in (c 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:\phkcd.txt set CDROM=%%i:SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Applications" /fREG ADD %KEY%\a2 /VE /D "Finishing Setup ..." /fREG ADD %KEY%\a2 /V 1 /D "prepare.cmd" /fREG ADD %KEY%\a2 /V 2 /D "regedit /s %CDROM%\$OEM$\tweaks.reg" /fREG ADD %KEY%\a2 /V 3 /D "themes.cmd" /fREG ADD %KEY%\a2 /V 4 /D "shortcuts.cmd" /fREM Tweaks go here.REM Disbale Zip Foldersregsvr32 /u /s zipfldr.dll rem Software goes hereREG ADD %KEY%\a3 /VE /D "AVG Anti Virus Free" /fREG ADD %KEY%\a3 /V 1 /D "%CDROM%\software\avg.exe /HIDE /DONT_START_APPS /NO_WELCOME /NO_AVGW_STARTUP REG ADD %KEY%\z099 /VE /D "Cleaning Up and Rebooting" /fREG ADD %KEY%\z099 /V 1 /D "cleanup.cmd" /fshutdown.exe -r -f -t 60 -c "Windows XP will now restart in 1 minutes.\n\n This will allow for all software to install..."the other files areprepare.cmdthemes.cmdshortcuts.cmdcleanup.cmd Edited April 19, 2007 by phkninja Link to comment Share on other sites More sharing options...
tallspruce Posted April 19, 2007 Author Share Posted April 19, 2007 Oops! I think your "cleanup.cmd" just ran on my PC cumminbk. Gotta be more careful what I click on.Just curious, but what exactly do you "clean" when you run a clean-up batch? I thought windows setup automatically removes all the temps and garbage when its done. Link to comment Share on other sites More sharing options...
phkninja Posted April 19, 2007 Share Posted April 19, 2007 (edited) it removes any install directories i create and also removes the prepare, themes and shortcuts command files from system32. maybe i should also add a runonce command to remove the cleanup file aftre the next boot The install directory is not used any more because I run the setups from CD, but the cleanup hasnt been change since my first build *lol* Edited April 19, 2007 by phkninja Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now