mtbbac Posted March 22, 2011 Share Posted March 22, 2011 for %%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:\sources\install.wim set CDROM=%%i:Start /wait "%cdrom%\LOGS\ADOBE\adobe.exe /sAll"Start /wait "%cdrom%\LOGS\QT\AppleApplicationSupport.msi /qn"Start /wait "%cdrom%\LOGS\QT\AppleSoftwareUpdate.msi /qn"Start /wait "%cdrom%\LOGS\QT\QuickTime.msi /qn"Start /wait "%cdrom%\LOGS\SATSUKI\satsuki.exe /S"Start /wait "%cdrom%\LOGS\VLC\vlc.exe /S"Start /wait "%cdrom%\LOGS\SUPERCOPIER\SUPERCOPIER2.exe /S"Start /wait "%cdrom%\LOGS\WINRAR\WINRAR.exe /s"Start /wait "%cdrom%\LOGS\SKYPE\skype.exe"Start /wait "%cdrom%\LOGS\FLASH\flashi.exe -install"Start /wait "%cdrom%\LOGS\FLASH\flashf.exe -install"Start /wait "%cdrom%\LOGS\NERO\nero.exe /SILENT /NORESTART /SERIAL="****-****-****-****-****-****-****" /USER="ALPHA" /COMPANY="ALPHA" /TASKS="desktopicon,imagefile_assoc" /TYPE="Full""Start /wait "%cdrom%\LOGS\AVIRA10\avira.exe -y"del %0Hi, I try an installation with windows 7 SP1 ans setupcomplete.cmd but noithing happen, when windows calculate VGA performance in first boot I have a cmd windows but nothing installed, I must close this windows after some hours and reboot to continue installation.any erroir in my file ??there was any other method to make silent install from DVD ??thanks !! Link to comment Share on other sites More sharing options...
Yzöwl Posted March 22, 2011 Share Posted March 22, 2011 The use of non-required double-quotes around your paths and switches is the problem.Try something like this:@echo offsetlocal enableextensions disabledelayedexpansion(set CDROM=)for %%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:\sources\install.wim set "CDROM=%%i:")if not defined CDROM goto :eofstart /wait %cdrom%\LOGS\ADOBE\adobe.exe /sAllstart /wait %cdrom%\LOGS\QT\AppleApplicationSupport.msi /qnstart /wait %cdrom%\LOGS\QT\AppleSoftwareUpdate.msi /qnstart /wait %cdrom%\LOGS\QT\QuickTime.msi /qnstart /wait %cdrom%\LOGS\SATSUKI\satsuki.exe /Sstart /wait %cdrom%\LOGS\VLC\vlc.exe /Sstart /wait %cdrom%\LOGS\SUPERCOPIER\SUPERCOPIER2.exe /Sstart /wait %cdrom%\LOGS\WINRAR\WINRAR.exe /sstart /wait %cdrom%\LOGS\SKYPE\skype.exestart /wait %cdrom%\LOGS\FLASH\flashi.exe -installstart /wait %cdrom%\LOGS\FLASH\flashf.exe -installstart "" /wait %cdrom%\LOGS\NERO\nero.exe /SILENT /NORESTART^ /SERIAL="****-****-****-****-****-****-****" /USER="ALPHA" /COMPANY="ALPHA"^ /TASKS="desktopicon,imagefile_assoc" /TYPE="Full"start /wait %cdrom%\LOGS\AVIRA10\avira.exe -ydel %0 Link to comment Share on other sites More sharing options...
mtbbac Posted March 22, 2011 Author Share Posted March 22, 2011 I must delete or correct silent switch ?? Link to comment Share on other sites More sharing options...
Yzöwl Posted March 22, 2011 Share Posted March 22, 2011 I'm not at all interested in any of the installed software you are using or their switches, I have simply re-written your script to correct its syntax problems.Just replace your file with mine, try it, then report back! Link to comment Share on other sites More sharing options...
coprua Posted April 14, 2011 Share Posted April 14, 2011 I'm not at all interested in any of the installed software you are using or their switches, I have simply re-written your script to correct its syntax problems.Just replace your file with mine, try it, then report back!@YzöwlExcuse me for my curiosity. I know you're not interested in this kind of thing. But just a question with you.What can I do if I want to create a setupcomplete.cmd to install UltraISO.exe and UltraISO.reg if you do not mind.example:@echo offsetlocal enableextensions disabledelayedexpansion(set CDROM=)for %%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:\sources\install.wim set "CDROM=%%i:")if not defined CDROM goto :eofstart /wait %cdrom%\LOGS\UltraISO\UltraISO.exe /S??????del %0Thanks a lot in advance. Link to comment Share on other sites More sharing options...
wadnoune Posted September 26, 2011 Share Posted September 26, 2011 helloI'm in the begining when can I do this code Link to comment Share on other sites More sharing options...
richard Posted October 10, 2011 Share Posted October 10, 2011 I'm not at all interested in any of the installed software you are using or their switches, I have simply re-written your script to correct its syntax problems.Just replace your file with mine, try it, then report back!any feedback? i met similar question, the commands in setupcomplete.cmd did not run. even a simple command mkdir c:\11 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