Page 1 of 1 1
Topic Options
#3498 - 2000-07-13 03:47 PM reboot after installing software
Anonymous
Unregistered


Hello all,

I want a PC to reboot after installing software i'm using the script below, there is only one problem the PC reboots if the installation is running (reboots at 50%).
Could any one tell me what i should add to the script?

IF INGROUP("CBT")
IF EXIST ("c:\cbtlib")
goto "box"
ELSE
SHELL"\\ntnlp\distributie$\cbt\cbtwindows.exe"
Shutdown ("","PC will reboot",5,1,1)
endif


Top
#3499 - 2000-07-13 05:25 PM Re: reboot after installing software
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
Create an install package with IExpress, it will let you package all the files needed together, and lets you run and Install Command and Post Install Command.

Place the kix reboot script as the post install command.

Bryce

PS. IExpress is a IE5 resource kit util.

Top
#3500 - 2000-07-13 06:10 PM Re: reboot after installing software
celusil Offline
Fresh Scripter

Registered: 2000-07-13
Posts: 9
Loc: Chicago, IL
I have used the code below in the past successfully. It pokes a windows reboot command into the runonce registry The reboot happens after logon has completed successfully

Hope this helps

$reboot="%windir%\RUNDLL32.exe user.exe,ExitWindows"


WRITEVALUE("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce","reboot",$reboot,"REG_SZ")

Celusil
Aka Randy Burgess

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 731 anonymous users online.
Newest Members
JimDunn, fgarcia, Viginette, ManuvdWielNL, Sir_Barrington
17890 Registered Users

Generated in 0.048 seconds in which 0.023 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org