MSFN Forum: Removing unwanted links from Start > All Programs - MSFN Forum

Jump to content



Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

Read Forum Rules
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Removing unwanted links from Start > All Programs how to? Rate Topic: -----

#1 User is offline   piXelatedEmpire 

  • nLiten me, nuhi!
  • PipPipPip
  • Group: Members
  • Posts: 306
  • Joined: 02-June 05

Posted 15 June 2005 - 06:32 AM

:hello:

After using switches to install various apps for your unattended installation, is it possible to prevent or delete certain links etc that are created by these silent application installs?

For example, readme links, help links, uninstall links etc

:)


#2 User is offline   bevone 

  • Group: Members
  • Posts: 3
  • Joined: 26-April 05

  Posted 15 June 2005 - 07:07 AM

easy,
look nero installation

isthead of your silent installation
run a cmq/batch file like this

@echo off

start /wait setup.exe

run silent installation
del "%AllUsersProfile%\Start Menu\Programs\Nero\Nero 6 Ultra Edition\Nero Wave Editor.lnk"

remove a shortcut in all user menu

del "%AllUsersProfile%\Start Menu\Programs\Nero\Nero 6 Ultra Edition\Nero Wave Editor.lnk"

remove a shortcut in all user menu

rd /s /q "%AllUsersProfile%\Start Menu\Programs\Nero\Nero Toolkit"

remove a group in all user menu

if your program installs in your menu, not in all user menu
use %Profile% instead of %AllUsersProfile%

B) B)

#3 User is offline   Achdine 

  • Junior
  • Pip
  • Group: Members
  • Posts: 97
  • Joined: 11-May 05

Posted 15 June 2005 - 12:38 PM

%Profile% is not a Windows variable. The variable Bevone meant was %UserProfile%, which expands to something like "C:\Documents and Settings\Bevone".

You can see the other variables that Windows set by opening a command window and typing "set."

The rest of what he said is correct; the Start Menu is stored in the individual user profiles and in the shared profile under the Start Menu folder. Links from both places are in the Start Menu of any logged on user. You can edit anything in the Start Menu by simply adding/deleting files from these folders.

#4 User is offline   bevone 

  • Group: Members
  • Posts: 3
  • Joined: 26-April 05

Posted 27 June 2005 - 08:25 AM

Aaaaarg!!!
I've make an error on my first post!!
:))

#5 User is offline   Yzöwl 

  • Wise Owl
  • Group: Super Moderator
  • Posts: 4,117
  • Joined: 13-October 04
  • OS:Windows 7 x64

Posted 27 June 2005 - 09:32 AM

You could try something like this instead
    craplinx.cmd
 
::removes pointless shortcuts from Programs subdirectories

@echo off&setlocal enableextensions
for /d %%a in ("%UserProfile%\..\*") do if exist "%%a\Start Menu\Programs" call :doit "%%a\Start Menu\Programs"
endlocal&goto :eof

:doit
pushd %1
for /f "delims=" %%b in ('dir /b/s/a "*.lnk"^|findstr/il "uninstall readme help"^2^>nul') do if errorlevel 0 del /f/a/q "%%b"
popd
goto :eof 


#6 User is offline   ZileXa 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 767
  • Joined: 27-May 04

Posted 09 July 2005 - 03:34 AM

This is how I do it (extremely easy)

After al programs are installed, I remove all the shortcurts I don't want, catagorize some others until I have the perfect Startmenu (I make sure this is the All Users menu)

Then I create a RAR SFX of the all users starmenu,
in my CLEANUP.CMD I delete the contents of all users startmenu, the SFX will extract after the cleanup.

Works great. easy to modify..

#7 User is offline   Martin Zugec 

  • MSFN Expert
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,373
  • Joined: 24-January 04

Posted 09 July 2005 - 03:43 AM

For msi based installation I am creating mst file (for example acrobat reader)

#8 User is offline   dirtyharry1971 

  • Group: Members
  • Posts: 5
  • Joined: 13-August 05

Posted 14 August 2005 - 08:01 AM

Ive been cleaning up my start menu using this method the only problems I had where alcohol as the .lnk file had the % symbol in it fixed it by using alcoho~1.lnk but am having a problem moving the 7-zip link to another folder in the start menu. I'm pretty sure the problem is being caused by the - symbol but have not been able to find a workaround I'm sure its something easy like putting a \ in or something. Please help...... :blink:

#9 User is offline   redfive19 

  • Junior
  • Pip
  • Group: Members
  • Posts: 96
  • Joined: 17-August 04

Posted 15 August 2005 - 08:51 PM

if I really want to move stuff around on the start menu (or even delete stuff) i use autoit. I usually get rid of desktop icons and move them to a menu ive made. If you want the code just ask.

#10 User is offline   blinkdt 

  • Somewhat Knowledgeable
  • PipPipPipPip
  • Group: Members
  • Posts: 582
  • Joined: 30-September 03
  • OS:Vista Ultimate x64
  • Country: Country Flag

Posted 20 August 2005 - 12:50 AM

@dirtyharry1971:

SET AllUsers=%systemdrive%\Documents and Settings\All Users\Desktop

DEL "%AllUsers%\Alcohol 120%%.lnk"

#11 User is offline   nad01 

  • Newbie
  • Group: Members
  • Posts: 10
  • Joined: 18-September 04

Posted 20 August 2005 - 01:22 AM

:hello:
Here are some varibles.

%ALLUSERSPROFILE% = C:\Documents and Settings\All Users

%USERPROFILE% = C:\Documents and Settings\{username}

%HOMEPATH% = \Documents and Settings\{username}

For interest here is a link to a listing on Environment Variables.

Environment Variables in Windows XP

:thumbup

Share this topic:


Page 1 of 1
  • 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