Jump to content

cleanup.cmd don't run at right time

Recommended Posts

i use post-install wizard 1.2: http://www.msfn.org/board/index.php?showtopic=11491









i've also a folder called INSTALL in my cd root! and another INSTALL folder in $OEM$!!:




| |

| |_install








now,after the XP installation and all hotfix are installed,the system reboot and run GUIRUNONCE!

bootlogo.cmd work propertly

prepare.cmd work propertly

installa.cmd work propertly

then....wpi.cmd runs!!!!

my wpi.cmd:

start /wait %systemdrive%\install\WPI\WPI.HTA

my cleanup.cmd:

shutdown.exe -r -f -t 60 -c "Installazione completata. Windows XP si riavviera' tra 1 minuto..."REGEDIT /S %systemdrive%\install\wfpriabilita.regRD /S /Q %systemdrive%\install\EXIT

when run WPI.CMD,the windows where i must chose the programs i want to install appear:


but at the same time CLEANUP.CMD runs!!!! and all the installations i have chose before.....stop!!! :)

what's the problem?

sorry for my english!

Link to comment
Share on other sites

You can use server 2003's reskit tool sleep.exe to make a batch file pause for a certain amount of time to make sure it runs last. I use runonceex and it always runs my cleanup file last.


Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.

  • Create New...