Run program in WinXP home during boot

  • Thread starter Thread starter eljainc
  • Start date Start date
E

eljainc

Hello,

I have a custom written program which displays a license agreement. I
would like to run this program during the WinXP boot process as early
as possible. It is not currently a service, but I could make it one if
need be. I have tried to put the exe in the
HKLM\Software\Microsoft\Windows\CurrentVersion\Run section, but the
program doesn't run until the user has logged in and WinXP is at the
desktop.

Any ideas?

Thanks
Mike McWhinney
 
Hello,

I have a custom written program which displays a license agreement. I
would like to run this program during the WinXP boot process as early
as possible. It is not currently a service, but I could make it one if
need be. I have tried to put the exe in the
HKLM\Software\Microsoft\Windows\CurrentVersion\Run section, but the
program doesn't run until the user has logged in and WinXP is at the
desktop.

Any ideas?

Thanks
Mike McWhinney

How about editing the values in the following registry key:

HKLM\Software\Microsoft\WindowsNT\CurrentVersion\WinLogon

There are values for LegalNoticeCaption and LegalNoticeText. The text
assigned to these two keys will display in a window after the user
presses CTRL-ALT-DEL, and require them to click OK to continue.
 
eljainc wrote :
I have a custom written program which displays a license agreement. I
would like to run this program during the WinXP boot process as early
as possible. It is not currently a service, but I could make it one if
need be. I have tried to put the exe in the
HKLM\Software\Microsoft\Windows\CurrentVersion\Run section, but the
program doesn't run until the user has logged in and WinXP is at the
desktop.

Windows XP supports (at least) four scripts: Startup, Shutdown, Logon
and Logoff.
The Startup-script runs before displaying the Ctrl-Alt-Del box.
These scripts can be defined via Active Directory or locally by running
gpedit.msc (which unfortunately does not exist in XP Home).

The gpedit.msc tool mostly amend changes to the registry, so a
startup-script for XP Home can be defined using a registry-file.
The registry entries below (between the dashed lines) defines a
startup-script named c:\temp\startup.cmd:

---------------------------------------------
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System\Scripts\Startup\0\0]
"Script"="c:\\temp\\startup.cmd"
"Parameters"=""
"ExecTime"=hex(b):00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
 
Back
Top