i have used the $oem$ structure to install programs like Winrar and Adobe Reader.
but when the installation is complete, the directories in which the executables lie, isn't removed.
i have tried making a batch script that removes the folders and reboot the PC.
it looks like this:
Quote
ECHO.
ECHO Removing Temp install files
rmdir /s/q %systemdrive%\install
rmdir /s/q %systemdrive%\Drivers
ECHO.
ECHO Restarting the PC in 1 minute...
shutdown.exe -r -f -t 60 -c "Windows XP will now restart in 1 minute"
EXIT
ECHO Removing Temp install files
rmdir /s/q %systemdrive%\install
rmdir /s/q %systemdrive%\Drivers
ECHO.
ECHO Restarting the PC in 1 minute...
shutdown.exe -r -f -t 60 -c "Windows XP will now restart in 1 minute"
EXIT
this script is run from winnt.sif [GuiRunOnce] section
but it only removes the install directory and does nothing more.
but if i take the script and run it after the installation is complete it works perfectly.
can someone give some hints/help?



Help
Back to top









