PDA

View Full Version : Reboot system on Serial Number Verification Failure


Litschel
01-08-2004, 03:49 PM
Certain portions of our install program do not require special access where as some parts do. When a user tries to run one of the special areas and doesn't have a proper serial number, I need the system to reboot.

If the correct serial number is entered, a reboot is not necessary.

However it will automatically abort if it is invalid and leaves the machine in an unwanted state (administrator). Does anyone know how I can force a reboot.

JimS
01-17-2004, 07:41 AM
Check out the Batch files here:
http://www.robvanderwoude.com/rundll.html

bab
01-20-2004, 10:57 AM
Although I haven't tried to force a reboot when aborting, I do have the user reboot (Yuke I hate it but it is necessary) after completing an install by setting the %DoReboot% variable to true. I do use a dialog to allow them to delay the reboot until later with a stern waring that this must be done as some point...

But I would image you could do something similar to accomplish what you need.

Just a thought,
Barbara

Worm
01-20-2004, 11:21 AM
This is a link to a thread for AMS, but I wrote a DLL that will reboot the computer for you. Its simple enough to.

Reboot (http://www.indigorose.com/forums/showthread.php?s=&threadid=5483&highlight=reboot)