[BM]Crusher Posted April 7, 2004 Share Posted April 7, 2004 If you followed the instructions from MSFN's Unattended guide, you would more than likely have a CLEANUP.CMD batch file that will delete your shortcuts for you.... This batch file gets run by apps.cmd which is in winnt.sif GuiRunOnce section. apps.cmd sets up GuiRunOnce commands for all the program installers..A copy of my CLEANUP.CMD :@echo offshutdown.exe -r -f -t 45 -c "Windows XP will now restart in 45 seconds..."ECHO.ECHO.ECHO Cleaning up and deleting Windows XP Bulls*** files...ECHO.ECHO Deleting wallpapersDEL "%systemroot%\*.bmp"ECHO Deleting screensavers...DEL "%systemroot%\system32\dllcache\*.scr"DEL "%systemroot%\system32\*.scr"ECHO Deleting start menu shortcuts...DEL "%AllUsersProfile%\Start Menu\Windows Update.lnk"DEL "%AllUsersProfile%\Start Menu\Set Program Access and Defaults.lnk"DEL "%AllUsersProfile%\Start Menu\Windows Catalog.lnk"RD /S /Q "%AllUsersProfile%\Start Menu\Programs\PrintMe Internet Printing"DEL "%UserProfile%\Start Menu\Programs\Windows Media Player.lnk"DEL "%AllUsersProfile%\Start Menu\Programs\Windows Movie Maker.lnk"DEL "%AllUsersProfile%\Start Menu\Programs\Adobe Reader 6.0.lnk"DEL "%SystemDrive%\Documents and Settings\Default User\Start Menu\Programs\Remote Assistance.lnk"ECHO Deleting desktop shortcuts...DEL "%AllUsersProfile%\Desktop\Adobe Reader 6.0.lnk"DEL "%AllUsersProfile%\Desktop\CloneCD.lnk"DEL "%AllUsersProfile%\Desktop\PowerDVD.lnk"DEL "%AllUsersProfile%\Desktop\ISOBuster.lnk"DEL "%AllUsersProfile%\Desktop\Nero StartSmart.lnk"DEL "%AllUsersProfile%\Desktop\DAEMON Tools.lnk"DEL "%SystemDrive%\Documents and Settings\Default User\Desktop\Ad-Aware 6.0.lnk"DEL "%SystemDrive%\Documents and Settings\Default User\Desktop\CDex.lnk"DEL "%AllUsersProfile%\Desktop\BSplayer.lnk"ECHO.ECHO.ECHO Deleting Temp Installation Files...RD /S /Q %systemdrive%\DriversRD /S /Q %systemdrive%\InstallRD /S /Q %systemdrive%\FAHWhere I am deleting the Ad-Aware and CDex link you can see these are being deleted out of the "Default User" account folder... if you substituted this for "Administrator" that will work too, as long as your "Default User" account has administrative rights... Link to comment Share on other sites More sharing options...
farte Posted April 7, 2004 Share Posted April 7, 2004 thanks for that but would this cmd above work with accesories,system tools etc Link to comment Share on other sites More sharing options...
Mann Posted April 7, 2004 Author Share Posted April 7, 2004 managed to get rid most of the shortcuts and folders except for Accessories,startup,internet explorer and outlook express. Link to comment Share on other sites More sharing options...
eirogge Posted April 7, 2004 Share Posted April 7, 2004 i wonder myself why IE and OE shortcuts cannot be deleted. they are somehow protected. trying to move them doesnt work either. Link to comment Share on other sites More sharing options...
Aaron Posted April 7, 2004 Share Posted April 7, 2004 Try adding OEaccess=off and IEaccess=off under [Components] in winnt.sif to remove the shortcuts to them. Link to comment Share on other sites More sharing options...
gtaylor Posted April 8, 2004 Share Posted April 8, 2004 i wonder myself why IE and OE shortcuts cannot be deleted. they are somehow protected. trying to move them doesnt work either.These shortcuts are created by ActiveSetup. ActiveSetup is run each time a new user logs onto Windows. Shortcuts to the following programs are all created by ActiveSetup:Windows MessengerInternet Explorer 6Windows MEdia PlayerOutlook ExpressYou can prevent the shortcuts to these items being created by removing the STUBPATH key from the ActiveSetup portion of the registry. I included an INF file which removes these keys in my previous post. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now