IPB

Google Frontpage Forums Unattended CD/DVD Guide

> Last warning

1. This is not a warez site! Links/Requests to warez and/or 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. You will be banned without notice.

Last warning. We will not tolerate any, i mean any illegal activity. We are very close to lock this forum. Think about it when you post your questions or requests.

 
Reply to this topicStart new topic
> Addons that makes custom start menu entries
Gompedyret
post Aug 18 2007, 12:31 AM
Post #1


Junior
*

Group: Members
Posts: 53
Joined: 11-August 07
From: Norway
Member No.: 150322
OS: XP Pro x86
Country Flag


I want to sort my start menu proggie shortcuts into categories like multimedia, internet, system etc. Firefox would thus be internet/Firefox/submenu instead of just Firefox/submenu

Is there any (easy) way to customize this part of the install, preferably contained into the addon itself? Or (if I understand correctly) is it only the .msi ones, and then through "recording" your steps into an extra file which goes into the addon cab as well?
Go to the top of the page
 
+Quote Post
gauntlet123
post Aug 18 2007, 03:13 PM
Post #2


Newbie


Group: Members
Posts: 20
Joined: 4-July 07
Member No.: 145439
OS: none
Country Flag


you can do it through a batch file. for the example you gave, something like this would work. create a new text document and save it as cleanup.cmd (or whatever name you prefer), and put this in:

CODE
@echo off
cmdow @ /HID

title "Organizing start menu..."

MD "%UserProfile%\Start Menu\Programs\Internet"
MOVE "%UserProfile%\Start Menu\Programs\Firefox\Firefox.lnk" "%UserProfile%\Start Menu\Programs\Internet\Firefox.lnk"
RMDIR /Q /S "%UserProfile%\Start Menu\Programs\Firefox"

EXIT


you'd obviously have to change the placeholders if it's necessary (i.e. it might be %AllUsersProfile% instead of %UserProfile%), and change the paths to whatever you want. then place the batch file into system32, and add this to the end of WINNT.SIF:

CODE
[GuiRunOnce]
"%WinDir%\system32\cleanup.cmd"
Go to the top of the page
 
+Quote Post
Gompedyret
post Aug 19 2007, 10:45 AM
Post #3


Junior
*

Group: Members
Posts: 53
Joined: 11-August 07
From: Norway
Member No.: 150322
OS: XP Pro x86
Country Flag


Thanks, mate.

Just what I hoped for, a presise and complete, yet short, answer which invites to further understanding and experimentation.
Go to the top of the page
 
+Quote Post
DL.
post Aug 19 2007, 12:08 PM
Post #4


Registry Specialist, Tweaker...
***

Group: Members
Posts: 488
Joined: 5-March 05
From: Hbg/Krn
Member No.: 46454
OS: XP Pro x86
Country Flag


This:
CODE
MOVE "%UserProfile%\Start Menu\Programs\Firefox\Firefox.lnk" "%UserProfile%\Start Menu\Programs\Internet\Firefox.lnk"
or shorter:
CODE
MOVE "%UserProfile%\Start Menu\Programs\Firefox\Firefox.lnk" "%UserProfile%\Start Menu\Programs\Internet\"
Moves only the shortcut for Firefox, not the folder it's in (nor any subfolders).

While this:
CODE
MOVE "%UserProfile%\Start Menu\Programs\Firefox" "%UserProfile%\Start Menu\Programs\Internet\"
Moves the folder (including subfolders) and you won't need the RMDIR command.
Go to the top of the page
 
+Quote Post
aromo
post Oct 8 2007, 09:59 AM
Post #5





Group: Members
Posts: 2
Joined: 4-October 07
Member No.: 157108
OS: XP Home
Country Flag


I want to delete some shortcuts from the desktop, so I tried to use the information in this post.

I created the cleanup.cmd and placed it in the system32 directory of the source files, the file ended up in the ISO image that I generated, but it never got to the target machine when I tested the install, so when the command put in the WINNT.SIF file gets executed and error appears telling that the file cleanup.cmd cannot be found.

where do I need to place cleanup.cmd for it to by copied to the target machine?

Thanks,

Alfredo
Go to the top of the page
 
+Quote Post
DL.
post Oct 8 2007, 10:04 AM
Post #6


Registry Specialist, Tweaker...
***

Group: Members
Posts: 488
Joined: 5-March 05
From: Hbg/Krn
Member No.: 46454
OS: XP Pro x86
Country Flag


@aromo: You can put it in the $OEM$-folders for example, read the MSFN Unattended Guide.
Go to the top of the page
 
+Quote Post
BikinDutchman
post Oct 8 2007, 11:02 AM
Post #7


Member
**

Group: Members
Posts: 230
Joined: 11-January 07
Member No.: 121324
Country Flag


You can:
-make shortcuts from an INF file: here
-create them with nircmd: Here
-use a small command line utility: Here
-edit the installer package (*.msi with orca).

I do not recommend simple copying, moving of shortcuts because that gives problems with the uninstall script and sometimes triggers reinstall repairs.

Hope it helps, good luck
Go to the top of the page
 
+Quote Post
aromo
post Oct 8 2007, 04:33 PM
Post #8





Group: Members
Posts: 2
Joined: 4-October 07
Member No.: 157108
OS: XP Home
Country Flag


Thanks for the info DL., I manage to delete the icons from the desktop.

Now I want to move some Start Menu items, my problem is that I'm using the spanish version of Windows and when I try to execute the followin command:

MOVE "%AllUsersProfile%\Menú Inicio\Programas\7-Zip" "%AllUsersProfile%\Menú Inicio\Programas\Accesorios\7-Zip"

I get en error message telling me that the system cannot find the path.

The environmental variable %AllUsersProfile% is returning the correct path, the problem is that Windows uses an accented char in the Start Menu path (Menú Inicio in Spanish).

Windows is converting Menú in Men·

The actual command as displayed from the command line:

C:\WINDOWS\system32>MOVE "C:\Documents and Settings\Administrador\Men· Inicio\Programas \7-Zip" "C:\Documents and Settings\Administrador\Men· Inicio\Programas \Accesorios\7-Zip"

What can I do to correct this?

Thanks
Go to the top of the page
 
+Quote Post

Google Frontpage Forums Unattended CD/DVD Guide

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 8th January 2009 - 03:28 AM
All trademarks mentioned on this page are the property of their respective owners
MSFN is not affiliated with Microsoft
Copyright © 2001-2008 msfn.org
Privacy Policy