Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Newbie question: Start menu shortcuts

39 views
Skip to first unread message

S. Hussain Akbar

unread,
Feb 28, 2002, 12:20:24 AM2/28/02
to
I am just starting on MSI. I followed the example in the SDK Help on "Making
a simple application" for the Notepad / Redpark application.

After typos and other wierd happenings, I got the sample to run.

I have one question: The application's shortcuts are placed in \Program
Files\Redpark\menu but do not appear in the Start menu. How do I get them to
appear there?


Franz Strele

unread,
Feb 28, 2002, 6:02:31 AM2/28/02
to
hi,

delete the following row from the "Directory"-table
"MENUDIR", "NOTEPADDIR", "Menu"

add these rows to the "Directory"-table
"ProgramMenuDir", "TARGETDIR", ""
"MENUDIR", "ProgramMenuDir", "MyApplication"


the second row tells installer to create a "MyApplication" subfolder in the
"Programs"-Folder of the "Start"-menu. the first row is needed to be able to
use the "ProgramMenuDir" in the "Directory_Parent"-column of the second
row...

the "ProgramMenuDir" is a Windows Installer predefined Folder (see "System
Folder Properties" in SDK)

i haven't tried this, but i think it should work :-)
franz

"S. Hussain Akbar" <hus...@systemsltd.com> schrieb im Newsbeitrag
news:eBRcrdBwBHA.2540@tkmsftngp04...

S. Hussain Akbar

unread,
Mar 1, 2002, 6:30:13 AM3/1/02
to
Franz

I get an error during validation that the target is invalid in
ProgramMenuDir. So I placed a period there to make the error go away.

Installed the MNP package again. It previously created a folder in
C:\Program Files\Redpark called "Menu" and placed the shortcuts there. Now,
no such folder. Also, no shortcuts in the
Start Menu. hmmm

My Directory folder now looks like this:

TARGETDIR, <blank>, SourceDir
ProgramFilesFolder, TARGETDIR, .
ARTSDIR, NOTEPADDIR, Arts:Events
NOTEPADDIR, ProgramFilesFolder, Red_Park:Notepad
HOLDIR, MONDIR, .:Holidays
MONDIR, NOTEPADDIR, Gate
MENUDIR, ProgramMenuDir, RedPark
SPORTDIR, NOTEPADDIR, Sports:Events
ProgramMenuDir, TARGETDIR, .

Regards
Hussain

"Franz Strele" <franz....@synergis.at> wrote in message
news:eGDYscEwBHA.2096@tkmsftngp07...

Dave Hanna

unread,
Mar 1, 2002, 8:52:00 AM3/1/02
to
According to my documentation (Aug 2001 SDK), there are two System Folder
Properties that I think are relevant (BTW, I'm a Newbie, too). One is
"StartMenuFolder" (description is "Full path to the Start Menu folder."),
the other is "ProgramMenuFolder" (Full path to the Program Menu folder -
helpful, huh?).

I would try substituting "ProgramMenuFolder" for "ProgramMenuDir" and see
what happens.

Dave Hanna


>My Directory folder now looks like this:
>
>TARGETDIR, <blank>, SourceDir
>ProgramFilesFolder, TARGETDIR, .
>ARTSDIR, NOTEPADDIR, Arts:Events
>NOTEPADDIR, ProgramFilesFolder, Red_Park:Notepad
>HOLDIR, MONDIR, .:Holidays
>MONDIR, NOTEPADDIR, Gate
>MENUDIR, ProgramMenuDir, RedPark
>SPORTDIR, NOTEPADDIR, Sports:Events
>ProgramMenuDir, TARGETDIR, .

Rich - Microsoft Windows Installer MVP

unread,
Mar 1, 2002, 2:17:50 PM3/1/02
to
[Please do not mail me a copy of your followup]

"S. Hussain Akbar" <hus...@systemsltd.com> spake the secret code
<uP#1#QRwBHA.2636@tkmsftngp07> thusly:

>My Directory folder now looks like this:
>
>TARGETDIR, <blank>, SourceDir
>ProgramFilesFolder, TARGETDIR, .
>ARTSDIR, NOTEPADDIR, Arts:Events
>NOTEPADDIR, ProgramFilesFolder, Red_Park:Notepad
>HOLDIR, MONDIR, .:Holidays
>MONDIR, NOTEPADDIR, Gate
>MENUDIR, ProgramMenuDir, RedPark
>SPORTDIR, NOTEPADDIR, Sports:Events
>ProgramMenuDir, TARGETDIR, .

ProgramMenuDir should be ProgramMenuFolder.

When you add entries in the Directory table for predefined folder
property names, you have to be careful to use the predefined property
name exactly as it appears in the documentation, including case.
--
Ask me about my upcoming book on Direct3D from Addison-Wesley!
Direct3D Book http://www.xmission.com/~legalize/book/
Don't Support Spammers! Boycott Fractal Painter 7!
http://www.xmission.com/~legalize/spammers.html

Sridhar Krish

unread,
Mar 1, 2002, 4:42:15 PM3/1/02
to
Directory Directory_Parent DefaultDir
--------- ---------------- ----------
TARGETDIR SOURCEDIR
WindowsFolder TARGETDIR .:Windows
ProfilesFolder WindowsFolder .:Profiles
StartMenuFolder ProfilesFolder
.:StartMen|Start Menu
ProgramMenuFolder StartMenuFolder .:Programs
Red_Park ProgramMenuFolder RedPark

Place the above entries in the directory table as is
starting from TARGETDIR. Ensure the case is preserved for
all the entries.

The '.:StartMen|Start Menu' is the DefaultDir for the
directory 'StartMenuFolder'.

>-----Original Message-----
>I am just starting on MSI. I followed the example in the
SDK Help on "Making a simple application" for the
Notepad / Redpark application.

>I have one question: The application's shortcuts are

Rich - Microsoft Windows Installer MVP

unread,
Mar 1, 2002, 4:57:04 PM3/1/02
to
[Please do not mail me a copy of your followup]

"Sridhar Krish" <zent...@yahoo.com> spake the secret code
<8cbb01c1c169$f4318f20$9be62ecf@tkmsftngxa03> thusly:

>The '.:StartMen|Start Menu' is the DefaultDir for the
>directory 'StartMenuFolder'.

Does that hold true for localized versions of Windows?

I found it better to just use '.' as the DefaultDir and let Windows
set the actual directory name in the property.

S. Hussain Akbar

unread,
Mar 4, 2002, 4:12:02 AM3/4/02
to
Rich / Dave

It worked. Thanks a lot.

I'll go study the directory table a bit. Looks a lot as if these entries are
pointing to each other in a multiple lookup sequence.

Regards
Hussain


S. Hussain Akbar

unread,
Mar 4, 2002, 4:20:59 AM3/4/02
to
Sridhar

If I understand this correctly, what you write will place the shortcut to
Redpark in (the current user's?) Start Menu. What about the shortcuts to the
other items (Sports, Holidays, ...)? And can I place them in a submenu off
the Redpark menu?

Hussain

"Sridhar Krish" <zent...@yahoo.com> wrote in message
news:8cbb01c1c169$f4318f20$9be62ecf@tkmsftngxa03...

Sridhar Krish

unread,
Mar 5, 2002, 10:12:58 PM3/5/02
to
Hussain,

In the Shortcuts table, if you have used 'MENUDIR' in the
DIRECTORY column for all the shortcuts, then in the
Directory Table modify the entry for MENUDIR as below

Directory Directory_Parent DefaultDir
--------- ---------------- ----------

MENUDIR Red_Park Menu

Doing this would place all the shortcuts under
Program\RedPark\Menu

Instead if you want all the shortcuts to be directory
placed under 'RedPark' itself, you need to the value of
DIRECTORY column for all the entries in the Shortcuts
table to 'Red_Park'.

Hope this is clear.

________
Rich,

Yes, you are right. Using just the '.' would be more
appropriate. The entries that I had suggested in my first
posting is more appropriate with NT/Win2K as the source
location of the MSI. I shouldn't have done that. Thanks
for the clarification.

Sridhar.

>.
>

0 new messages