February 26, 200521 yr friendsi am facing a strange problemi have installed few applications with my unattended xpand i have subgrouped the All Programs menuinto:PlayersInternet StuffWindows Toolsbut following links which are not either deleting or movingInternet ExplorerOutlook ExpressWindows Media Player(Check the Image)I have tried all the possible ways of deleting themi have tried deleting them i have tried changing their attribute to hidden so that they wont be shown in the all programs menuBesides simple delete commands i have tried following thingsattrib -A +H "%systemdrive%\Documents and Settings\Administrator\Start Menu\Programs\Internet Explorer.lnk"attrib -A +H "%systemdrive%\Documents and Settings\Administrator\Start Menu\Programs\Outlook Express.lnk"attrib -A +H "%systemdrive%\Documents and Settings\Administrator\Start Menu\Programs\Windows Media Player.lnk"DEL /AH "%systemdrive%\Documents and Settings\Administrator\Start Menu\Programs\Outlook Express.lnk"DEL /AH "%systemdrive%\Documents and Settings\Administrator\Start Menu\Programs\Internet Explorer.lnk"DEL "%systemdrive%\Documents and Settings\Administrator\Start Menu\Programs\Windows Media Player.lnk"attrib -A +H "%UserProfile%\Start Menu\Programs\Internet Explorer.lnk"attrib -A +H "%UserProfile%\Start Menu\Programs\Outlook Express.lnk"attrib -A +H "%UserProfile%\Start Menu\Programs\Windows Media Player.lnk"DEL /AH "%UserProfile%\Start Menu\Programs\Outlook Express.lnk"DEL /AH "%UserProfile%\Start Menu\Programs\Internet Explorer.lnk"DEL /AH "%UserProfile%\Start Menu\Programs\Windows Media Player.lnk"DEL /Q "%systemdrive%\Documents and Settings\Administrator\Start Menu\Programs\*.*"plz help me tell me how to delete these 3 links from All Programs
February 26, 200521 yr when are you trying to remove them?because i think those are added after first loginlike the ie and show desktop shortcuts are added to quick launch after first login
February 26, 200521 yr Author i have added above mentioned lines in cleanup.cmd and am executing the cleanup.cmd in Runonceex
February 26, 200521 yr No way to delete them at this point of the setup ...IE, OE and Media Player shortcuts are created during the first login process with the help of the stub path entries inside the registry.They can all be found under "HKLM\SOFTWARE\Microsoft\Active Setup\Installed Components".You may delete the corresponding entries, but you should also keep in mind that this will skip some initializations of the mentioned apps. However - it's relatively safe to remove these entries.Stub-path GUIDs ...IE:{89820200-ECBD-11cf-8B85-00AA005B4383}{26923b43-4d38-484f-9b9e-de460746276c}OE:{44BBA840-CC51-11CF-AAFA-00AA00B6015C}{7790769C-0471-11d2-AF11-00C04FA35D02}{881dd1c5-3dcf-431b-b061-f3f88e8be88a}MediaPlayer:{22d6f312-b0f6-11d0-94ab-0080c74c7e95}{6BF52A52-394A-11d3-B153-00C04F79FAA6}
February 26, 200521 yr Here A VBS Script That Should workCut And Paste Then Save As RemoveShortCuts.vbsThis Is SilentON ERROR RESUME NEXTDim Shell, AP, UP, SD AP = Shell.ExpandEnvironmentStrings("%AllUsersProfile%") UP = Shell.ExpandEnvironmentStrings("%UserProfile%") SD = Shell.ExpandEnvironmentStrings("%SystemDrive%") Set Shell = WScript.CreateObject("WScript.Shell") fso.DeleteFile( AP & "\Start Menu\Programs\Explorer.lnk") fso.DeleteFile( AP & "\Start Menu\Programs\Windows Media Player.lnk" ) fso.DeleteFile( AP & "\Start Menu\Programs\Outlook Express.lnk") fso.DeleteFile( UP & "\Start Menu\Programs\Explorer.lnk") fso.DeleteFile( UP & "\Start Menu\Programs\Windows Media Player.lnk" ) fso.DeleteFile( UP & "\Start Menu\Programs\Outlook Express.lnk")This Is With A Message Box And A 3 Second Time OutON ERROR RESUME NEXTDim Shell, AP, UP, SD AP = Shell.ExpandEnvironmentStrings("%AllUsersProfile%") UP = Shell.ExpandEnvironmentStrings("%UserProfile%") SD = Shell.ExpandEnvironmentStrings("%SystemDrive%") Set Shell = WScript.CreateObject("WScript.Shell") fso.DeleteFile( AP & "\Start Menu\Programs\Explorer.lnk") fso.DeleteFile( AP & "\Start Menu\Programs\Windows Media Player.lnk" ) fso.DeleteFile( AP & "\Start Menu\Programs\Outlook Express.lnk") fso.DeleteFile( UP & "\Start Menu\Programs\Explorer.lnk") fso.DeleteFile( UP & "\Start Menu\Programs\Windows Media Player.lnk" ) fso.DeleteFile( UP & "\Start Menu\Programs\Outlook Express.lnk")CreateObject("wscript.shell").popup "Completed Remove Shortcuts!", 3, "Remove Shortcuts", 0 + 64Hope This Helps
February 26, 200521 yr Author @gunsmokingmanthanks for replyingbut i would know where i have to put these vbs scripti mean if i put in cleanup.cmd which is called from runonceexthen will it be ok
February 26, 200521 yr Author you mean RemoveShortCuts.vbsbut i have added cscript //B //NoLogo %systemdriver%\install\RemoveShortCuts.vbsin cleanup.cmdisnt it ok
February 26, 200521 yr Either will work1\start /w wscript.exe %systemdriver%\install\RemoveShortCuts.vbs2\wscript.exe %systemdriver%\install\RemoveShortCuts.vbs
February 27, 200521 yr You can also turn off those shortcuts in WINNT.SIF. See here for details. [Components]ieaccess = offmsnexplr = offoeaccess = offwmaccess = offKeep a copy of the shortcuts somewhere and copy them to your All Programs folders during one of your batches.
February 27, 200521 yr Author @dahii think if i set ieaccess = offmsnexplr = offoeaccess = offwmaccess = offthen these packages wont be installedi want to know by turning them off as mentioned abovewill disable their links to appear in all programs menu or it will completely set the packages to off state and wont install themplz help
February 27, 200521 yr Author @gunsmokingmanu have writtenEither will work1\start /w wscript.exe %systemdriver%\install\RemoveShortCuts.vbs2\wscript.exe %systemdriver%\install\RemoveShortCuts.vbs --------------------Gunsmokingmanbut i want to know is it %systemdriver% or %systemdrive%
February 27, 200521 yr Author @gunsmokingguythe vbscript file (.vbs) you have mentioned is not workingi have added the file to my cleanup.cmd executed from runonceexbut still the shortcuts are not removedplz help
February 27, 200521 yr Sorry My Mistake Here A Re- Edit Save As Remove ShortcutsSilent No Message BoxON ERROR RESUME NEXTDim Shell, AP, UP, SDSet Shell = WScript.CreateObject("WScript.Shell")Set fso = CreateObject("Scripting.FileSystemObject")AP = Shell.ExpandEnvironmentStrings("%AllUsersProfile%")UP = Shell.ExpandEnvironmentStrings("%UserProfile%")SD = Shell.ExpandEnvironmentStrings("%SystemDrive%") fso.DeleteFile( AP & "\Start Menu\Programs\Internet Explorer.lnk") fso.DeleteFile( AP & "\Start Menu\Programs\Windows Media Player.lnk" ) fso.DeleteFile( AP & "\Start Menu\Programs\Outlook Express.lnk") fso.DeleteFile( UP & "\Start Menu\Programs\Internet Explorer.lnk") fso.DeleteFile( UP & "\Start Menu\Programs\Windows Media Player.lnk" ) fso.DeleteFile( UP & "\Start Menu\Programs\Outlook Express.lnk")Message Box 3 Second Time OutON ERROR RESUME NEXTDim Shell, AP, UP, SDSet Shell = WScript.CreateObject("WScript.Shell")Set fso = CreateObject("Scripting.FileSystemObject")AP = Shell.ExpandEnvironmentStrings("%AllUsersProfile%")UP = Shell.ExpandEnvironmentStrings("%UserProfile%")SD = Shell.ExpandEnvironmentStrings("%SystemDrive%") fso.DeleteFile( AP & "\Start Menu\Programs\Internet Explorer.lnk") fso.DeleteFile( AP & "\Start Menu\Programs\Windows Media Player.lnk" ) fso.DeleteFile( AP & "\Start Menu\Programs\Outlook Express.lnk") fso.DeleteFile( UP & "\Start Menu\Programs\Internet Explorer.lnk") fso.DeleteFile( UP & "\Start Menu\Programs\Windows Media Player.lnk" ) fso.DeleteFile( UP & "\Start Menu\Programs\Outlook Express.lnk") CreateObject("wscript.shell").popup "Completed Removing Shortcuts",3,"Gsm Remove ShortCuts",0+64
February 27, 200521 yr Maybe you can use the IF EXIST stuffs and make an error log like the following when testing out, but haven't tested it though.SET DELFILE="%systemdrive%\Documents and Settings\Administrator\Start Menu\Programs\Internet Explorer.lnk"IF EXIST %DELFILE% DEL %DELFILE%IF NOT EXIST %DELFILE% ECHO %DELFILE% NOT_ERASED > %SYSTEMDRIVE%\ERRORSTUFF.TXT
Create an account or sign in to comment