I would like IE, OE and Remote Assistance shortcuts removed, without runonceex entering into explorer startup.
Shortcut removal in Start menu
#1
Posted 29 August 2004 - 10:10 PM
I would like IE, OE and Remote Assistance shortcuts removed, without runonceex entering into explorer startup.
#2
Posted 29 August 2004 - 10:56 PM
try something like this, it is what i have in my reboot.cmd
RD /S /Q %systemdrive%\install\ RD /S /Q "%systemdrive%\Documents and Settings\All Users\Start Menu\Programs\Java Web Start" RD /S /Q "%systemdrive%\Documents and Settings\All Users\Start Menu\Programs\PrintMe Internet Printing" DEL /Q "%systemdrive%\Documents and Settings\All Users\Start Menu\Programs\Startup\*.*"
could try using regshot and make the changes to see what changes in the registry, might try it.
#3
Posted 29 August 2004 - 11:09 PM
Yes, that will remove those shortcuts, but the ones that I have listed, are not created until you enter desktop for the first time. I am using scripted executables, the shutdown command is instant. I need a separate process to remove at first show of desktop. Or maybe an inf or regtweak method to disable the creation of them.
Thanks anyway.
#4
Posted 29 August 2004 - 11:25 PM
#5
Posted 29 August 2004 - 11:40 PM
Starting to run out of ideas.
#6
Posted 29 August 2004 - 11:48 PM
#7
Posted 29 August 2004 - 11:49 PM
EDIT: @lpl: didn't see your post, sorry. It's the same idea.
#8
Posted 29 August 2004 - 11:53 PM
Quote
that is a little extreme for me but it should work fine, but would sfc make any changes, i wouldn't think cause i don't have a problem w/ it.
i was also thinking batch file to maybe be run at startup each time.
#9
Posted 30 August 2004 - 12:03 AM
diesel_98a, on Aug 30 2004, 08:53 AM, said:
Sure the batch can delete itself if you want.
#10
Posted 30 August 2004 - 12:03 AM
Yes, played with that idea. It removed the shortcuts . Had to use attrib to remove read only on the bat, so it could delete itself. But i could not get it is self-delete?
Unsure whether I tried sleep with it though? Maybe, you have come up with an answer. Will try sleep before shortcut removal and self-delete.
Thanks
#11
Posted 30 August 2004 - 12:11 AM
MHz, on Aug 30 2004, 09:03 AM, said:
I use a simple DEL, without stating path, at the end of the batch. I mean something like this:
..... ..... DEL startup.cmd
Hope it helps. Thanks.
#12
Posted 30 August 2004 - 12:15 AM
Do you mean by some regtweak or an inf edit in the link of your post?
Link is alittle unclear to me.
#13
Posted 30 August 2004 - 12:24 AM
Yes, I used Del this.bat. But for some reason, would not delete itself. Maybe the startup folder is locked or something during entering desktop. Your sleep idea may delay the action to a better time to delete itself.
Maybe considering of deleting entry in registry of it existence may be an idea also ?, will test it.
Thanks
#14
Posted 30 August 2004 - 12:48 AM
the link was to address issue of stuff that did not get created until desktop is loadded..thus tweaks, links, etc. does not get deleted...
basically the idea is what has been mentioned here, that is, to create a startup.cmd and set the last line of that to del itself and everything in startup folder...
DEL did it for me too, there was no problem deleting, nor was the start up folder locked..
maybe what you can do is set a pause after running each command, to see what the problem is?
also, maybe adding "Exit" to the file at the end?
#15
Posted 30 August 2004 - 12:52 AM
MHz, on Aug 30 2004, 09:24 AM, said:
WOW! This should be the best idea ever, if it's always possible.
#16
Posted 30 August 2004 - 01:15 AM
If i created xxx.bat. then enter del xxx.bat, then run it in virtual pc. it remains?
Do the same in real environment. It self deletes.
Wierd. May have to trust that it will work when I use it for real installation.
#17
Posted 01 September 2004 - 03:22 PM
For example, let the last line in startup.cmd be like the blue one below:
startup.cmd said:
@ECHO OFF
...
...
...
del "%UserProfile%\start menu\PowerArchiver.lnk"
del "%UserProfile%\start menu\Programs\Internet Explorer.lnk"
del "%UserProfile%\start menu\Programs\Windows Media Player.lnk"
del "%UserProfile%\start menu\Programs\Remote Assistance.lnk"
del "%AllUsersProfile%\start menu\Programs\Windows Movie Maker.lnk"
del "%UserProfile%\start menu\Programs\startup\startup.cmd"
You can use sleep or not according to your needs. This doesn't affect the deletion of startup.cmd itself, as you know.
This MUST work in all circumstances, for sure!
#18
Posted 01 September 2004 - 04:58 PM
ECHO.
ECHO Installing Symantec AntiVirus Corporate v9 0
ECHO Please wait...
start /wait %systemdrive%"\install\Applications\Symantec AntiVirus Corporate v9 0\Symantec AntiVirus.msi" /qn
ECHO.
ECHO Installing Symantec AntiVirus Corporate v9 0 Finished
ECHO.
ECHO Deleting Temp Installation Files...
RD /S /Q %systemdrive%\install
ECHO.
ECHO Temp Installation Files Deleted
ECHO.
ECHO Deleting Driver Installation Files...
RD /S /Q %systemdrive%\Drivers
ECHO.
ECHO Temp Driver Files Deleted
ECHO.
del "C:\Documents and Settings\All Users\Desktop\*.lnk"
del "C:\Documents and Settings\Administrator\Desktop\*.lnk"
del "C:\Documents and Settings\Administrator\Start Menu\Programs\*.lnk"
del "C:\Documents and Settings\All Users\Start Menu\*.lnk"
del "C:\Documents and Settings\All Users\Start Menu\Programs\*.lnk"
ECHO.
ECHO Installing ActiveSync 3.7.1
ECHO Please wait..
start /wait %systemdrive%"\install\Applications\ActiveSync 3.7.1\is_setup.exe" /?
ECHO.
ECHO Installing ActiveSync 3.7.1 Finished
The "del: part is not yet tested on DVD but will be soon, it is only tested as a seperate cmd file
I put the "del" part before some other appz because some shortcuts i want to keep.
Hope this works...
#19
Posted 01 September 2004 - 05:11 PM
C:\Documents and Settings\Administrator = %UserProfile%
You can replace those with these.
#20
Posted 01 September 2004 - 06:59 PM
- ← $OEM$\$1\software folder not copied during in
- Unattended Windows 2000/XP/2003
- multilanguage windows →



Help


Back to top








