MSFN Forum: Shortcut removal in Start menu - MSFN Forum

Jump to content



  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Shortcut removal in Start menu Rate Topic: -----

#1 User is offline   MHz 

  • SendToA3X v1.7
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,634
  • Joined: 02-August 04

Posted 29 August 2004 - 10:10 PM

Does anyone know of a method of removing shortcuts, from start menu -> programs without the use of runonceex commands?
I would like IE, OE and Remote Assistance shortcuts removed, without runonceex entering into explorer startup.

:unsure:


#2 User is offline   diesel_98a 

  • Spurz 4 Life....
  • PipPipPipPip
  • Group: Members
  • Posts: 532
  • Joined: 26-July 03

Posted 29 August 2004 - 10:56 PM

not really
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 User is offline   MHz 

  • SendToA3X v1.7
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,634
  • Joined: 02-August 04

Posted 29 August 2004 - 11:09 PM

@ diesel_98a

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 User is offline   diesel_98a 

  • Spurz 4 Life....
  • PipPipPipPip
  • Group: Members
  • Posts: 532
  • Joined: 26-July 03

Posted 29 August 2004 - 11:25 PM

u are probably looking more for a regtweak then. will need to get a program to monitor the registry changes and apply those changes to regtweak. i have used regshot for that. i don't recall anybody who has already done something like that using regtweaks otherwise i would pt u in their direction. i myself just use the runonceex in my reboot.cmd.

#5 User is offline   MHz 

  • SendToA3X v1.7
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,634
  • Joined: 02-August 04

Posted 29 August 2004 - 11:40 PM

Regtweak may get overwritten at first desktop startup, depending on what creates them. Have tried runonce, with following reboot, with no success, so far.

Starting to run out of ideas.

:wacko:

#6 User is offline   lpl 

  • what're you talking abt?
  • Pip
  • Group: Members
  • Posts: 60
  • Joined: 14-July 04

Posted 29 August 2004 - 11:48 PM

how abt this and the reply below that?

http://www.msfn.org/board/index.php?showto...=0&#entry171984

#7 User is offline   mazin 

  • MSFN Addict
  • Group: Supreme Sponsor
  • Posts: 1,952
  • Joined: 12-January 04

Posted 29 August 2004 - 11:49 PM

A batch file put in Startup folder that has a sleep command may do the job.

EDIT: @lpl: didn't see your post, sorry. It's the same idea.

#8 User is offline   diesel_98a 

  • Spurz 4 Life....
  • PipPipPipPip
  • Group: Members
  • Posts: 532
  • Joined: 26-July 03

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 User is offline   mazin 

  • MSFN Addict
  • Group: Supreme Sponsor
  • Posts: 1,952
  • Joined: 12-January 04

Posted 30 August 2004 - 12:03 AM

diesel_98a, on Aug 30 2004, 08:53 AM, said:

i was also thinking batch file to maybe be run at startup each time.

Sure the batch can delete itself if you want.

#10 User is offline   MHz 

  • SendToA3X v1.7
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,634
  • Joined: 02-August 04

Posted 30 August 2004 - 12:03 AM

@mazin

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 User is offline   mazin 

  • MSFN Addict
  • Group: Supreme Sponsor
  • Posts: 1,952
  • Joined: 12-January 04

Posted 30 August 2004 - 12:11 AM

MHz, on Aug 30 2004, 09:03 AM, said:

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?

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 User is offline   MHz 

  • SendToA3X v1.7
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,634
  • Joined: 02-August 04

Posted 30 August 2004 - 12:15 AM

@lpl

Do you mean by some regtweak or an inf edit in the link of your post?
Link is alittle unclear to me.

:blink:

#13 User is offline   MHz 

  • SendToA3X v1.7
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,634
  • Joined: 02-August 04

Posted 30 August 2004 - 12:24 AM

@Mazin

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 User is offline   lpl 

  • what're you talking abt?
  • Pip
  • Group: Members
  • Posts: 60
  • Joined: 14-July 04

Posted 30 August 2004 - 12:48 AM

oops sorry for being unclear..

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 User is offline   mazin 

  • MSFN Addict
  • Group: Supreme Sponsor
  • Posts: 1,952
  • Joined: 12-January 04

Posted 30 August 2004 - 12:52 AM

MHz, on Aug 30 2004, 09:24 AM, said:

Maybe considering of deleting entry in registry of it existence may be an idea also ?

WOW! This should be the best idea ever, if it's always possible.

#16 User is offline   MHz 

  • SendToA3X v1.7
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,634
  • Joined: 02-August 04

Posted 30 August 2004 - 01:15 AM

I think it may be a Virtual PC hiccup?
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 User is offline   mazin 

  • MSFN Addict
  • Group: Supreme Sponsor
  • Posts: 1,952
  • Joined: 12-January 04

Posted 01 September 2004 - 03:22 PM

One more note to safely have it working in all situations is to define the path to startup.cmd.

For example, let the last line in startup.cmd be like the blue one below:

startup.cmd said:

cls
@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 User is offline   Gerrit.B 

  • Newbie
  • Group: Members
  • Posts: 33
  • Joined: 30-August 04

Posted 01 September 2004 - 04:58 PM

I was trying to put this part into my start.cmd.

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... :D

#19 User is offline   mazin 

  • MSFN Addict
  • Group: Supreme Sponsor
  • Posts: 1,952
  • Joined: 12-January 04

Posted 01 September 2004 - 05:11 PM

C:\Documents and Settings\All Users = %AllUsersProfile%
C:\Documents and Settings\Administrator = %UserProfile%

You can replace those with these.

#20 User is offline   GreenMachine 

  • ineXPlicable
  • Group: Developers
  • Posts: 3,062
  • Joined: 22-August 03

Posted 01 September 2004 - 06:59 PM

Alternativly, you could remove the ActiveSetup - StubPath entries during setup to avoid these shortcuts from being created. JSI has a couple articles about it, as well as some of my ancient posts. Keywords: ActiveSetup & StubPath

Share this topic:


  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy