MSFN Forum: rebooting in runonce.exe causing error - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

rebooting in runonce.exe causing error possibly time to reboot is too short? Rate Topic: -----

#1 User is offline   1boredguy 

  • Member
  • PipPip
  • Group: Members
  • Posts: 124
  • Joined: 28-August 04

  Posted 28 June 2005 - 10:46 PM

after i put rebooting in my RunOnceEx.cmd, an error screen pops up for less than a second, but rebooting does commence. is there something wrong here with the shutdown.exe switches?? maybe the reboot time is too short? (if so, how many minimum seconds are recommended)

any feedback is appreciated! thanks


here's my RunOnceEx.cmd

cmdow @ /HID
@echo off
FOR %%i IN (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:\CD.txt SET CDROM=%%i:

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Final Modifications" /f

REG ADD %KEY%\005 /VE /D "Installing Microsoft Office 2003" /f
REG ADD %KEY%\005 /V 1 /D "%CDROM%\Software\Office2003\Office2003.exe" /f

REG ADD %KEY%\010 /VE /D "Importing Registry Tweaks" /f
REG ADD %KEY%\010 /V 1 /D "REGEDIT /S %CDROM%\Software\regtweaks.reg" /f

REG ADD %KEY%\015 /VE /D "Reboot Computer" /f
REG ADD %KEY%\015 /V 1 /D "shutdown.exe -r -f -t 1" /f

EXIT

This post has been edited by 1boredguy: 29 June 2005 - 01:22 AM



#2 User is offline   BrandonS_Mil 

  • "You were the chosen one...."
  • PipPip
  • Group: Members
  • Posts: 197
  • Joined: 20-October 04

Posted 28 June 2005 - 10:57 PM

Can you show a screen shot of the error.... you know from VM Ware or VPC

#3 User is offline   Alanoll 

  • CODE tags people, CODE tags!
  • Group: Patrons
  • Posts: 5,496
  • Joined: 25-September 03

Posted 28 June 2005 - 11:32 PM

i'm betting the screen you're talking about, is perhaps the screen telling you the system is shutting down. You do only have a 1 second delay.

I recommend a 60+ delay, so that the desktop fully loads and doesn't cause potential problems later on.

#4 User is offline   1boredguy 

  • Member
  • PipPip
  • Group: Members
  • Posts: 124
  • Joined: 28-August 04

Posted 29 June 2005 - 01:19 AM

here is the error screen. how do i get rid of it?

i did change the delay to 60 seconds. but the error screen still comes up. notice that the 60 seconds is in the error screen. maybe if i set no delay??? i just want the system to restart after completion of RunOnceEx.cmd

cmdow @ /HID
@echo off
FOR %%i IN (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:\CD.txt SET CDROM=%%i:

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Final Modifications" /f

REG ADD %KEY%\005 /VE /D "Installing Microsoft Office 2003" /f
REG ADD %KEY%\005 /V 1 /D "%CDROM%\Software\Office2003\Office2003.exe" /f

REG ADD %KEY%\010 /VE /D "Importing Registry Tweaks" /f
REG ADD %KEY%\010 /V 1 /D "REGEDIT /S %CDROM%\Software\regtweaks.reg" /f

REG ADD %KEY%\015 /VE /D "Finalise & Reboot Computer" /f
REG ADD %KEY%\015 /V 1 /D "shutdown.exe -r -f -t 60" /f

EXIT

Attached File(s)

  • Attached File  here.jpg (40.87K)
    Number of downloads: 0

This post has been edited by 1boredguy: 29 June 2005 - 01:21 AM


#5 User is offline   1boredguy 

  • Member
  • PipPip
  • Group: Members
  • Posts: 124
  • Joined: 28-August 04

Posted 29 June 2005 - 02:58 AM

I just tried it without a delay.
REG ADD %KEY%\015 /V 1 /D "shutdown.exe -r -f" /f


but it then gives a delay anyway of 30 seconds.

i just want the RunOnceEx.cmd to install the stuff, then restart... am i taking a wrong approach? is there a better way? :huh:

#6 User is offline   MHz 

  • SendToA3X v1.7
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,634
  • Joined: 02-August 04

Posted 29 June 2005 - 03:30 AM

That window is just a visable warning, that the system is shutting down. This is very normal. Logging into the desktop, the first time, is a important stage. I would recommend, as Alanoll has recommended, in using 60 seconds for shutdown, other wise your themes etc. will not be setup properly.

#7 User is offline   Achdine 

  • Junior
  • Pip
  • Group: Members
  • Posts: 97
  • Joined: 11-May 05

Posted 29 June 2005 - 07:00 AM

If it looks too much like an error to you, try adding a comment to it (shows up in the Message section of that window). Just add a -c switch, and the comment you want to show.

REG ADD %KEY%\015 /VE /D "Finalise & Reboot Computer" /f
REG ADD %KEY%\015 /V 1 /D "shutdown.exe -r -f -t 60 -c \"Finalizing installation process.  Please wait while your system reboots.\"" /f


(On a side note, at first I thought you misspelled "Finalise," but Dictionary.com actually lists both "Finalize" and "Finalise." I think it's more common to see it with a z, however.)

#8 User is offline   1boredguy 

  • Member
  • PipPip
  • Group: Members
  • Posts: 124
  • Joined: 28-August 04

Posted 29 June 2005 - 08:39 PM

thanks for the great responses guy! and helping me understand this process. i have inserted a new comment, so it looks a little better. maybe later i'll look around for some program like xplode (a free one hopefully).

thanks! :thumbup

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy