chrisbraines Posted December 9, 2009 Share Posted December 9, 2009 I am relatively new to these Forums an so I do apologize if this question has been asked before.I am using setupcomplete.cmd to install a number of Programs at the end of my Vista Home BasicSilent Install.The Installation proceeds fine and all the Programs install themselves without an issues.Yet inspiteof this I cannot get the Computer to reboot after the Programs have been installed.I have been using a small command file to perform the reboot but unfortunately I cannot get itto work.Here is my setupcomplete.cmd file@echo offTITLE Windows Vista Home Basic SP2 32K Edition - RunOnceEx Method of Silent InstallationECHO.ECHO Over the next few minutes you will see automated installations .ECHO Of various software applications for windows Vista Home Basic 32K Edition together.ECHO With Hotfixes no Drivers have been added.Some registry tweaks have been added.ECHO The computer will restart automatically once the process has finished!REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Applications" /fREG ADD %KEY%\005 /VE /D "Installing Acronis Disk Director 10" /fREG ADD %KEY%\005 /V 1 /D "%systemdrive%\Install\AcronisDiskDirector10\AcronisDiskDirector.msi PIDKEY=xxxxx-xxxxx-xxxxx-xxxxx-xxxxx /Qn /norestart" /fREG ADD %KEY%\010 /VE /D "Installing Acronis TrueImage 11" /fREG ADD %KEY%\010 /V 1 /D "%systemdrive%\Install\AcronisTrueImage11\AcronisTrueImage.msi PIDKEY=xxxxx-xxxxx-xxxxx-xxxxx-xxxxx /Qn /norestart" /f REG ADD %KEY%\015 /VE /D "Installing Adobe Flash Player 10 ActiveX" /fREG ADD %KEY%\015 /V 1 /D "%systemdrive%\Install\AdobeFlashPlayer10_ActiveX\nstall_flash_player_10_active_x.exe /s" /fREG ADD %KEY%\020 /VE /D "Installing Adobe Flash Player 10" /fREG ADD %KEY%\020 /V 1 /D "%systemdrive%\Install\AdobeFlashPlayer10\install_flash_player_ax.exe /s" /fREG ADD %KEY%\025 /VE /D "Installing Adobe Reader 9.1" /fREG ADD %KEY%\025 /V 1 /D "%systemdrive%\Install\AdobeReader9.0\AdbeRdr910_en_US_Std.exe /sAll /rs" /fREG ADD %KEY%\030 /VE /D "Installing Adobe Shockwave Player 11.5" /fREG ADD %KEY%\030 /V 1 /D "%systemdrive%\Install\AdobeShockwavePlayer11.5\sw_lic_full_installer.msi /qn /norestart" /fREG ADD %KEY%\035 /VE /D "Installing Klcodec 4.9" /fREG ADD %KEY%\035 /V 1 /D "%systemdrive%\Install\klcodec4.9\klcodec495f.exe /verysilent" /fREG ADD %KEY%\040 /VE /D "Installing Nero 7.5.9 Premium" /fREG ADD %KEY%\040 /V 1 /D "%systemdrive%\Install\Nero7.5\Nero7.5.9.exe /quiet /norestart" /fREG ADD %KEY%\045 /VE /D "Installing OO Defrag Professional 10.0" /fREG ADD %KEY%\045 /V 1 /D "%systemdrive%\Install\OODefragPro10\O&O Defrag Professional Edition.msi /quiet" /fREG ADD %KEY%\050 /VE /D "Installing Picasa 3.1" /fREG ADD %KEY%\050 /V 1 /D "%systemdrive%\Install\Picasa3\picasa3-setup.exe /S /L" /fREG ADD %KEY%\055 /VE /D "Installing PowerDVD 7.0" /fREG ADD %KEY%\055 /V 1 /D "%systemdrive%\Install\Powerdvd\PowerDVD7.0.exe" /fREG ADD %KEY%\060 /VE /D "Installing Registry Tweaks" /fREG ADD %KEY%\060 /V 1 /D "REGEDIT /S %systemroot%\Setup\Scripts\tweaks.reg" /fREG ADD %KEY%\065 /VE /D "Installing TuneUp Utilities 2008" /fREG ADD %KEY%\065 /V 1 /D "%systemdrive%\Install\TuneUpUtilities2008\TU2008TrialEN.exe /qn /norestart" /fREG ADD %KEY%\070 /VE /D "Installing WhiteCap 5.2" /fREG ADD %KEY%\070 /V 1 /D "%systemdrive%\Install\WhiteCap5.2\WhiteCap_520.exe /S" /f REG ADD %KEY%\075 /VE /D "Installing WinRar Crystal" /fREG ADD %KEY%\075 /V 1 /D "%systemdrive%\Install\WinRarCrystal\WinRAR_Crystal.exe /s" /f REG ADD %KEY%\085 /VE /D "Rebooting The Computer" /fREG ADD %KEY%\085 /V 1 /D "%systemdrive%\Install\Tools\Reboot.cmd"/f EXITI am calling the Reboot in the last line of this file.In my tools folder which I have in$OEM$\Install\Tools I am using Reboot.cmd to perform the reboot.@echo offECHO.ECHO.ECHO Rebooting Computer ECHO Please wait...start /wait %systemdrive%\Install\Tools\shutdown.exe -r -t 60 -c "Windows Vista will reboot in 60 secondes"ECHO.DoneEXITIf anyone could advise me where I am going wrong I would be most greatfull.I have also tried this line at the end of setupcomplete.cmdshutdown.exe -r -t 60 -c "Windows Vista will reboot in 60 secondes" but this only ends up bt corrupting the Task and Side Bars in Vista as well as not perfromingthe Reboot.In addition to this I have also experimented with psshutdown.exe by placing it in myTools Folder but psshutdown dose net appearer to work in Vista. Link to comment Share on other sites More sharing options...
cluberti Posted December 11, 2009 Share Posted December 11, 2009 Note that shutdown.exe is already a part of the OS, and you may be using an incompatible version (since it's not the one in system32, I'm assuming it's a tool you've gotten elsewhere, like a reskit). Consider calling the one in %windir%\system32 instead. 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