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.

some random q's

Featured Replies

1) Every time i try to edit my winnt.sif, it says "what program would you like to use" - can i select always use notepad? or will that interfere with the functioning of the winnt.sif file during install?

2) I'm having a problem with my [GuiRunOnce]. I need two things to run, but i need the second to not run until the first finishes.

[GuiRunOnce]
   %systemdrive%\install\WPI20b\wpi.cmd
   %systemdrive%\install\cleanup.cmd

WPI is intalling tons of programs, and takes a while. ONCE THAT FINISHES, I want to run cleanup (delete the temp install files - some of which are used for WPI).

How do I do this correctly? Now the code deletes the files just as WPI starts...


co to properties of your winnt.sif and and look for chance somewere under the name of the file click on it and select notepad.

and your second problem:

put the *.cmd togeter so you have not two files but one file this is the easy way that there is

  • Author

laurens -

1) i know that, but can i select "always use..." for notepad? or will that interfere in some way with the unattended cd?

2) i dont see how that will help - both files are running, its just that the second file runs too early. i need it to wait until WPI finishes...

1= yes there no chance for the file

2= can you post your cmd?

  • Author

WPI.CMD

@echo off
start /wait %systemdrive%\install\WPI20b\WPI.HTA

CLEANUP.CMD

CLS
@echo off
TITLE Windows XP SP2 - Cleanup

ECHO.

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


ECHO Deleting Default Users of XP (Remote User, Help User, .NET User)...
start /wait net user helpassistant /delete
start /wait net user SUPPORT_388945a0 /delete
start /wait net user ASPNET /delete

ECHO Deleting Installation Shortcuts...
//Standard Crap
RD /S /Q "%AllUsersProfile%\Start Menu\Programs\PrintMe Internet Printing"
RD /S /Q "%AllUsersProfile%\Start Menu\Programs\Java Web Start"
DEL "%AllUsersProfile%\Start Menu\Programs\Windows Movie Maker.lnk"
DEL "%UserProfile%\Start Menu\Programs\Remote Assistance.lnk"

//Adobe Reader 6.0
DEL "%AllUsersProfile%\Desktop\Adobe Reader 6.0.lnk"

//AIM
DEL "%AllUsersProfile%\Desktop\Free AOL & Unlimited Internet.lnk"
DEL "%AllUsersProfile%\Start Menu\Free AOL & Unlimited Internet.lnk"
DEL "%AllUsersProfile%\Desktop\AOL Instant Messenger.lnk"
DEL "%UserProfile%\Application Data\Microsoft\Internet Explorer\Quick Launch\AOL Instant Messenger.lnk"

//Daemon Tools
MOVE "%AllUsersProfile%\Desktop\DAEMON Tools.lnk" "%UserProfile%\Start Menu\"

//TuneUp 2004
RD /S /Q "%UserProfile%\Start Menu\Programs\TuneUp Utilities 2004"
DEL "%UserProfile%\Desktop\1-Click Maintenance.lnk"

//Winamp
DEL "%UserProfile%\Application Data\Microsoft\Internet Explorer\Quick Launch\Winamp.lnk"
DEL "%UserProfile%\Desktop\Winamp.lnk"

//WinRAR
DEL "%UserProfile%\Start Menu\winrar.lnk"


ECHO Deleting Sample Music, Playlists, and Pictures...
RD /S /Q "%AllUsersProfile%\Documents\My Music\Sample Music\"
RD /S /Q "%AllUsersProfile%\Documents\My Music\Sample Playlists\"
RD /S /Q "%AllUsersProfile%\Documents\My Pictures\Sample Pictures\"


ECHO Deleting Preset Internet Explorer Favorites...
RD /S /Q "%UserProfile%\Favorites\"


ECHO Deleting Temp Installation Files...
RD /S /Q %systemdrive%\Drivers
RD /S /Q %systemdrive%\Install
RD /S /Q "%systemroot%\Cache\Adobe Reader 6\"


EXIT

  • Author

If I do this (below), will it WAIT for WPI to be totally done? WPI is a check-box interface, once that finishes, it installs things in a runonceex kind of way,,, i want it to wait for all of that to finish.

WPI.CMD

@echo off
start /wait %systemdrive%\install\WPI20b\WPI.HTA

ECHO.

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


ECHO Deleting Default Users of XP (Remote User, Help User, .NET User)...
start /wait net user helpassistant /delete
start /wait net user SUPPORT_388945a0 /delete
start /wait net user ASPNET /delete

ECHO Deleting Installation Shortcuts...
//Standard Crap
RD /S /Q "%AllUsersProfile%\Start Menu\Programs\PrintMe Internet Printing"
RD /S /Q "%AllUsersProfile%\Start Menu\Programs\Java Web Start"
DEL "%AllUsersProfile%\Start Menu\Programs\Windows Movie Maker.lnk"
DEL "%UserProfile%\Start Menu\Programs\Remote Assistance.lnk"

//Adobe Reader 6.0
DEL "%AllUsersProfile%\Desktop\Adobe Reader 6.0.lnk"

//AIM
DEL "%AllUsersProfile%\Desktop\Free AOL & Unlimited Internet.lnk"
DEL "%AllUsersProfile%\Start Menu\Free AOL & Unlimited Internet.lnk"
DEL "%AllUsersProfile%\Desktop\AOL Instant Messenger.lnk"
DEL "%UserProfile%\Application Data\Microsoft\Internet Explorer\Quick Launch\AOL Instant Messenger.lnk"

//Daemon Tools
MOVE "%AllUsersProfile%\Desktop\DAEMON Tools.lnk" "%UserProfile%\Start Menu\"

//TuneUp 2004
RD /S /Q "%UserProfile%\Start Menu\Programs\TuneUp Utilities 2004"
DEL "%UserProfile%\Desktop\1-Click Maintenance.lnk"

//Winamp
DEL "%UserProfile%\Application Data\Microsoft\Internet Explorer\Quick Launch\Winamp.lnk"
DEL "%UserProfile%\Desktop\Winamp.lnk"

//WinRAR
DEL "%UserProfile%\Start Menu\winrar.lnk"


ECHO Deleting Sample Music, Playlists, and Pictures...
RD /S /Q "%AllUsersProfile%\Documents\My Music\Sample Music\"
RD /S /Q "%AllUsersProfile%\Documents\My Music\Sample Playlists\"
RD /S /Q "%AllUsersProfile%\Documents\My Pictures\Sample Pictures\"


ECHO Deleting Preset Internet Explorer Favorites...
RD /S /Q "%UserProfile%\Favorites\"


ECHO Deleting Temp Installation Files...
RD /S /Q %systemdrive%\Drivers
RD /S /Q %systemdrive%\Install
RD /S /Q "%systemroot%\Cache\Adobe Reader 6\"


EXIT

  • Author
:wacko: ... next install i'll test it.
  • Author
well test it; i think it should wait...

as i suspected, it did not work.

It waits until the graphical check-box selection finished. but once that's done, it begins cleanup before the programs actually install.

i guess i'll have to find another way to activate the cleanup AFTER the programs install....

hmmm...

How do I make a program (cleanup.cmd) run AFTER everything else is done?

Can't you put this line in your WPI.HTA: call %systemdrive%\install\cleanup.cmd

And delete this line from your SIF: %systemdrive%\install\cleanup.cmd

What I did, and I don't know if this will work for what you use it for, is to create a batch file on the All Users desktop that

A) installs a reg entry to call a batch file that cleans up all the OEM installation files on next login and

B) Runs Sysprep on the machine to reseal it for the customer.

The next time it's booted up by the customer, it deletes all OEM installation files and is ready to go. Mind you, you could do that without using the Sysprep part if you don't need it.

*RANT*

SOMETIMES I HATE EMOTICONS!

*RANT*

Edited by Jito463

  • Author
What I did, and I don't know if this will work for what you use it for, is to create a batch file on the All Users desktop that

A) installs a reg entry to call a batch file that cleans up all the OEM installation files on next login and

B) Runs Sysprep on the machine to reseal it for the customer.

The next time it's booted up by the customer, it deletes all OEM installation files and is ready to go.  Mind you, you could do that without using the Sysprep part if you don't need it.

*RANT*

SOMETIMES I HATE EMOTICONS!

*RANT*

could you post your batch file so I can see your exmaple?

This is the batch file on the desktop that's run to setup the whole cleanup process:

regedit /S C:\Windows\System32\OEMClean.reg

C:\OEM\Sysprep\sysprep.exe

The above two files were already copied from the $OEM$ directory.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce]

"OEMCleanup"="C:\\Windows\\System32\\OEMClean.bat"

This sets up the RunOnce key to call the necessary batch file:

Deltree /Y C:\OEM

Deltree /Y C:\Documents And Settings\All Users\Desktop\Sysprep.bat

Deltree /Y C:\Documents And Settings\All Users\Desktop\bit.bat

Deltree /Y C:\Windows\System32\proreg.reg

Deltree /Y C:\Windows\System32\ChngOwnr.reg

Deltree /Y C:\Windows\System32\OEMPrep.bat

Deltree /Y C:\Windows\System32\OEMClean.reg

Deltree /Y C:\Windows\System32\OEMClean.bat

All the above files, including the deltree used during erasure, were copied from $OEM$. This runs on the next boot and cleans up everything, including itself. And in case you're wondering about the desktop icons, I used OEMPrep.bat called from the GUIRunOnce in winnt.sif:

COPY C:\OEM\bit.bat "C:\Documents And Settings\All Users\Desktop"

COPY C:\OEM\Sysprep.bat "C:\Documents And Settings\All Users\Desktop"

REGEDIT /S ChngOwnr.reg

Hope that helps someone.

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

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.