xtentic Posted July 7, 2005 Share Posted July 7, 2005 Hi.I'm now having the installation of my dreams, for XP that is... but after the first time it runs on the ]GuiRunFirst[ i get errors from the batch file.It seems that i can't get files out of directories when there are spaces in the directory name.i've tried adding " for the names or on the whole line.. but it didn't work.example:@echo offTITLE Installing components of Windows XP Professional.echo.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 Windows Comspec settingsecho systemdrive: [%systemdrive%]echo systemroot: [%systemroot%]echo alluserprofile: [%allusersprofile%]echo.echo.echo Installing WinZip 9.0start /wait "%systemdrive%\Program Files\winzip\winzip32.exe" /noqp /autoinstallecho Installation complete!echo.echo Adding and removing registry items... please wait...regedit /s registerwinzip.regecho.echo Installing Total Commander 6.53start /wait "%systemdrive%\Install\Tools\TotalCommander6.53\Install.exe"echo.echo Adding registry for Total Commander 6.53copy "%systemdrive%\Install\Tools\TotalCommander6.53\Wincmd.key" "%systemdrive%\Program Files\totalcmd\"echo.echo Installing Daemon Tools 3.47start /wait "%systemdrive%\install\tools\dtools\daemon.msi" -qb REBOOT=ReallySuppressecho.echo Installing WinAMP 5.093...start /wait "%systemdrive%\install\music\winamp5093.msi" INI="%systemdrive%\install\music\winamp5093.ini" /qbecho.echo Removing Wallpapers and Screensavers...DEL "%systemroot%\*.bmp" >nulDEL "%systemroot%\Web\Wallpaper\*.jpg" >nulDEL "%systemroot%\system32\dllcache\*.scr" >nulDEL "%systemroot%\system32\*.scr" >nulecho Removing useless shortcuts...DEL "%systemdrive%\Documents and Settings\All Users\Start Menu\Windows Update.lnk" >nulDEL "%systemdrive%\Documents and Settings\All Users\Start Menu\Set Program Access and Defaults.lnk" >nulDEL "%systemdrive%\Documents and Settings\All Users\Start Menu\Windows Catalog.lnk" >nulecho Removing Winzip Profiles...del "%allusersprofile%\start menu\WinZip.lnk" >nuldel "%allusersprofile%\desktop\WinZip.lnk" >nuldel "%allusersprofile%\start menu\Programs\WinZip\Uninstall WinZip.lnk" >nuldel "%allusersprofile%\start menu\Programs\WinZip\Help Manual.lnk" >nuldel "%allusersprofile%\start menu\Programs\WinZip\ReadMe.txt.lnk" >nuldel "%allusersprofile%\start menu\Programs\WinZip\What's New.lnk" >nulecho.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%\installRD /S /Q %systemdrive%\driversEXITeven the Removing useless shortcuts parts cannot be found wich i find very weird. is there someone that can give me comments on this batchfile. Link to comment Share on other sites More sharing options...
xtentic Posted July 7, 2005 Author Share Posted July 7, 2005 Even winamp gives the 'installation' menu and not the 'silent installer' Link to comment Share on other sites More sharing options...
xtentic Posted July 8, 2005 Author Share Posted July 8, 2005 anyone? please. Link to comment Share on other sites More sharing options...
MHz Posted July 8, 2005 Share Posted July 8, 2005 The syntax for Start is different with XPSP2. Type Start /? at a prompt to see.Your usage is:Start /Wait "%SystemDrive%\....should be:Start /Wait "" "%SystemDrive%\.....The 1st use of "" is for the title of the cmd window. 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