MADIKKE Posted November 1, 2005 Share Posted November 1, 2005 Greetings again,I'm having a little bit of trouble with some unattended install of program'sAt the bottom of this post is a copy of my batch_file_cmd.bat witch rests in D:\AIO-DVD\Setup\XP\Professional\$OEM$\$1\InstallThe problem is that all program's (like msn etc.) tend to want to install from C:/install/msn......Witch is weird because I use the %systemdrive command as you can see below,I'm new to this so I aplogize if it's a stupid question..(Some program's use wrong switches , that was merely to test what it does)The batch_file_cmd.bat : CLS@echo offTITLE Windows XP SP2 - Unattended InstallationECHO.ECHO Over the next few minutes you will see automated installations ECHO of various sofware applications, windows updates, and registryECHO tweaks being implemented. The computer will restart automaticallyECHO once the whole process has finished!ECHO.ECHO Removing Wallpapers and Screensavers...DEL "%systemroot%\*.bmp"DEL "%systemroot%\Web\Wallpaper\*.jpg"DEL "%systemroot%\system32\dllcache\*.scr"DEL "%systemroot%\system32\*.scr"ECHO.ECHO Removing useless shortcuts...DEL "%systemdrive%\Documents and Settings\All Users\Start Menu\Windows Update.lnk"DEL "%systemdrive%\Documents and Settings\All Users\Start Menu\Set Program Access and Defaults.lnk"DEL "%systemdrive%\Documents and Settings\All Users\Start Menu\Windows Catalog.lnk"ECHO.ECHO Installing MSN Messenger 7.5 BetaECHO Please wait...start /wait %systemdrive%\install\MSN\Msnmessenger.exe /qnECHO.ECHO Applying Registry Tweaks...REGEDIT /S %systemdrive%\install\RegTweaks.regECHO.ECHO Deleting ASP.NET User Account created by .NET Framework 1.1...net user aspnet /deleteECHO.ECHO Starting installation of ApplicationsECHO.ECHO Installing Nero Burning ROM v6ECHO Please wait...start /wait %systemdrive%\install\Nero 6\setupx.exe /silent /norebootECHO.ECHO Installing WinrarECHO Please wait...start /wait %systemdrive%\install\Winrar\wrar342.exeECHO.ECHO Installing JavaECHO Please wait...start /wait %systemdrive%\install\Java\java.exeECHO.ECHO Installing Office 2003 ProffesionalECHO Please wait...start /wait %systemdrive%\install\Office2003\setup.exe TRANSFORMS=Unattended.mst /qb-ECHO.ECHO Installing AdobeECHO Please wait...start /wait %systemdrive%\Adobe\adobefullNLD.exeECHO.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 Deleting Temp Installation Files...RD /S /Q %systemdrive%\DriversRD /S /Q %systemdrive%\installEXIT Link to comment Share on other sites More sharing options...
gosherm Posted November 1, 2005 Share Posted November 1, 2005 Greetings again,I'm having a little bit of trouble with some unattended install of program'sAt the bottom of this post is a copy of my batch_file_cmd.bat witch rests in D:\AIO-DVD\Setup\XP\Professional\$OEM$\$1\InstallThe problem is that all program's (like msn etc.) tend to want to install from C:/install/msn......Witch is weird because I use the %systemdrive command as you can see below,I'm new to this so I aplogize if it's a stupid question..Maybe it's just too early in the morning for me, but I don't understand the question. If you are burning everything within the Professional\ subfolder to your DVD, then the contents of the $OEM$\$1\Install folder will be copied to %systemdrive%\Install (which is typically C: and therefore, C:\Install) during the DOS (bluescreen) portion of the install. Is your boot drive something other than C:?Are you getting errors (such as file not found)? Link to comment Share on other sites More sharing options...
cluberti Posted November 1, 2005 Share Posted November 1, 2005 Second that - %systemdrive% IS the C: drive, and your $1\Install will be copied to %systemdrive%\install, hence C:\Install. Not entirely sure what the problem is here - things are working as intended. Perhaps you need to modify your $1 folder structure? Link to comment Share on other sites More sharing options...
MADIKKE Posted November 2, 2005 Author Share Posted November 2, 2005 Bwoah ! never mind this !! Made some typo's(%systemdrive\adobe instead of \installs\adobe ......)Bit too fast with making this post... Link to comment Share on other sites More sharing options...
gosherm Posted November 2, 2005 Share Posted November 2, 2005 (edited) Bwoah ! never mind this !! Made some typo'sI think that we've all been there and done that. I spent about five hours debugging my unattended script this weekend because of sill typos SET x=yNOTSET x = yANDIf a Then ( echo b [c]) Else ( echo d)NOT If a Then ( echo b (c)) Else ( echo d)Stupid nested parens, that one took the longest. Edited November 2, 2005 by gosherm 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