Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Removing $oem$ folder after install is complete

Featured Replies

i have created a Unattended Windows XP Pro installation.

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:

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

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? :)

I had a simpilar problem. Try moving the shutdown.exe command to the top of the file. Maybe try to add a sleep statment at the end like.

ECHO.

shutdown.exe -r -f -t 60 -c "Windows XP will now restart in 1 minute"

ECHO Removing Temp install files

rmdir /s/q %systemdrive%\install

rmdir /s/q %systemdrive%\Drivers

ECHO.

ECHO Restarting the PC in 1 minute...

sleep -t 300

EXIT

It fixed my cleanup script. Not sure why it actually works, must be something with loading windows before the dir are deleted.

If the batch file you are using to cleanup is in the install directory, you will need to delete that last, otherwise your batch is being deleted before it finishes.

The last lines of your batch should look something like this:

shutdown.exe -r -f -t 60 -c "Windows XP will now restart in 1 minute"
ECHO Removing Temp install files
rmdir /s /q %systemdrive%\Drivers\
rmdir /s /q %systemdrive%\Install\

:P yup i made that mistake before aswell on my first go with my unattended xp cleanup.cmd.

here is my cmd so you have an example to follow

cmdow @ /HID
shutdown.exe -r -f -t 20 -c "Windows XP will now restart in 20 secs..."

del "%allusersprofile%\start menu\WinZip.lnk"
del "%allusersprofile%\desktop\WinZip.lnk"
del "%allusersprofile%\start menu\Programs\WinZip\Uninstall WinZip.lnk"
del "%allusersprofile%\start menu\Programs\WinZip\Help Manual.lnk"
del "%allusersprofile%\start menu\Programs\WinZip\ReadMe.txt.lnk"
del "%allusersprofile%\start menu\Programs\WinZip\What's New.lnk"
del "%allusersprofile%\desktop\Adobe Reader 6.0.lnk"
del "%allusersprofile%\desktop\Nero StartSmart.lnk"

RD /S /Q %systemdrive%\drivers\
RD /S /Q %systemdrive%\install\
RD /S /Q %systemdrive%\install\Cache\

attrib -R "%programfiles%\winzip\*.*" /S /D
REG ADD HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /V ShowSuperHidden /t REG_DWORD /D "1" /f
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Run /v ChikkaIM /t REG_SZ /f
reg add HKCU\Software\GameHouse\TextTwist /v FullScreen /t REG_DWORD /d 0 /f

EXIT

i hope this can me some help to u

:)

  • Author

Thank you very much for the answers

i used jrzycrim example code, cause my script is in the install directory...

i works perfectly now :D:thumbup

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.