Page 1 of 1 1
Topic Options
#52953 - 2000-12-29 09:42 PM Message Box won't run after boot on Win9x
Anonymous
Unregistered


I have been running KixTart for a few months in a mixed WinNT, Win2K, Win95 and Win98 environment with no problems.

I was just asked to add a Messagebox with a security advisory which would continue the script if the user accepted the policy or would reboot the system if the user selected "NO". The messagebox is working fine, except after a reboot on some Win98 machines. Upon the first loggon after a reboot, the script will error at the $Selection = MessageBox command and will exit.

If I do a logoff and then logon again, it will run as expected. Also, I am not seeing this on any Win95, WinNT, or Win2K machines.

Any help would be greatly appreciated.

Top
#52954 - 2000-12-30 03:49 AM Re: Message Box won't run after boot on Win9x
Paul_Berquam Offline
Hey THIS is FUN

Registered: 2000-08-02
Posts: 310
Loc: Sacramento, CA USA
Can you post some of the code for us to check out/proof?

------------------

"He was a good little monkey and always very curious..."

_________________________
He was a good little monkey and always very curious...

Top
#52955 - 2001-01-02 02:59 PM Re: Message Box won't run after boot on Win9x
Anonymous
Unregistered


SETCONSOLE("MINIMIZE")

$Selection = MessageBox("Security Advisory Message inserted HERE", "ACCESS TO AND USE OF THIS SYSTEM IS RESTRICTED!!", 4148)

If $Selection = 6 goto "continue"
endif

;@inwin returns 1 for Windows NT; and 2 for Windows 9x
If @inwin = 1
Shutdown ("", "System is being rebooted due to your failure to accept the access policy.", 10, 0, 1)
else
RUN "c:\windows\RUNDLL32.EXE user.exe,ExitWindows"
exit
endif

:continue
SETCONSOLE("MAXIMIZE")
cls
?"Please wait while your logon script executes..."

Top
Page 1 of 1 1


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

Who's Online
0 registered and 837 anonymous users online.
Newest Members
ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder, M_Moore
17887 Registered Users

Generated in 0.052 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